Re: graphics/gegl: gegl_find_relocatable_exe: assertion 'file != NULL' failed

Tatsuki Makino <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <SI2PR01MB5036CC01EB4718F387D04CB9FA9AA@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>
Thank you very much.

On 2026/02/03 2:50, Charlie Li wrote:
> Currently dealing with upstream over the meaning of "relocatable". Turns out this does not mean ELF relocation. When the feature is enabled, since there is no FreeBSD-specific preprocessor guard, the Linux path is taken, which includes reading stuff from Linux's procfs. In theory we should take whatever approach works for macOS, but I'm still working with upstream on how best to support this feature even though it should be disabled by default.
> 
> For now, I will disable the feature for this port too.
> 

This time, in my environment, linprocfs started being mounted constantly :), so it seems that I should have looked inside it.
The function gegl_find_relocatable_exe doesn't seem to be doing anything particularly fancy.
It seems to me that we can handle it simply by making the following replacements.

/proc/self -> /proc/curproc
/proc/self/exe -> /proc/curproc/file
/proc/self/maps -> /proc/curproc/map and, change the column to be read.

Well, I don't know how the values obtained in that way will be used later, so that's just my guess :)

Regards.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.