>>> Completed installing m4-1.4.9 into /var/tmp/portage/sys-devel/m4-1.4.9/image/ ecompressdir: bzip2 -9 /usr/share/man/man1 ecompressdir: bzip2 -9 /usr/share/info strip: i686-gentoo-freebsd6.1-strip --strip-unneeded usr/bin/gm4 * checking 10 files for package collisions existing file /usr/lib/charset.alias is not owned by this package * This package is blocked because it wants to overwrite * files belonging to other packages (see messages above). * If you have no clue what this is all about report it * as a bug for this package on http://bugs.gentoo.org package sys-devel/m4-1.4.9 NOT merged Searching all installed packages for file collisions... Press Ctrl-C to Stop * dev-libs/libiconv-1.11: '/usr/lib/charset.alias' Reproducible: Always Portage 2.1.2.3 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r0, 6.2-RC2 i386) ================================================================= System uname: 6.2-RC2 i386 i386 Gentoo Base System release 1.13.0_alpha12 Timestamp of tree: Sat, 31 Mar 2007 09:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.23b virtual/os-headers: 6.2 ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" AUTOCLEAN="yes" CBUILD="i686-gentoo-freebsd6.1" CFLAGS="-mtune=c3 -O2 -pipe -fomit-frame-pointer -fno-ident -fomit-frame-pointer -momit-leaf-frame-pointer" CHOST="i686-gentoo-freebsd6.1" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mtune=c3 -O2 -pipe -fomit-frame-pointer -fno-ident -fomit-frame-pointer -momit-leaf-frame-pointer -fvisibility-inlines-hidden -fvisibility=hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner" FEATURES="autoconfig collision-protect distlocks fixpackages metadata-transfer parallel-fetch sfperms strict userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,--as-needed -Wl,-O1" LINGUAS="it" MAKEOPTS="-j2 -s" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/gechi /usr/portage/local/layman/wtk-general /usr/portage/local/layman/wtk-mono /usr/portage/local/layman/wtk-enterprise /usr/portage/local/layman/wtk-embedded /usr/portage/local/layman/wtk-cgi" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi chroot cli crypt cups dri fam gif iconv java5 jpeg jpeg2k libg++ midi mmx ncurses nls ogg opengl pam pcre png ppds profile readline reflection session spl ssl svg symlink tiff truetype unicode usb x86-fbsd xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="mouse keyboard" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="BSD" VIDEO_CARDS="vesa sis" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 173349 has been marked as a duplicate of this bug. ***
Created attachment 115839 [details, diff] files/m4-1.4.9-install-charset.alias.patch patch which fixes problem
Created attachment 115840 [details] sys-devel/m4-1.4.9.ebuild ebuild which applying patch
Created attachment 115841 [details, diff] difference between original ebuild and my one
I think we should be patching libiconv instead as m4 is required by our system profile whereas libiconv is optional. Or we add charset.alias by some other means and stop any ebuild from installing it.
Patching it's not worth it, send it upstream if you want, but it's not really worth bothering by patching it in gentoo. Just remove charset.alias as many other ebuilds do already (use rm -f so that it doesn't fail and is a no-op on linux). IIRC dev-libs/glib is an example for that.
you certainly dont want to patch build systems here ... that stuff is autogenerated from gettext autotool inputs in other packages we've simply been doing `rm -f .../charset.alias` in src_install this makes me le tired so chatting with Flameeyes we propose moving all this cruft to bashrc in the profile for src_install: [[ "$CATEGORY/$PN" == "dev-libs/libiconv" ]] || rm -f .../charset.alias
Fair enough, fixed in 1.4.9 anyway until the bashrc foo is done (which I don't know how to do)