Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206346 - dev-lang/dmd-bin-2.008 does not install libphobos2.a
Summary: dev-lang/dmd-bin-2.008 does not install libphobos2.a
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Anant Narayanan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 15:13 UTC by David Ripton
Modified: 2008-01-18 16:09 UTC (History)
1 user (show)

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


Attachments
output of emerge --info (emerge.info,3.45 KB, text/plain)
2008-01-18 12:50 UTC, David Ripton
Details
output from "sudo emerge dmd-bin" (emerge.dmd-bin,27.25 KB, text/plain)
2008-01-18 12:52 UTC, David Ripton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Ripton 2008-01-17 15:13:58 UTC
dev-lang/dmd-bin-2.008 installs the dmd binary, but fails to install the Phobos library (libphobos2.a) that is bundled with dmd.  This makes it impossible to compile any D code that uses the Phobos library.  (Most D code.)

The ebuild deletes the bundled libphobos2.a and attempts to recompile it, but I believe this recompile fails.  I believe because of various "permission denied" errors.  (Surprising since emerge runs as root, but maybe this ebuild is not sandbox-friendly?)

Workaround: pluck libphobos2.a out of the dmd.2.008.zip file, create /opt/dmd/lib, and drop the file there.

Since this is a -bin ebuild anyway, maybe it would make sense to just copy libphobos2.a rather than attempting to rebuild it?
Comment 1 Anant Narayanan (RETIRED) gentoo-dev 2008-01-18 10:54:46 UTC
I can't seem to reproduce this. Could you paste outputs of your emerge, and emerge --info so I can see where the problem is? On my machine:

anant@tg-nix ~ $ equery files dmd-bin | grep libphobos2
/opt/dmd/lib/libphobos2.a

I unmerged and emerged it for good measure, and still don't see any problems.
Comment 2 David Ripton 2008-01-18 12:50:58 UTC
Created attachment 141218 [details]
output of emerge --info
Comment 3 David Ripton 2008-01-18 12:52:21 UTC
Created attachment 141219 [details]
output from "sudo emerge dmd-bin"

Note that I had to hit "y" after each "rm: remove write-protected regular file `bin//dmd'?"

This is already logged as bug 203350.  I suspect the problems are related.
Comment 4 David Ripton 2008-01-18 13:01:00 UTC
Added emerge --info and emerge dmd-bin output as attachments.

Turning off sandbox didn't help with the "permission denied" errors.
Comment 5 Anant Narayanan (RETIRED) gentoo-dev 2008-01-18 16:09:27 UTC
Fixed in CVS.