Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63709 - Section of code in 2.0.51_pre23 ebuild gives pages and pages of chmod errors
Summary: Section of code in 2.0.51_pre23 ebuild gives pages and pages of chmod errors
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-11 15:37 UTC by Lisa Seelye (RETIRED)
Modified: 2004-09-11 17:56 UTC (History)
0 users

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 Lisa Seelye (RETIRED) gentoo-dev 2004-09-11 15:37:59 UTC
The code in question:

        if [ -d "${ROOT}usr/portage/distfiles" ]; then
                chown -R root:portage "${ROOT}usr/portage/distfiles"
                chmod 0664 "${ROOT}usr/portage/distfiles"/*

                find "${ROOT}usr/portage/distfiles" -type f -maxdepth 1 -print0 | \
                ${XARGS} -0 -n 500 chmod 0644

                chmod 2775 "${ROOT}usr/portage/distfiles"
                chmod 2775 "${ROOT}usr/portage/distfiles/cvs-src"
        fi
        if [ -d "${ROOT}/${PORTDIR}/distfiles" ]; then
                chown -R root:portage "${ROOT}/${PORTDIR}/distfiles"

                find "${ROOT}/${PORTDIR}/distfiles" -type f -maxdepth 1 -print0 | \
                ${XARGS} -0 -n 500 chmod 0644

                chmod 2775 "${ROOT}/${PORTDIR}/distfiles"
                chmod 2775 "${ROOT}/${PORTDIR}/distfiles/cvs-src"
        fi

        chown -R root:portage ${ROOT}var/cache/edb
        find ${ROOT}var/cache/edb -type f -print0 | ${XARGS} -0 -n 500 chmod 664




The problem: $DISTDIR is mounted via smbfs and the chmod does not carry though.
The fix:  Either put a &>/dev/null on each chmod or test for network filesystems.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-09-11 17:56:13 UTC
Blah.

Fixed and committed.