Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531760 - =dev-util/cppcheck-1.66 ignores EPREFIX upon installation
Summary: =dev-util/cppcheck-1.66 ignores EPREFIX upon installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-05 20:04 UTC by Andrey
Modified: 2015-02-27 16:04 UTC (History)
0 users

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


Attachments
Proposed fix. Works for me. (cppcheck-1.66.ebuild.patch,393 bytes, patch)
2014-12-05 20:06 UTC, Andrey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2014-12-05 20:04:11 UTC
Only part of the Makefile, that installs cppcheck and cppcheck-htmlreport, is affected.
Python part works fine.

Reproducible: Always

Steps to Reproduce:
1. Install Gentoo Prefix on any Linux system
2. Add appropriate keywords
cat >>etc/portage/package.keywords <<EOFF
~dev-util/cppcheck-1.66 **
~dev-libs/tinyxml2-2.1.0 **
EOFF
3. emerge cppcheck
Actual Results:  
>>> Completed installing cppcheck-1.66 into /home/ahippo/gentoo/var/tmp/portage/dev-util/cppcheck-1.66/image/

 * QA Notice: the following files are outside of the prefix:
 * /usr
 * /usr/bin
 * /usr/bin/cppcheck
 * /usr/bin/cppcheck-htmlreport
 * ERROR: dev-util/cppcheck-1.66::gentoo_prefix failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 *
 * Call stack:
 *   misc-functions.sh, line 1191:  Called install_qa_check
 *   misc-functions.sh, line  187:  Called source 'install_symlink_html_docs'
 *            05prefix, line  115:  Called install_qa_check_prefix
 *            05prefix, line   27:  Called die
 * The specific snippet of code:
 *                      die "Aborting due to QA concerns: there are files installed outside the prefix"
 *


Expected Results:  
>>> Completed installing cppcheck-1.66 into /home/ahippo/gentoo/var/tmp/portage/dev-util/cppcheck-1.66/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/bin/cppcheck
ecompressdir: bzip2 -9 /usr/share/doc
ecompressdir: bzip2 -9 /usr/share/man

>>> Installing (1 of 1) dev-util/cppcheck-1.66::gentoo_prefix
...
Comment 1 Andrey 2014-12-05 20:06:50 UTC
Created attachment 391034 [details, diff]
Proposed fix. Works for me.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2015-02-27 10:14:41 UTC
+  27 Feb 2015; Michael Weber <xmw@gentoo.org> cppcheck-1.66.ebuild,
+  cppcheck-1.67.ebuild:
+  Fix prefix installation (bug 531760, thanks Andrey Hippo)
+
Comment 3 Andrey 2015-02-27 16:04:56 UTC
(In reply to Michael Weber from comment #2)
> +  27 Feb 2015; Michael Weber <xmw@gentoo.org> cppcheck-1.66.ebuild,
> +  cppcheck-1.67.ebuild:
> +  Fix prefix installation (bug 531760, thanks Andrey Hippo)
> +

Thank you for resolving this!