Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285791 - bizzare behaviour in mercurial.eclass
Summary: bizzare behaviour in mercurial.eclass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
: 283779 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-20 23:36 UTC by Patrick Lauer
Modified: 2010-01-17 12:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2009-09-20 23:36:06 UTC
From kde overlay:

>>> Emerging (1 of 1) dev-cpp/eigen-9999 from kde
 * checking ebuild checksums ;-) ...                                                                                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                     [ ok ]
>>> Unpacking source...
 *
 * ERROR: dev-cpp/eigen-9999 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3036:  Called mercurial_src_unpack
 *             environment, line 2639:  Called mercurial_fetch
 *             environment, line 2620:  Called die
 * The specific snippet of code:
 *       chmod -f g+rw "${hg_src_dir}/${EHG_PROJECT}" || die "failed to chwon ${EHG_PROJECT}";
 *  The die message:
 *   failed to chwon eigen

Around line 30:
        chmod -f g+rw "${hg_src_dir}/${EHG_PROJECT}" || \
                die "failed to chwon ${EHG_PROJECT}"
that's the offending code.
There's a naughty typo in it :)

The failure seems to be limited to FEATURES="userpriv", without it the chmod works without issues.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-09-29 21:48:18 UTC
Could you show output of `ls -lh ${DISTDIR}/hg-src/' ?
Comment 2 Patrick Lauer gentoo-dev 2009-09-29 22:40:56 UTC
(In reply to comment #1)
> Could you show output of `ls -lh ${DISTDIR}/hg-src/' ?
> 
DISTDIR=/usr/portage/distfiles

# ls -lh /usr/portage/distfiles/hg-src/
total 0
drwxrwsr-x 3 root portage 72 Jun 25 18:39 eigen
drwxrwsr-x 3 root portage 72 Jul 21  2008 yzis

Also note: I'm usually not using FEATURES="userpriv"
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-10-23 20:58:11 UTC
*** Bug 283779 has been marked as a duplicate of this bug. ***
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-01-17 12:04:28 UTC
Typo fixed and die changed to echo, that chmod is not critical:

Index: mercurial.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v
retrieving revision 1.9
diff -u -r1.9 mercurial.eclass
--- mercurial.eclass    17 Jan 2010 11:21:12 -0000      1.9
+++ mercurial.eclass    17 Jan 2010 12:02:35 -0000
@@ -92,7 +92,7 @@
        mkdir -p "${hg_src_dir}/${EHG_PROJECT}" || \
                die "failed to create ${hg_src_dir}/${EHG_PROJECT}"
        chmod -f g+rw "${hg_src_dir}/${EHG_PROJECT}" || \
-               die "failed to chwon ${EHG_PROJECT}"
+               echo "Warning: failed to chmod g+rw ${EHG_PROJECT}"
        cd "${hg_src_dir}/${EHG_PROJECT}" || \
                die "failed to cd to ${hg_src_dir}/${EHG_PROJECT}"