On 28-09-2006 19:28:47 +0200, Michael Haubenwallner wrote:
> Hi,
>
> successfully emerged coreutils on x86-solaris successfully, but with
> applied patch only.
>
> Without patch I got this collision:
> * checking 224 files for package collisions
> existing file /tools/haubi/gentoo/usr/bin/m4 is not owned by this package
> * spent 0.0120599269867 seconds checking for file collisions
>
> I don't want to explain the details why this happened (should I), just
> look at the patch.
>
> /haubi/
> Index: sys-apps/coreutils/coreutils-5.94-r3.ebuild
> ===================================================================
> --- sys-apps/coreutils/coreutils-5.94-r3.ebuild (revision 1663)
> +++ sys-apps/coreutils/coreutils-5.94-r3.ebuild (working copy)
> @@ -35,7 +35,7 @@
> if [[ $(${EPREFIX}/bin/expr a : '\(a\)') != "a" ]] ; then
> if [[ -x ${EPREFIX}/bin/busybox ]] ; then
> ln -sf ${EPREFIX}/bin/busybox ${EPREFIX}/bin/expr
> - else
> + elif [[ $(expr a : '\(a\)') != "a" ]]; then
I don't see a reason for this; if you allow this, then the first if
looks a bit odd. Point is, the main tree does it like that. I guess
relaxing for us would work out...
> eerror "Your expr binary appears to be broken, please
> fix it."
> eerror "For more info, see
> http://bugs.gentoo.org/123342"
> die "your expr is broke"
> @@ -123,25 +123,25 @@
>
> src_install() {
> make install DESTDIR="${EDEST}" || die
> - rm -f "${D}/${EPREFIX}"/usr/lib/charset.alias
> + rm -f "${D}"/usr/lib/charset.alias
> dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO
>
> # remove files provided by other packages
> - rm "${D}/${EPREFIX}"/bin/{kill,uptime} # procps
> - rm "${D}/${EPREFIX}"/bin/{groups,su} # shadow
> - rm "${D}/${EPREFIX}"/bin/hostname # net-tools
> - rm
> "${D}/${EPREFIX}"/usr/share/man/man1/{groups,kill,hostname,su,uptime}.1
> + rm "${D}"/bin/{kill,uptime} # procps
> + rm "${D}"/bin/{groups,su} # shadow
> + rm "${D}"/bin/hostname # net-tools
> + rm "${D}"/usr/share/man/man1/{groups,kill,hostname,su,uptime}.1
> # provide by the man-pages package
> - rm
> "${D}/${EPREFIX}"/usr/share/man/man1/{chgrp,chmod,chown,cp,dd,df,dir,dircolors}.1
> - rm
> "${D}/${EPREFIX}"/usr/share/man/man1/{du,install,ln,ls,mkdir,mkfifo,mknod,mv}.1
> - rm "${D}/${EPREFIX}"/usr/share/man/man1/{rm,rmdir,touch,vdir}.1
> + rm
> "${D}"/usr/share/man/man1/{chgrp,chmod,chown,cp,dd,df,dir,dircolors}.1
> + rm "${D}"/usr/share/man/man1/{du,install,ln,ls,mkdir,mkfifo,mknod,mv}.1
> + rm "${D}"/usr/share/man/man1/{rm,rmdir,touch,vdir}.1
who put those in?!?!? Trivially stupid.
> insinto /etc
> newins src/dircolors.hin DIR_COLORS
>
> if [[ ${USERLAND} == "GNU" ]] ; then
> # move non-critical packages into /usr
> - cd "${D}/${EPREFIX}"
> + cd "${D}" || die
I try to keep the diffs as small as possible, so I won't add the || die
> dodir /usr/bin
> mv bin/{csplit,expand,factor,fmt,fold,join,md5sum,nl,od} usr/bin
> mv bin/{paste,pathchk,pinky,pr,printf,sha1sum,shred,sum,tac}
> usr/bin
thanks!
--
Fabian Groffen
Gentoo on a different level
--
[EMAIL PROTECTED] mailing list