GNOME Bugzilla – Bug 782598
JHBuild should add /usr/local/info to INFOPATH on FreeBSD
Last modified: 2017-05-16 14:22:04 UTC
FreeBSD ports install Texinfo documentation in /usr/local/info instead of the default value /usr/local/share/info used by autotools and meson. All software included in FreeBSD ports are modified to use /usr/local/info, and /usr/local/share/info doesn't exist on the system. However, JHBuild always uses $prefix/share/info, so the non-existent path is added to INFOPATH. OpenBSD ports and NetBSD pkgsrc also patch all software to use $prefix/info, so the same problem can happen on OpenBSD and NetBSD, too. I will attach a patch to fix this problem.
Created attachment 351783 [details] [review] environment: Fix INFOPATH for *BSD ports and pkgsrc Ports and pkgsrc are widely used on *BSD systems to install third-party software, but these systems patch all software to install Texinfo pages in $prefix/info instead of $prefix/share/info. In order to set correct INFOPATH on prefixes managed by ports or pkgsrc, we check whether $prefix/info exists and use it if $prefix/share/info cannot be found.
Attachment 351783 [details] pushed as 19a3a0f - environment: Fix INFOPATH for *BSD ports and pkgsrc