Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286841 - dev-lang/perl-5.10.1 use rm -f instead of plain rm
Summary: dev-lang/perl-5.10.1 use rm -f instead of plain rm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.10.1
  Show dependency tree
 
Reported: 2009-09-28 19:53 UTC by Fabian Groffen
Modified: 2009-09-29 06:01 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 Fabian Groffen gentoo-dev 2009-09-28 19:53:59 UTC
while emerging perl-5.10.1:

rm: remove write-protected regular file `/Library/Gentoo/var/tmp/portage/dev-lang/perl-5.10.1/image/Library/Gentoo///usr/lib/perl5/5.10.1/powerpc-darwin/CORE/libperl.5.10.1.dylib'?

to avoid this, just use rm -f


@@ -297,13 +299,13 @@
        fi
        make DESTDIR="${D}" ${installtarget} || die "Unable to make ${installtarget}"
 
-       rm "${ED}"/usr/bin/perl
+       rm -f "${ED}"/usr/bin/perl
        ln -s perl${MY_PV} "${ED}"/usr/bin/perl
 
        dolib.so "${ED}"/${coredir}/${LIBPERL} || die
        dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die
        dosym ${LIBPERL} /usr/$(get_libdir)/libperl$(get_libname) || die
-       rm "${ED}"/${coredir}/${LIBPERL}
+       rm -f "${ED}"/${coredir}/${LIBPERL}
        dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/${LIBPERL}
        dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname ${SHORT_PV})
        dosym ../../../../../$(get_libdir)/${LIBPERL} ${coredir}/libperl$(get_libname)
@@ -382,7 +384,7 @@
                for DIR in ${INC} ; do
                        if [[ -d "${EROOT}/${DIR}" ]] ; then
                                for file in $(find "${EROOT}/${DIR}" -name "*.ph" -type f ) ; do
-                                       rm "${EROOT}/${file}"
+                                       rm -f "${EROOT}/${file}"
                                        einfo "<< ${file}"
                                done
                        fi