Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394909 - app-portage/gentoolkit-0.3.0.4-r4 install man pages and etc configs in the wrong paths
Summary: app-portage/gentoolkit-0.3.0.4-r4 install man pages and etc configs in the wr...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 10:03 UTC by Andrew Savchenko
Modified: 2011-12-19 20:50 UTC (History)
2 users (show)

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


Attachments
qlist.gentoolkit (qlist.gentoolkit,9.19 KB, text/plain)
2011-12-16 10:04 UTC, Andrew Savchenko
Details
emerge.info (emerge.info,5.59 KB, text/plain)
2011-12-16 10:05 UTC, Andrew Savchenko
Details
CONTENTS (CONTENTS,18.28 KB, text/plain)
2011-12-17 11:23 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2011-12-16 10:03:07 UTC
Hello,

gentoolkit-0.3.0.4-r4 installs /etc/ and /usr/man/ files with extra /usr prefix:

$ qlist gentoolkit
...
/usr/etc/env.d/99gentoolkit-env
/usr/etc/revdep-rebuild/99revdep-rebuild
/usr/etc/eclean/distfiles.exclude
/usr/etc/eclean/packages.exclude
/usr/usr/share/man/man1/eclean.1.bz2
/usr/usr/share/man/man1/glsa-check.1.bz2
/usr/usr/share/man/man1/epkginfo.1.bz2
/usr/usr/share/man/man1/eshowkw.1.bz2
/usr/usr/share/man/man1/revdep-rebuild.1.bz2
/usr/usr/share/man/man1/eread.1.bz2
/usr/usr/share/man/man1/euse.1.bz2
/usr/usr/share/man/man1/enalyze.1.bz2
/usr/usr/share/man/man1/equery.1.bz2
...

have no idea why, I do not use prefix setup.
Comment 1 Andrew Savchenko gentoo-dev 2011-12-16 10:04:02 UTC
Created attachment 296013 [details]
qlist.gentoolkit

$ qlist gentoolkit
Comment 2 Andrew Savchenko gentoo-dev 2011-12-16 10:05:56 UTC
Created attachment 296015 [details]
emerge.info

emerge --info
Comment 3 Paul Varner (RETIRED) gentoo-dev 2011-12-16 21:30:24 UTC
What does /var/db/pkg/app-portage/gentoolkit-0.3.0.4-r4/CONTENTS show?
What version of portage-utils do you have installed?
Comment 4 Paul Varner (RETIRED) gentoo-dev 2011-12-16 21:38:22 UTC
The only way that I can reproduce this is if I have EPREFIX="/usr" set in my environment.  Can you check your environment to see if that variable is set?
Comment 5 Andrew Savchenko gentoo-dev 2011-12-17 11:22:08 UTC
There is no EPREFIX  set to my knowledge:

# printenv | grep -i prefix
# grep -i prefix /etc/make.conf
#

app-portage/portage-utils-0.7 is installed.
Comment 6 Andrew Savchenko gentoo-dev 2011-12-17 11:23:56 UTC
Created attachment 296113 [details]
CONTENTS

var/db/pkg/app-portage/gentoolkit-0.3.0.4-r4/CONTENTS
Comment 7 Andrew Savchenko gentoo-dev 2011-12-17 15:56:40 UTC
Also I checked my /usr, looks like gentoolkit is the only package with abnormal installation on this setup.
Comment 8 Tomasz Wasiak 2011-12-19 06:04:44 UTC
I am just finishing new Gentoo AMD64 hardened no-multilib install and have same situation here...
Comment 9 Brian Dolbec (RETIRED) gentoo-dev 2011-12-19 16:51:05 UTC
I believe the problem is due to setup.py pre-pending /usr to all data_files.  I think the correct fix will be to create a setup.cfg file containing 

[install]
install-data=/


which will override any other setting some users seem to have as a default.
Comment 10 Paul Varner (RETIRED) gentoo-dev 2011-12-19 19:34:49 UTC
Okay the issue is that newer versions of portage define EPREFIX.  The issue is when it was undefined, the setup code set it to "/".  The newer versions of portage set it to "", which breaks the code.

I will get an updated gentoolkit into the tree and request early stabilization as soon as possible.
Comment 11 Paul Varner (RETIRED) gentoo-dev 2011-12-19 20:50:32 UTC
Fixed in gentoolkit-0.3.0.4-r5.  Stable request is in Bug 395303.