>>> Install apache-2.0.55-r2 into /var/tmp/portage/apache-2.0.55-r2/image/ category net-www * 'enewgroup()' called from 'install()' which is not a pkg_* function. * Package fails at QA and at life. Please file a bug. !!! ERROR: net-www/apache-2.0.55-r2 failed. Call stack: ebuild.sh, line 1532: Called dyn_install ebuild.sh, line 1005: Called src_install apache-2.0.55-r2.ebuild, line 185: Called enewgroup 'apache' '81' eutils.eclass, line 648: Called die !!! Bad package! enewgroup is only for use in pkg_* functions! !!! If you need support, post the topmost build error, and the call stack if relevant. ----------------------- localhost ~ # emerge --info Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r5 i686) ================================================================= System uname: 2.6.15-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa apache2 apic apm arts audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cid clflush cli cmov crypt ctype cups cx8 dba de dri dts eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild firefox foomaticdb force-cgi-redirect fortran fpu ftp fxsr gd gdbm gif glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile ht idn imlib ipv6 isdnlog jpeg kde kernel_linux lcms libg++ libwww mad mca mce memlimit mikmod mmx mng motif mp3 mpeg msr mtrr ncurses nls nptl ogg openal opengl oss pae pam pat pbe pcre pdflib perl pge png posix pppd pse pse36 python qt quicktime readline samba sdl sep session simplexml slang soap sockets spell spl ss sse sse2 ssl svg tcltk tcpd tiff tm tokenizer truetype truetype-fonts tsc type1-fonts udev userland_GNU vme vorbis x86 xml xml2 xmms xsl xtpr xv xvid zlib input_devices_keyboard input_devices_mouse video_cards_fglrx" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
*** Bug 130473 has been marked as a duplicate of this bug. ***
This is due to a recent commit in eutils.eclass (v1.233, blame vapier ;). Just remove the first four lines from src_install() in apache-2.0.55-r2.ebuild: # setup apache user and group enewgroup apache 81 enewuser apache 81 -1 /var/www apache This is already being done in pkg_postinst(), someone just forgot to remove it from src_install().
Okay, bad idea. We need this user/group in src_install... maybe some parts need to be moved to pkg_postinst()?
Note to self, first think, then post. Remove all occurrences of enewgroup/enewuser, move them to pkg_preinst()? :-)
I got same errror and I tried even all previous versions. All resulted in the same bug.
This has been discussed in-length in bug #124680, but unfortunately the apache maintainers did not fix this before SpanKY changed eutils.eclass. Maybe there is more synchronization needed on that next time.
(In reply to comment #6) > Maybe there is more synchronization needed on that next time. Probably, as we didn't even know about this change, as we weren't CCed to the bug... Oh well. :) Anyway, fixed in CVS now, the enewuser/enewgroup call in src_install() was moved out to pkg_preinst(), so now net-www/apache emerges again correctly. Please emerge --sync in a couple of hours to get the update, thanks! Best regards, CHTEKK.
*** Bug 130569 has been marked as a duplicate of this bug. ***
*** Bug 130614 has been marked as a duplicate of this bug. ***
*** Bug 130629 has been marked as a duplicate of this bug. ***