Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31025 - fix-db doesn't honer updates
Summary: fix-db doesn't honer updates
Status: RESOLVED DUPLICATE of bug 29510
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-13 03:59 UTC by Martin Holzer (RETIRED)
Modified: 2011-10-30 22:20 UTC (History)
1 user (show)

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


Attachments
Workaround to bypass the problem (fix-db.pl.patch,1.00 KB, patch)
2003-10-17 09:39 UTC, Alain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holzer (RETIRED) gentoo-dev 2003-10-13 03:59:46 UTC
# /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
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-10-13 04:00:06 UTC
Portage 2.0.49-r13 
Comment 2 Alain 2003-10-17 09:38:09 UTC
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.
Comment 3 Alain 2003-10-17 09:39:34 UTC
Created attachment 19362 [details, diff]
Workaround to bypass the problem
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-10-17 13:00:54 UTC

*** This bug has been marked as a duplicate of 29510 ***
Comment 5 Alain 2003-10-18 07:40:37 UTC
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,