Bug 297210 - graphics/xournalpp: Missing the needed UI file: ui/about.glade
Summary: graphics/xournalpp: Missing the needed UI file: ui/about.glade
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Yuri Victorovich
URL: https://github.com/xournalpp/xournalp...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-31 16:16 UTC by Kalten
Modified: 2026-08-01 03:01 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalten 2026-07-31 16:16:31 UTC
I am using FreeBSD 15.1-STABLE stable/15-n284639-08dbff58cd21 GENERIC amd64
System via pkg(1).
All packages as “latest”.

I have installed graphics/xournalpp 1.3.6_1 via pkg(8)
> # pkg install graphics/xournalpp

If I try to open xournalpp(1) I get the following error window:
> Missing the needed UI file:
> ui/about.glade
> Could not find them at any location.
>  Not relative
>  Not in the Working Path
>  Not in share/xournalpp

So I searched for the file:
> > pkg list graphics/xournalpp | grep about.glade
> /usr/local/share/xournalpp/ui/about.glade

Then I made use of truss(1) to find out what is happening:
> ...8<--- truss -o ll.truss xournalpp some.pdf
> fstatat(AT_FDCWD,"ui/about.glade",0x820776780,0x0) ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"share/xournalpp/ui/about.glade",0x820776780,0x0) ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"ui/about.glade",0x820776780,0x0) ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"share/xournalpp/ui/about.glade",0x820776780,0x0) ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"ui/about.glade",0x820776780,0x0) ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"share/xournalpp/ui/about.glade",0x820776780,0x0) ERR#2 'No such file or directory'
> readlink("/proc/curproc/file",0x8207764c0,1024)	 ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"share/xournalpp/ui/about.glade",0x820776880,0x0) ERR#2 'No such file or directory'
> --->8...

Only relative paths, und no ${LOCALBASE} in front.
So I started it inside ${LOCALBASE} i.e. `/usr/local/`, and all works:
> > cd /usr/local/ ; xournalpp some.pdf

I hope, that helps!
Regards, Kalten
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2026-07-31 18:16:34 UTC
The strange error is:
> readlink("/proc/curproc/file",0x8207764c0,1024)	 ERR#2 'No such file or directory'

Do you have procfs mounted on /proc ?
Comment 2 Kalten 2026-07-31 20:50:24 UTC
(In reply to Yuri Victorovich from comment #1)
I see! If I mount proc:
> proc    /proc   procfs  rw      0       0

and start xournalpp, truss(1) tells me:
> ...8<--- truss -o ll_proc.truss xournalpp some.pdf
> readlink("/proc/curproc/file","/usr/local/bin/xournalpp",1024) = 24 (0x18)
> fstatat(AT_FDCWD,"/usr/local/ui/about.glade",0x82069d4e0,0x0) ERR#2 'No such file or directory'
> fstatat(AT_FDCWD,"/usr/local/share/xournalpp/ui/about.glade",{ mode=-rw-r--r-- ,inode=17869655,size=18904,blksize=32768 },0x0) = 0 (0x0)
> readlink("/proc/curproc/file","/usr/local/bin/xournalpp",1024) = 24 (0x18)
> --->8...

and it starts up. Now ${LOCALBASE} is beeing added.

Maybe one should add information that proc should be mounted somewhere:
> > pkg info -f -x xournalpp | grep proc
results in no match.
Maybe even patch xournalpp to tell the user?

Regards, Kalten
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2026-08-01 03:01:08 UTC
It's non only this port, you will see many obscure failures like this when procfs isn't mounted in all sorts of applications.

Patching the port wouldn't be right since this is clearly a bug in xournalpp itself.

I created the bug report for them, see the URL field.

Port can't do much else at this point.

Thanks for reporting this problem!

Closing as not a bug since this is a bug in the upstream app.