Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25152 - "emerge -k/-K" no longer runs pkg_setup and pkg_preinst
Summary: "emerge -k/-K" no longer runs pkg_setup and pkg_preinst
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 25129 29980 47344 49244 58526 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-23 19:27 UTC by Ryan Finnie
Modified: 2004-08-21 23:23 UTC (History)
9 users (show)

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


Attachments
Fictional package, "emerge -b --debug zip2" (typescript-b,6.86 KB, text/plain)
2003-07-23 19:33 UTC, Ryan Finnie
Details
Fictional package, "emerge -K --debug zip2" (typescript-k,1.39 KB, text/plain)
2003-07-23 19:34 UTC, Ryan Finnie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Finnie 2003-07-23 19:27:25 UTC
pkg_setup and pkg_preinst functions are no longer (2.0.48-r5) being called when
a binary package is installed (via -k or -K).

Reproducible: Always
Steps to Reproduce:
1. emerge -b package
2. emerge -C package
3. emerge --debug -K package

Actual Results:  
emerge -b called pkg_setup, pkg_preinst, and pkg_postinst within the course of
the source install.
emerge -K called only pkg_postinst.

Expected Results:  
both emerge -b and emerge -K should call pkg_setup, pkg_preinst, and pkg_postinst.

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode foomaticdb gif jpeg kde gnome
libg++ libwww mad mikmod mmx mpeg ncurses nls pdflib png qt quicktime spell
truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo svga tcltk
java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk motif
opengl cdr"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Ryan Finnie 2003-07-23 19:28:23 UTC
Sorry, step 1 should include --debug.
Comment 2 Ryan Finnie 2003-07-23 19:33:33 UTC
Created attachment 14947 [details]
Fictional package, "emerge -b --debug zip2"
Comment 3 SpanKY gentoo-dev 2003-07-23 19:33:53 UTC
*** Bug 25129 has been marked as a duplicate of this bug. ***
Comment 4 Ryan Finnie 2003-07-23 19:34:42 UTC
Created attachment 14948 [details]
Fictional package, "emerge -K --debug zip2"
Comment 5 Ryan Finnie 2003-07-23 19:37:26 UTC
By the way, this error:

>>> Merging app-arch/zip2-2.3-r1 to /
/usr/sbin/ebuild.sh: line 1098: /var/db/pkg/app-arch/zip2-2.3-r1/zip2-2.3-r1.ebuild: No such file or directory

!!! ERROR: app-arch/zip2-2.3-r1 failed.
!!! Function , Line 1098, Exitcode 1
!!! error sourcing ebuild

seems to be the same as bug 18819 which was filed in April but nobody has responded to.
Comment 6 SpanKY gentoo-dev 2003-09-05 14:26:59 UTC
*** Bug 25129 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2003-09-30 03:55:38 UTC
*** Bug 29980 has been marked as a duplicate of this bug. ***
Comment 8 Ryan Finnie 2003-11-23 20:49:24 UTC
It appears that pkg_preinst is now being called during binary installations (-K), but pkg_setup is still not.  This breaks applications like ntp when installed as a binary package.
Comment 9 Ryan Finnie 2004-01-14 20:27:01 UTC
Doesn't this make GRP nearly useless?  I just had a GRP installation of clamav fail (a local GRP repository for our installations) because pkg_setup was not called and the clamav user/group was not created.

grrrrrrrrr
Comment 10 Masatomo Nakano (RETIRED) gentoo-dev 2004-01-18 05:41:45 UTC
I fixed this bug in cvs(.50pre*).

But I don't fix it in .49* because the logic are different between .49 and .50.
So it takes more time if we need to fix it in .49*.

I guess .50 will be stable(not ~) in near feature...
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2004-04-07 14:06:12 UTC
*** Bug 47010 has been marked as a duplicate of this bug. ***
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2004-04-08 03:57:29 UTC
*** Bug 47158 has been marked as a duplicate of this bug. ***
Comment 13 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 10:28:23 UTC
This bug has been fixed in 2.0.50-r1 or later.
Comment 14 SpanKY gentoo-dev 2004-04-09 21:14:07 UTC
*** Bug 47344 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2004-04-28 15:32:03 UTC
*** Bug 49244 has been marked as a duplicate of this bug. ***
Comment 16 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-28 03:26:06 UTC
pkg_setup is NOT being run for binary package merges. this was brought up by bug #58526.

Portage 2.0.51_pre13 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-mm4 i686 AMD Athlon(tm) XP 2400+)
=================================================================
System uname: 2.6.7-mm4 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/gentoo-distfiles"
FEATURES="autoaddcvs buildpkg ccache cvs digest distcc sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/gentoo-packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC=""
USE="3dnow X aalib acl acpi alsa amd apache2 apm arts avi berkdb cdr cgi clearpasswd crypt cups curl divx4linux dvd encode esd ethereal expat f77 flash gd gdbm gif gpm imap imlib innodb ipalias ipv6 jack java jikes jpeg junit ldap libg++ libwww mad maildir mcal md5sum mikmod mmx motif mozilla mpeg mysql ncurses nls oav odbc offensive oggvorbis pam pcap pda pdflib perl pic plotutils png pnp ppds python readline samba scanner sdl slang slp snmp socks5 spell sse ssl tcpd tetex threads tiff truetype type1 ungif usb v4l v4l2 wxwindows x86 xml xml2 xv xvid zlib"
Comment 17 Masatomo Nakano (RETIRED) gentoo-dev 2004-07-28 07:36:43 UTC
sorry, I thought I fixed it. but it's not fixed.

I've just fixed it in CVS.
please wait for next portage release.
Comment 18 Brian Harring (RETIRED) gentoo-dev 2004-08-16 11:24:17 UTC
Went out in pre14...
Comment 19 SpanKY gentoo-dev 2004-08-21 23:23:09 UTC
*** Bug 58526 has been marked as a duplicate of this bug. ***