Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29021 - emerge sync global updates fails on binaries moved to new directory
Summary: emerge sync global updates fails on binaries moved to new directory
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 29158 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-17 18:05 UTC by Neil McCalden
Modified: 2011-10-30 22:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil McCalden 2003-09-17 18:05:06 UTC
emerge sync reported errors trying to update binary packages, this is starting 
to happen rather too frequently.

The error message is wrong and misleading, the destination does not exist.

The problem is that the new directory, sys-fs in this example, does not exist
and emerge/fixpackages is not creating. The move fails and is incorrectly
reported.

Cannot update binary: Destination exists.
!!! sys-apps/devfsd-1.3.25-r3 -> sys-fs/devfsd-1.3.25-r3

nm-a1% ls -l /usr/portage/packages/sys-fs/*
zsh: no matches found: /usr/portage/packages/sys-fs/*
nm-a1% ls -l /usr/portage/packages/sys-fs/.
ls: /usr/portage/packages/sys-fs/.: No such file or directory

nm-a1% ls -l /usr/portage/packages/sys-apps/devfsd*
lrwxrwxrwx    1 portage  portage        28 Apr 16 00:58
/usr/portage/packages/sys-apps/devfsd-1.3.25-r3.tbz2 -> ../All/devfsd-1.3.25-r3.tbz2
lrwxrwxrwx    1 portage  portage        25 Apr 16 00:58
/usr/portage/packages/sys-apps/devfsd-1.3.25.tbz2 -> ../All/devfsd-1.3.25.tbz2

nm-a1% ls -l /usr/portage/packages/All/devfsd*
-rw-r--r--    1 portage  portage     37224 Sep  6 16:32
/usr/portage/packages/All/devfsd-1.3.25-r3.tbz2

nm-a1% epm -q portage
portage-2.0.49-r3



Reproducible: Always
Steps to Reproduce:
1.emerge sync
2.
3.

Actual Results:  
 Cannot update binary: Destination exists.
!!! sys-apps/devfsd-1.3.25-r3 -> sys-fs/devfsd-1.3.25-r3
.@!!! Cannot update binary: Destination exists.
!!! sys-apps/e2fsprogs-1.32-r2 -> sys-fs/e2fsprogs-1.32-r2
!!! Cannot update binary: Destination exists.
!!! sys-apps/e2fsprogs-1.33 -> sys-fs/e2fsprogs-1.33
............!!! Cannot update binary: Destination exists.
!!! sys-apps/reiserfsprogs-3.6.8 -> sys-fs/reiserfsprogs-3.6.8


Expected Results:  

fixpackages should check if the destination directory exists and if not create
it prior to trying to move the package file.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-09-19 00:19:58 UTC
exist-check is fixed now... Wasn't checking existance correctly...
as it was checking source and dest filenames... Which rarely change.

fixed in cvs
Comment 2 SpanKY gentoo-dev 2003-09-19 17:32:34 UTC
*** Bug 29158 has been marked as a duplicate of this bug. ***