Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130459 - net-www/apache-2.0.55-r2 bad enewgroup usage
Summary: net-www/apache-2.0.55-r2 bad enewgroup usage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL: http://gentoo-wiki.com/XGL
Whiteboard:
Keywords:
: 130473 130569 130614 130629 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-19 04:27 UTC by Jorg
Modified: 2006-04-20 23:56 UTC (History)
7 users (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 Jorg 2006-04-19 04:27:32 UTC
>>> 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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-19 06:30:36 UTC
*** Bug 130473 has been marked as a duplicate of this bug. ***
Comment 2 Horst Schirmeier 2006-04-19 06:34:43 UTC
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().
Comment 3 Horst Schirmeier 2006-04-19 06:38:29 UTC
Okay, bad idea. We need this user/group in src_install... maybe some parts need to be moved to pkg_postinst()?
Comment 4 Horst Schirmeier 2006-04-19 06:45:24 UTC
Note to self, first think, then post.

Remove all occurrences of enewgroup/enewuser, move them to pkg_preinst()? :-)
Comment 5 Rej 2006-04-19 08:08:18 UTC
I got same errror and I tried even all previous versions. All resulted in the same bug.
Comment 6 Horst Schirmeier 2006-04-19 08:13:04 UTC
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.
Comment 7 Luca Longinotti (RETIRED) gentoo-dev 2006-04-19 10:28:25 UTC
(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.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 02:28:10 UTC
*** Bug 130569 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 08:50:07 UTC
*** Bug 130614 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 11:08:45 UTC
*** Bug 130629 has been marked as a duplicate of this bug. ***