Since portage was upgraded to 2.0.50-r9, every ebuild using the function "replace-flags" from the flag-o-matic eclass gives an error "/usr/sbin/ebuild.sh: 23 replace-flags: command not found" Downgrading to r8 solves the problem Reproducible: Always Steps to Reproduce: 1. emerge =sys-apps/portage-2.0.50-r9 2. 3. Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r9) ================================================================= System uname: 2.6.7-gentoo-r9 x86_64 4 Gentoo Base System version 1.5.1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 audiofile avi cdr crypt cups dedicated dga dvd dvdr encode esd fam flac foomaticdb gif gnome gtk gtk2 imlib java jpeg lirc matroska mikmod mozilla mpeg multilib ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl tcpd tiff truetype unicode wmf xml2 xv zlib"
That's a bug in the ebuilds in question, not portage. Please file bugs about which packages. Thanks.
Well, OK but could you be more precise about the bug as I've some personal ebuilds using replace-flags...
You need to inherit flag-o-matic
Humm... I'll verify when I'm back home but as far as I remember, my ebuilds do inherit flag-o-matic... BTW, before r9, you also had to inherit flag-o-matic, no ?
No. It was in extra_functions.sh
With this portage-2.0.50-r9, I have two commands not found. Every 'emerge sync' I have this: Updating Portage cache... -/usr/sbin/ebuild.sh: line 14: filter-flags: command not found /usr/sbin/ebuild.sh: line 38: strip-flags: command not found ...done!
@Mr Bones : you were right, some of my ebuils were lacking the flag-o-matic inheritance ;-) Thanks !
dagobert root # emerge -U world -a >>> --upgradeonly implies --update... adding --update to options. These are the packages that I would merge, in order: Calculating world dependencies /kde /usr/sbin/ebuild.sh: line 9: replace-flags: command not found \/usr/sbin/ebuild.sh: line 7: replace-flags: command not found /usr/sbin/ebuild.sh: line 7: replace-flags: command not found /usr/sbin/ebuild.sh: line 7: replace-flags: command not found /usr/sbin/ebuild.sh: line 7: replace-flags: command not found - emerge: there are no masked or unmasked ebuilds to satisfy ">=gnome-extra/libgtkhtml-3.1.12". !!! Problem with ebuild mail-client/evolution-1.5.9.2 !!! Possibly a DEPEND/*DEPEND problem. !!! Depgraph creation failed.
This sounds like ebuilds lagging behind portage (specifically needing an inherit call)- closing. This is a good example of why having this functionality in the tree, rather then bundled to portage is needed... Reopen if it persists, although likely the ebuilds in question just need fixing.