Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424323 - dev-lang/gprolog - binaries are not in PATH
Summary: dev-lang/gprolog - binaries are not in PATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-06-30 22:13 UTC by Mira Ressel
Modified: 2012-07-04 18:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for dev-lang/gprolog, alternative 1 (gprolog-path-1.patch,806 bytes, patch)
2012-06-30 22:13 UTC, Mira Ressel
Details | Diff
Patch for dev-lang/gprolog, alternative 2 (gprolog-path-2.patch,633 bytes, patch)
2012-06-30 22:14 UTC, Mira Ressel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mira Ressel 2012-06-30 22:13:33 UTC
Created attachment 316813 [details, diff]
Patch for dev-lang/gprolog, alternative 1

The ebuild dev-lang/gprolog-1.40 installs its files to /usr/lib/gprolog-1.4.0/{bin,include,lib}. That's just upstreams default location. While this is not necessarily a bad thing (eg. useful for slotting), it causes the gprolog binaries not to be part of the search PATH.

GProlog's Makefile tries to solve this by creating symlinks from /usr/bin to the real directory – but it just braindeadly creates the link '/usr/bin/*' -> '/usr/lib/gprolog-1.4.0/bin/*' (yes, literally!).

Now, there are two possibilities to fix this problem:
1) Keep status quo and install the files to /usr/lib/gprolog-1.4.0, but create an /etc/env.d entry which adds /usr/lib/gprolog-1.4.0/bin to the PATH. See attached gprolog-path-1.patch.
2) Install the files directly to the /usr hierarchy, as everbody does. This makes the directory layout easier, but might be a problem if somebody wants to install multiple versions of gprolog in parallel (at the moment, there is only one version of it in Portage, though...). See attached gprolog-path-2.patch.

I would personally prefer approach 2), but it doesn't really matter as long as it just works.
Comment 1 Mira Ressel 2012-06-30 22:14:02 UTC
Created attachment 316815 [details, diff]
Patch for dev-lang/gprolog, alternative 2
Comment 2 Keri Harris gentoo-dev 2012-07-04 18:32:21 UTC
Thanks for spending some time having a look into this bug. A curiosity is that "ln -s $(BIN)/* ." used to work with earlier versions of portage/sandbox.

It's now fixed in CVS. (Symlinks now correctly point to the gprolog binaries).