-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app-text/ghostscript-gpl: fix double PREFIX-ing bug reinstroduced in -r2, add quotes #4419
Conversation
Pull Request assignment Areas affected: ebuilds app-text/ghostscript-gpl: @gentoo/printing |
@@ -226,7 +226,7 @@ src_install() { | |||
mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die | |||
|
|||
# install our own cidfmap to handle CJK fonts | |||
insinto /usr/share/ghostscript/${PVM}/Resource/Init | |||
insinto "/usr/share/ghostscript/${PVM}/Resource/Init" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you quote it here…
@@ -236,7 +236,7 @@ src_install() { | |||
fi | |||
done | |||
|
|||
# install the CMaps from poppler-data properly, bug #409361 | |||
# install the CMaps from poppler-data properly, bug #409361 but avoid double PREFIX-ing | |||
dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…but not here?
# install the CMaps from poppler-data properly, bug #409361 | ||
dosym "${EPREFIX}/usr/share/poppler/cMaps" "/usr/share/ghostscript/${PVM}/Resource/CMap" | ||
# install the CMaps from poppler-data properly, bug #409361 but avoid double PREFIX-ing | ||
dosym "/usr/share/poppler/cMaps" "/usr/share/ghostscript/${PVM}/Resource/CMap" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you saying that dosym
automatically prepends EPREFIX to the first argument? This doesn't look good.
However, in this particular case I think it'd be much better to create a relative symlinks. Could you make the patch do that instead? If you see any more absolute symlinks in the ebuild, feel free to update them as well.
…-r2, add quotes Add missing quote. Emphasize some eclass is indeed adding ${EPREFIX} to all dosym/dobin/dodoc, etc. commands otherwise we get two EPREFIXes prepended. Manually we only need to prepend in e.g. mv "${ED}/usr/share/ghostscript/... Stick to existing symlinks done in eclass. Package-Manager: Portage-2.3.5, Repoman-2.3.2
This is a bug in Portage and we'll fix it there. |
OK, please let me know when the fix lands into Gentoo::RAP tree. |
Could you test the following Portage patch? I don't have any Prefix installs, and it should fix the issue you're experiencing. https://archives.gentoo.org/gentoo-portage-dev/message/1f53040a5e4709d1654b549d2d3fac1d |
Weird, I just re-synced and re-tested with ghostscript-gpl-9.20-r2.ebuild and I see /apps/gentoo/usr/lib64/portage/python2.7/ebuild-helpers/dosym still unpatched (just to emphasize the above patch would apply as expected). However, I cannot reproduce the problem. Were other changes in the code-base meanwhile? Please check what Gentoo::RAP overrides in some eclasses. I think you will be faster in installing your own instance, follow https://wiki.gentoo.org/wiki/Prefix/libc . It is just 4-5 commands to be executed. It is simple for you. |
I am quite sure emerge was exiting with "double prefix error message" in the case of ghostscript-gpl-9.20-r2.ebuild. Anyway I was mainly undoing a change between -r1 and -r2. Although the hard-error is now not triggered I could reproduce at least a QA issue which I did not mention in patch description. The QA message also shows a doubled PREFIX in the path. You can see it here.
And, your patch https://archives.gentoo.org/gentoo-portage-dev/message/1f53040a5e4709d1654b549d2d3fac1d fixes this problem.
So I can confirm your patch is helpful anyway. |
No description provided.