Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10082 - pkg_{post,pre}rm not run if no files installed
Summary: pkg_{post,pre}rm not run if no files installed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-02 01:06 UTC by SpanKY
Modified: 2011-10-30 22:19 UTC (History)
0 users

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


Attachments
testing-0.ebuild (testing-0.ebuild,759 bytes, text/plain)
2002-11-02 01:07 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2002-11-02 01:06:54 UTC
attached is a simple ebuild script i made while doing something else ... but i 
noticed that when you run these series of commands, pkg_postrm and pkg_prerm 
dont seem to be run ... 
 
root@rux0r testing # emerge testing 
Calculating dependencies ...done! 
>>> emerge (1 of 1) dev-lang/testing-0 to / 
pkg_setup: /var/tmp 
>>> WORKDIR is up-to-date, keeping... 
src_compile: /var/tmp/portage/testing-0/work/testing-0 
 
>>> Install testing-0 into /var/tmp/portage/testing-0/image/ category dev-lang 
src_install: /var/tmp/portage/testing-0/work/testing-0 
strip: 
>>> Completed installing into /var/tmp/portage/testing-0/image/ 
 
>>> Merging dev-lang/testing-0 to / 
pkg_preinst: /usr/local/portage/dev-lang/testing 
 
pkg_postinst: /usr/local/portage/dev-lang/testing 
>>> Regenerating /etc/ld.so.cache... 
>>> dev-lang/testing-0 merged. 
 
 * GNU info directory index is up-to-date. 
 
root@rux0r testing # emerge testing 
Calculating dependencies ...done! 
>>> emerge (1 of 1) dev-lang/testing-0 to / 
pkg_setup: /var/tmp 
>>> WORKDIR is up-to-date, keeping... 
src_compile: /var/tmp/portage/testing-0/work/testing-0 
 
>>> Install testing-0 into /var/tmp/portage/testing-0/image/ category dev-lang 
src_install: /var/tmp/portage/testing-0/work/testing-0 
strip: 
>>> Completed installing into /var/tmp/portage/testing-0/image/ 
 
>>> Merging dev-lang/testing-0 to / 
pkg_preinst: /usr/local/portage/dev-lang/testing 
 
pkg_postinst: /usr/local/portage/dev-lang/testing 
>>> Regenerating /etc/ld.so.cache... 
>>> dev-lang/testing-0 merged. 
 
 * GNU info directory index is up-to-date. 
 
root@rux0r testing # emerge unmerge testing 
 
 dev-lang/testing 
    selected: 0 
   protected: none 
     omitted: none 
 
>>> Packages in red are slated for removal. 
>>> Packages in green will not be removed. 
 
>>> Waiting 5 seconds before starting... 
>>> (Control-C to abort)... 
>>> Unmerging in: 5 4 3 2 1  
>>> Unmerging dev-lang/testing-0... 
No package files given... Grabbing a set. 
>>> Regenerating /etc/ld.so.cache... 
 
 * GNU info directory index is up-to-date. 
 
root@rux0r testing #
Comment 1 SpanKY gentoo-dev 2002-11-02 01:07:32 UTC
Created attachment 5296 [details]
testing-0.ebuild
Comment 2 SpanKY gentoo-dev 2002-11-02 01:09:23 UTC
but if you have the ebuild install a file it will run both functions ... 
Comment 3 SpanKY gentoo-dev 2003-01-08 13:49:25 UTC
this *might* be useful for metaebuilds ... ones that are in place just to emerge
other packages (like the kde/gnome ebuilds)
Comment 4 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 12:24:17 UTC
This bug has been fixed in the current stable portage.
I remember I fixed it :)