Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29510 - fixdb.pl doesnt handle meta packages
Summary: fixdb.pl doesnt handle meta packages
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 29525 29602 31025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-24 06:46 UTC by SpanKY
Modified: 2004-04-09 10:34 UTC (History)
7 users (show)

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


Attachments
patch to fix the problem with zero-bye CONTENTS files (fix-db.patch,601 bytes, patch)
2003-10-04 08:38 UTC, Benjamin Ritcey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-09-24 06:46:33 UTC
that is to say, packages that dont install any files (CONTENTS == 0 bytes)

fileutils, sh-utils, textutils all do this ... there are others too ...
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-09-24 11:25:05 UTC
*** Bug 29525 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2003-09-25 19:01:25 UTC
*** Bug 29602 has been marked as a duplicate of this bug. ***
Comment 3 Benjamin Ritcey 2003-10-04 08:38:58 UTC
Created attachment 18743 [details, diff]
patch to fix the problem with zero-bye CONTENTS files

This assumes that if CONTENTS exists and is zero-sized that the package in
question is a meta package and skips it.  Fixed the problem for me.
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2003-10-10 03:31:37 UTC
I ran into the same problem on one of my Gentoo boxen.

I ran /usr/lib/portage/bin/fix-db.py
instead of the .pl as suggested by the error message
and it seems the problem is gone.
Comment 5 Mark E. Drummond 2003-10-13 09:18:58 UTC
I am getting this error with app-doc/kdelibs-apidocs-3.1.4:

--- !empty dir /usr/kde/3.1
--- !empty dir /usr/kde
--- !empty dir /usr
--- !targe sym /usr/kde/3.1/share/doc/HTML/en/kdelibs-apidocs/common
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
 *  Service 'dcron' already provide 'cron'!;
 *  Not adding service 'vcron'...                                       
                 [ ok ]
>>> app-doc/kdelibs-apidocs-3.1.4 merged.
['app-doc/kdelibs-apidocs', '3.1.2', 'r0'] ['app-doc/kdelibs-apidocs-3.1.2',
'app-doc/kdelibs-apidocs-3.1.4']
!!! COUNTER file is missing for app-doc/kdelibs-apidocs-3.1.2 in /var/db.
!!! Please run /usr/lib/portage/bin/fix-db.pl or remerge the package.

I run fix-db.pl, and it runs successfully:

yen root # /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
Sorting...
Writing COUNTERs...
Writing /var/cache/edb/counter...
Done.

And yet, when I try re-emerging app-doc/kdelibs-apidocs-3.1.4, I get the
same message again!

I am unable to complete an update of my laptop because of this.

Mark
Comment 6 Sascha Silbe 2003-10-14 01:15:04 UTC
Same problem here with nessus:

root@cube:~# /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: insufficient data for net-analyzer/nessus-2.0.7-r1

Remove this package's directory from /var/db/pkg to fix this, then start
this
script again. If everything worked correctly, you must remerge
net-analyzer/nessus-2.0.7-r1 to not mess up any dependencies.
root@cube:~# rm -rf /var/db/pkg/net-analyzer/nessus-2.0.7-r1/
root@cube:~# emerge nessus
Calculating dependencies ...done!
>>> emerge (1 of 1) net-analyzer/nessus-2.0.7-r1 to /
>>> Unpacking source...
>>> Source unpacked.

>>> Install nessus-2.0.7-r1 into /var/tmp/portage/nessus-2.0.7-r1/image/
category net-analyzer
man:
prepallstrip:
strip: 
>>> Completed installing into /var/tmp/portage/nessus-2.0.7-r1/image/

>>> Merging net-analyzer/nessus-2.0.7-r1 to /

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                      
                                                              [ ok ]
>>> net-analyzer/nessus-2.0.7-r1 merged.

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                      
                                                              [ ok ]
>>> Auto-cleaning packages ...
['net-www/mozilla', '1.4', 'r3'] ['net-www/mozilla-1.4', 'net-www/mozilla-1.4-r3']
!!! COUNTER file is missing for net-www/mozilla-1.4-r3 in /var/db.
!!! Please run /usr/lib/portage/bin/fix-db.pl or remerge the package.
root@cube:~# /usr/lib/portage/bin/fix-db.pl
Grabbing db contents...
Grabbing mtimes...
fix-db: fatal: insufficient data for net-analyzer/nessus-2.0.7-r1

Remove this package's directory from /var/db/pkg to fix this, then start
this
script again. If everything worked correctly, you must remerge
net-analyzer/nessus-2.0.7-r1 to not mess up any dependencies.

Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-10-17 13:00:54 UTC
*** Bug 31025 has been marked as a duplicate of this bug. ***
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 12:56:30 UTC
The perl script needs some loving... At lot really.
It's feeling neglected. Anyone wanna provide the TLC?
I'll probably drop it otherwise in favor of my
not-quite-finished python db fixer.
Comment 9 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 10:34:59 UTC
Now we don't have fixdb.pl, so we can't fix it.
If I misunderstand somthing, feel free to reopen.