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
The strange error is: > readlink("/proc/curproc/file",0x8207764c0,1024) ERR#2 'No such file or directory' Do you have procfs mounted on /proc ?
(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
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.