Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 201082

Summary: sys-apps/portage-2.1.4_rc5 - CATEGORY not set in pkg_postinst (corrupts moduledb)
Product: Portage Development Reporter: Vlastimil Babka (Caster) (RETIRED) <caster>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: major CC: kernel-misc
Priority: High Keywords: InVCS, REGRESSION
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 200044    
Attachments: fix missing CATEGORY variable for postinst phase

Description Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-12-03 10:55:31 UTC
Works fine in 2.1.3.x.

As a results of this bug, moduledb gets corrupted like this (missing category):
a:1:/vmware-modules-1.0.0.15-r1
a:1:/fuse-2.7.1
a:1:/ati-drivers-8.433

Didn't check where else it's not set or what else is not set :)
Comment 1 Zac Medico gentoo-dev 2007-12-03 19:24:43 UTC
Created attachment 137643 [details, diff]
fix missing CATEGORY variable for postinst phase

If this patch is saved as /tmp/postinst.patch, then it can be applied as follows:

patch /usr/lib/portage/pym/portage.py < tmp/postinst.patch
Comment 2 Zac Medico gentoo-dev 2007-12-04 01:29:42 UTC
This has been released in 2.1.4_rc7.