Hi! I ran into a problem with programs exec:ed by print/acroread8 picking up Linux libraries and thus failed to run. This includes the print program in the print dialogue and the browser configured in edit/preferences/internet. The reason is that the acroread launch script sets LD_LIBRARY_PATH which is propagated to its childs. See this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129553 Question 1: anybody else that sees this problem? Question 2: what is the "proper" way to fix this problem? (specifically for acroread8, but also in general.) Bengt Ps. Sorry for cross-posting - don't know which list to use for this issue.
Quoting Alexander Leidinger <Alexander@Leidinger.net> (from Sat, 13 Dec 2008 21:11:15 +0100):> Quoting Bengt Ahlgren <bengta@sics.se> (from Fri, 12 Dec 2008 > 13:37:25 +0100): > >> The reason is that the acroread launch script sets LD_LIBRARY_PATH >> which is propagated to its childs. See this PR: >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129553 > >> Question 2: what is the "proper" way to fix this problem? >> (specifically for acroread8, but also in general.) > > Search the archive for the ports mailinglist, in the mail > "print/acroread8: LD_LIBRARY_PATH breaks helper programs" is a fix > for the problem.ROTFL... this mail on ports@ is from you... :-) I suggest to contact the port maintainer with the fix. If he doesn't answer, send a PR. As soon as someone (maintainer / other committer in the PR case) has time and motivation, the fix will get committed. Bye, Alexander (ENOTIME ATM, else I would have taken care about this already). -- Gordon's first law: If a research project is not worth doing, it is not worth doing well. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
Quoting Bengt Ahlgren <bengta@sics.se> (from Fri, 12 Dec 2008 13:37:25 +0100):> The reason is that the acroread launch script sets LD_LIBRARY_PATH > which is propagated to its childs. See this PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129553> Question 2: what is the "proper" way to fix this problem? > (specifically for acroread8, but also in general.)Search the archive for the ports mailinglist, in the mail "print/acroread8: LD_LIBRARY_PATH breaks helper programs" is a fix for the problem. In general: there's no general fix. It all depends why LD_LIBRARY_PATH is used and what is done. There are multiple ways, some are workarounds ("env LD_LIBRARY_PATH='' lpr ..." ), some (like the one for acroread in the mail) are good fixes. Bye, Alexander. -- Disclose classified information only when a NEED TO KNOW exists. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137