Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130563 - net-misc/tor ebuild fails b/c of bad enewgroup usage
Summary: net-misc/tor ebuild fails b/c of bad enewgroup usage
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
: 131153 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-20 01:46 UTC by Andreas Gick
Modified: 2007-07-01 02:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix this bug (tor-0.1.0.17-r1.ebuild.patch,395 bytes, patch)
2006-04-21 08:48 UTC, michael@smith-li.com
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Gick 2006-04-20 01:46:55 UTC
Using the latest masked ebuild to install tor, i. e. version 0.1.0.17, results in emerge giving the following error messages:
* 'enewgroup()' called from 'install()' which is not a pkg_* function.
 * Package fails at QA and at life.  Please file a bug.

!!! ERROR: net-misc/tor-0.1.0.17 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_install
  ebuild.sh, line 1005:   Called src_install
  tor-0.1.0.17.ebuild, line 48:   Called enewgroup 'tor'
  eutils.eclass, line 648:   Called die

!!! Bad package!  enewgroup is only for use in pkg_* functions!
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 02:02:13 UTC
NOT a bugzilla product bug.
Comment 2 michael@smith-li.com 2006-04-21 08:48:44 UTC
Created attachment 85120 [details, diff]
Patch to fix this bug

Seems to work on my machine, please test.
Comment 3 Andreas Gick 2006-04-22 06:37:56 UTC
(In reply to comment #2)
> Created an attachment (id=85120) [edit]
> Patch to fix this bug
> 
> Seems to work on my machine, please test.
> 

Would like to try it out, but I'm not familiar with patching ebuilds, could you please tell me how to apply your patch?
Comment 4 Holger Becker 2006-04-23 02:24:26 UTC
Hi,

just noticed that the bug/patch also applies to tor-0.1.0.14-r1.

@Mr. Smith: Patched and installed tor-0.1.14-r1.ebuild successfully

@Mr. Gick: Just do the following:
           1.) Goto /usr/portage/net-misc/tor/
           2.) Save the patch in a file (lets call it tor-newgroup.patch)
           3.) Patch the ebuild with 'patch < tor-newgroup.patch'
           4.) Rebuild the manifest with 'ebuild tor-0.1.0.17.ebuild digest'
           5.) Try to emerge tor and give a hint to Mr. Smith whether the patch   
               was successful

Cheers


Portage 2.1_pre9-r3 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
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-r2
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=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer prelink sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/xgl-coffee"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac acl acpi alsa apache2 apm arts asf avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cdr cli crypt cups cvs dbus dri dts dvd dvdr dvi eds emacs emboss encode ffmpeg firefox flac foomaticdb fortran gdbm gif gimpprint glitz gnome gpm graphviz gstreamer gtk gtk2 hal hash htdig imagemagick imap imlib ipv6 isdnlog jack java javascript jikes jpeg kde kdeenablefinal kdexdeltas libg++ libwww lm_sensors mad mhash mikmod mmx mng motif mozilla mozsvg mp3 mpeg mpm-prefork mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nautilus ncurses nls nntp nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl php pic png posix pppd prelude python qt quicktime quinnstorm readline real reflection ruby samba sdl sensord session source speex spell spl sql sqlite sse ssl subversion svg tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode utf8 v4l vcd vhosts vidix visualization vorbis win32codecs wmf xcomposite xine xinerama xml xml2 xmlreader xmlwriter xmms xorg xsl xv xvid xvmc zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux linguas_de userland_GNU video_cards_fglrx video_cards_ati video_cards_vesa video_cards_fbdev video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-04-24 14:57:02 UTC
*** Bug 131153 has been marked as a duplicate of this bug. ***
Comment 6 nEO 2006-04-26 00:16:33 UTC
(In reply to comment #2)
> Created an attachment (id=85120) [edit]
> Patch to fix this bug
> 
> Seems to work on my machine, please test.
> 
I have tested this patch, work's fine.
Pls. add this fix in new release and close this bug.
Comment 7 Andreas Gick 2006-04-26 05:09:29 UTC
The patch works for me too, sorry for the late answer.
Comment 8 Roger 2006-05-16 16:44:46 UTC
*** FYI ***

I'm doing a new stage 1 install of gentoo 20006.0...  seeing this enewgroup fail whiling trying to emerge dev-libs/openct.

To work around, I added the group by manually editing /etc/groups with:
openct:x:410:
Comment 9 James Laver 2006-05-16 22:43:09 UTC
Interesting is that after a cron'd sync, it all seemed to work just fine. I'm running it now, in fact. Perhaps it has something to do with the fact i recently started ACCEPT_KEYWORDSing ~x86
Comment 10 Matteo Spreafico 2006-05-24 05:31:17 UTC
Tor 0.1.1.20, the first stable release of the 0.1.1.x branch, is
finally ready.

This release features some major security fixes, including entry guards
to protect the beginning of the circuit, exit enclaves to protect the
end, and better firewall support; a new directory protocol that improves
bandwidth use and keeps clients more up to date; two new directory
authorities; a new ascii-based controller protocol that lets people
easily write applications to interact with Tor; and many scalability
and performance improvements.
Comment 11 Gustavo Felisberto (RETIRED) gentoo-dev 2006-07-08 06:43:09 UTC
I do not know if this is still hapening to x86 and amd64 users. In ~amd64 it works fine. Maybe it is related to baselayout or my version of portage.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-07-01 02:09:51 UTC
Been fixed ages ago.