# /usr/lib/portage/bin/fix-db.pl Grabbing db contents... Grabbing mtimes... fix-db: fatal: couldn't open /var/db/pkg/dev-python/PyXML-0.8.2/CONTENTS: No such file or directory # egrep PyXML /usr/portage/profiles/updates/* /usr/portage/profiles/updates/3Q-2003:move dev-python/PyXML dev-python/pyxml # ls -la /var/db/pkg/dev-python/ total 20 drwxr-xr-x 5 root root 4096 Sep 1 18:34 . drwxr-xr-x 57 root root 4096 Sep 26 12:04 .. drwxr-xr-x 2 root root 4096 Jul 7 13:39 egenix-mx-base-2.0.4 drwxr-xr-x 2 root root 4096 Sep 29 21:41 python-fchksum-1.6.1-r1 drwxr-xr-x 2 root root 4096 Sep 1 18:34 pyxml-0.8.2
Portage 2.0.49-r13
I ran into the same error (counter problem), so I hacked the script to make it works. I have attached the patches (it includes another patch to bypass empty packages, see 29510). Regards, Alain.
Created attachment 19362 [details, diff] Workaround to bypass the problem
*** This bug has been marked as a duplicate of 29510 ***
For me, there is no duplicate between this bug and the 29510. The hack for this bug is not implemented by the 29510 attachement. In my attached patch, there is also this change which solved this problem (or at least one part). *** 22,26 **** $ebuild_files =~ s|^/var/db/pkg/||gm; $ebuild_files =~ s/\r//g; ! $ebuild_files =~ s|^([^/]+)/[^/]+/([^/]+)\.ebuild$|\1/\2|gm; @ebuild_files = split(/\n/, $ebuild_files); --- 22,26 ---- $ebuild_files =~ s|^/var/db/pkg/||gm; $ebuild_files =~ s/\r//g; ! $ebuild_files =~ s|^([^/]+)/([^/]+)/[^/]+\.ebuild$|\1/\2|gm; @ebuild_files = split(/\n/, $ebuild_files); Hope this help,