I was trying to install gimp-print which failed because libijs was missing. It should be part of the installed ghostscript-apfl, but it wasn't there. Re-emerging it resulted in the following output... ./var/ ./var/tmp/ ./var/tmp/portage/ ./var/tmp/portage/ghostscript-afpl-8.15/ ./var/tmp/portage/ghostscript-afpl-8.15/image/ ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/ ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/lib/ ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/lib/libgs.so ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/lib/libgs.so.8.15 ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/lib/libgs.so.8 ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/lib/libijs.la ./var/tmp/portage/ghostscript-afpl-8.15/image/usr/lib/libijs.a instead of /usr/lib/* Reproducible: Always Steps to Reproduce: 1. emerge ghostscript-afpl
I had the same problem; it blocks the building of gimp-print. I used the following quick and dirty workaround at the end of the ebuild script to get libijs and libgs installed. # install ijs cd ${S}/ijs dodir /usr/bin /usr/include /usr/lib einstall install_prefix=${D} # Workaround for bug. cp -ax ${D}/var/tmp/portage/ghostscript-afpl-8.15/image/usr ${D} }
FYI If you are hacking around this you will also need to fix usr/bin/ijs-config, which contains a reference to the corrupted path, and causes dependant packages to fail to compile.
oops. also ./usr/lib/pkgconfig/ijs.pc
*** Bug 94558 has been marked as a duplicate of this bug. ***
It looks like noone is working on this. I'll tell you what I found out, but I can't fix it because I'm no ebuild hacker. It looks like during the configure step of the ebuild the ${D} environment variable is either overridden by or overrides an internal ${D} variable which is defined in /var/tmp/portage/ghostscript-afpl-8.15/work/src/ijs.mak (which is sourced by the main Makefile). This may (I'm not sure about it) disturb a few other variables which are used for installation destination of libraries.
Created attachment 66226 [details, diff] Ebuild patch This patch fixes the installation for me. It removes the fake prefix set on econf, and passes D=/ (as ${D} is used as directory separator, / on unix and \\ you-know-where).
Six weeks passed since a possible fix was proposed. Bumping the bug.
Sorry this fell through the cracks. Fixed.
ghostscript-afpl hasn't been fixed yet, though.
*** Bug 115581 has been marked as a duplicate of this bug. ***
fix also added to latest afpl now.