Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372929 - media-libs/lcms-1.19 fails to install on prefix
Summary: media-libs/lcms-1.19 fails to install on prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-25 00:12 UTC by maldun
Modified: 2011-06-25 10:13 UTC (History)
0 users

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


Attachments
diff files of the ebuilds (lcms_ebuild_diff.txt,538 bytes, text/plain)
2011-06-25 06:58 UTC, maldun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maldun 2011-06-25 00:12:15 UTC
Hi! I tried to install media-libs/lcms-1.19 which is neede by some other packages like ghost-script.

But If I try to install it I get the following error logs:

* QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * cmsio1.c:118:8: warning: implicit declaration of function 'swab'

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.littlecms.com/
 * QA Notice: the following files are outside of the prefix:
 * /usr
 * /usr/lib
 * /usr/lib/python2.7
 * /usr/lib/python2.7/site-packages
 * /usr/lib/python2.7/site-packages/lcms.py
 * /usr/lib/python2.7/site-packages/_lcms.la
 * /usr/lib/python2.7/site-packages/_lcms.so
 * ERROR: media-libs/lcms-1.19 failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *   misc-functions.sh, line 1707:  Called install_qa_check
 *   misc-functions.sh, line  210:  Called install_qa_check_prefix
 *   misc-functions.sh, line  785:  Called die
 * The specific snippet of code:
 *                      die "Aborting due to QA concerns: there are files installed outside the prefix"
 * 
 * If you need support, post the output of 'emerge --info =media-libs/lcms-1.19',
 * the complete build log and the output of 'emerge -pqv =media-libs/lcms-1.19'.
 * This ebuild is from an overlay named 'x-portage': '/home/maldun/Gentoo/usr/local/portage/'
 * The complete build log is located at '/home/maldun/Gentoo/var/log/portage/build/media-libs/lcms-1.19:20110624-235916.log'.
 * The ebuild environment file is located at '/home/maldun/Gentoo/var/tmp/portage/media-libs/lcms-1.19/temp/environment'.
 * S: '/home/maldun/Gentoo/var/tmp/portage/media-libs/lcms-1.19/work/lcms-1.19'
!!! post install failed; exiting.

>>> Failed to emerge media-libs/lcms-1.19, Log file:

After some searching in the ebuild I applied the following changes:

66,68c66,68
< 				LCMS_PYEXECDIR="$(python_get_sitedir)" \
< 				LCMS_PYINCLUDE="$(python_get_includedir)" \
< 				LCMS_PYLIB="$(python_get_libdir)" \
---
> 				LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
> 				LCMS_PYINCLUDE="${EPREFIX}$(python_get_includedir)" \
> 				LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \
86,87c86,87
< 				LCMS_PYEXECDIR="$(python_get_sitedir)" \
< 				LCMS_PYLIB="$(python_get_libdir)" \
---
> 				LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
> 				LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \


Now it seems to work

Reproducible: Always




diff for Patch included
Comment 1 maldun 2011-06-25 06:58:19 UTC
Created attachment 278071 [details]
diff files of the ebuilds
Comment 2 Fabian Groffen gentoo-dev 2011-06-25 10:13:45 UTC
thanks, that's indeed the correct fix!

Please provide your patch as diff -u next time.  I've committed your patch.