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
Created attachment 278071 [details] diff files of the ebuilds
thanks, that's indeed the correct fix! Please provide your patch as diff -u next time. I've committed your patch.