Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62998 - Ebuilds are not renamed with their directories when a package changes name
Summary: Ebuilds are not renamed with their directories when a package changes name
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-06 05:11 UTC by Thilo Six
Modified: 2004-10-22 08:47 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 Thilo Six 2004-09-06 05:11:27 UTC
All started with:
root # emerge -upv $(qpkg -I -nc)

These are the packages that I would merge, in order:

Calculating dependencies -
emerge: there are no masked or unmasked ebuilds to satisfy "dev-java/avalon-logkit".

!!! Error calculating dependencies. Please correct.

2. checked the installed version
root # qpkg -I -v avalon-logkit
dev-java/avalon-logkit-1.2.2

3. checked the available Version
root # cd /usr/portage/dev-java/avalon-logkit-bin/
root # ls -l
-rw-r--r--  1 root root  834 31. Jul 14:09 avalon-logkit-bin-1.2.2.ebuild
-rw-r--r--  1 root root  743 31. Jul 14:09 avalon-logkit-bin-1.2.ebuild
-rw-r--r--  1 root root 1,3K  5. Sep 08:08 ChangeLog
drwxr-xr-x  2 root root 4,0K 30. Jul 21:05 files/
-rw-r--r--  1 root root  636  5. Sep 08:08 Manifest
-rw-r--r--  1 root root  157 30. Jul 20:39 metadata.xml


4. delete installed Version
root # emerge -Ca dev-java/avalon-logkit
These are the packages that I would merge, in order:

Calculating dependencies -
emerge: there are no masked or unmasked ebuilds to satisfy "dev-java/avalon-logkit".

!!! Error calculating dependencies. Please correct.

5. have a look in db
root # cd /var/db/pkg/dev-java/avalon-logkit-bin-1.2.2/
root # ls -l
-rw-r--r--  1 root root 805  1. Aug 01:38 avalon-logkit-1.2.2.ebuild
-rw-r--r--  1 root root   9  1. Aug 01:38 CATEGORY
-rw-r--r--  1 root root   1 19. Jun 10:25 CBUILD
-rw-r--r--  1 root root   4 19. Jun 10:25 CC
-rw-r--r--  1 root root   2 19. Jun 10:25 CDEPEND
-rw-r--r--  1 root root  44 19. Jun 10:25 CFLAGS
-rw-r--r--  1 root root  18 19. Jun 10:25 CHOST
-rw-r--r--  1 root root 421 19. Jun 10:25 CONTENTS
-rw-r--r--  1 root root   4 19. Jun 10:25 COUNTER
-rw-r--r--  1 root root   4 19. Jun 10:25 CXX
-rw-r--r--  1 root root  44 19. Jun 10:25 CXXFLAGS
-rw-r--r--  1 root root  19 19. Jun 10:25 DEPEND
-rw-r--r--  1 root root 16K 19. Jun 10:25 environment.bz2
-rw-r--r--  1 root root   4 19. Jun 10:25 IUSE
-rw-r--r--  1 root root  11 19. Jun 10:25 LICENSE
-rw-r--r--  1 root root   2 19. Jun 10:25 PDEPEND
-rw-r--r--  1 root root  20 19. Jun 10:25 PF
-rw-r--r--  1 root root   1 19. Jun 10:25 PKGUSE
-rw-r--r--  1 root root   1 19. Jun 10:25 PROVIDE
-rw-r--r--  1 root root  19 19. Jun 10:25 RDEPEND
-rw-r--r--  1 root root   2 19. Jun 10:25 SLOT
-rw-r--r--  1 root root 924 19. Jun 10:25 USE

6. force portage to unmerge avalon-logkit
root # emerge -Ca var/db/pkg/dev-java/avalon-logkit-bin-1.2.2/avalon-logkit-1.2.2.ebuild

>>> These are the packages that I would unmerge:

 dev-java/avalon-logkit-bin
    selected: 1.2.2
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.


so it wasn
Comment 1 Thilo Six 2004-09-06 05:11:27 UTC
All started with:
root # emerge -upv $(qpkg -I -nc)

These are the packages that I would merge, in order:

Calculating dependencies -
emerge: there are no masked or unmasked ebuilds to satisfy "dev-java/avalon-logkit".

!!! Error calculating dependencies. Please correct.

2. checked the installed version
root # qpkg -I -v avalon-logkit
dev-java/avalon-logkit-1.2.2

3. checked the available Version
root # cd /usr/portage/dev-java/avalon-logkit-bin/
root # ls -l
-rw-r--r--  1 root root  834 31. Jul 14:09 avalon-logkit-bin-1.2.2.ebuild
-rw-r--r--  1 root root  743 31. Jul 14:09 avalon-logkit-bin-1.2.ebuild
-rw-r--r--  1 root root 1,3K  5. Sep 08:08 ChangeLog
drwxr-xr-x  2 root root 4,0K 30. Jul 21:05 files/
-rw-r--r--  1 root root  636  5. Sep 08:08 Manifest
-rw-r--r--  1 root root  157 30. Jul 20:39 metadata.xml


4. delete installed Version
root # emerge -Ca dev-java/avalon-logkit
These are the packages that I would merge, in order:

Calculating dependencies -
emerge: there are no masked or unmasked ebuilds to satisfy "dev-java/avalon-logkit".

!!! Error calculating dependencies. Please correct.

5. have a look in db
root # cd /var/db/pkg/dev-java/avalon-logkit-bin-1.2.2/
root # ls -l
-rw-r--r--  1 root root 805  1. Aug 01:38 avalon-logkit-1.2.2.ebuild
-rw-r--r--  1 root root   9  1. Aug 01:38 CATEGORY
-rw-r--r--  1 root root   1 19. Jun 10:25 CBUILD
-rw-r--r--  1 root root   4 19. Jun 10:25 CC
-rw-r--r--  1 root root   2 19. Jun 10:25 CDEPEND
-rw-r--r--  1 root root  44 19. Jun 10:25 CFLAGS
-rw-r--r--  1 root root  18 19. Jun 10:25 CHOST
-rw-r--r--  1 root root 421 19. Jun 10:25 CONTENTS
-rw-r--r--  1 root root   4 19. Jun 10:25 COUNTER
-rw-r--r--  1 root root   4 19. Jun 10:25 CXX
-rw-r--r--  1 root root  44 19. Jun 10:25 CXXFLAGS
-rw-r--r--  1 root root  19 19. Jun 10:25 DEPEND
-rw-r--r--  1 root root 16K 19. Jun 10:25 environment.bz2
-rw-r--r--  1 root root   4 19. Jun 10:25 IUSE
-rw-r--r--  1 root root  11 19. Jun 10:25 LICENSE
-rw-r--r--  1 root root   2 19. Jun 10:25 PDEPEND
-rw-r--r--  1 root root  20 19. Jun 10:25 PF
-rw-r--r--  1 root root   1 19. Jun 10:25 PKGUSE
-rw-r--r--  1 root root   1 19. Jun 10:25 PROVIDE
-rw-r--r--  1 root root  19 19. Jun 10:25 RDEPEND
-rw-r--r--  1 root root   2 19. Jun 10:25 SLOT
-rw-r--r--  1 root root 924 19. Jun 10:25 USE

6. force portage to unmerge avalon-logkit
root # emerge -Ca var/db/pkg/dev-java/avalon-logkit-bin-1.2.2/avalon-logkit-1.2.2.ebuild

>>> These are the packages that I would unmerge:

 dev-java/avalon-logkit-bin
    selected: 1.2.2
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.


so it wasn´t possible to get rif of this "with normal" portage handling.


7. remerge 
root # emerge -a --noconfmem --oneshot avalon-logkit-bin



This is just an example to show you what I did and what happend.
There were serveral packages that I had the same problems with:

old Style                =>  New Style
dev-java/regexp-bin      =>  dev-java/regexp
gnome-base/ORBit         =>  gnome-base/orbit
gnome-base/ORBit2        =>  gnome-base/orbit-2
dev-java/avalon-logkit   =>  dev-java/avalon-logkit-bin
dev-python/PyOpenGL      =>  dev-python/pyopengl


after all i just found out, that I probably hadn´t to remerge them.
to rename the Ebuild in
 /var/db/pkg/ .....
would have done it ?

e.g.
root # mv /var/db/pkg/dev-java/avalon-logkit-bin-1.2.2/avalon-logkit-1.2.2.ebuild /var/db/pkg/dev-java/avalon-logkit-bin-1.2.2/avalon-logkit-bin-1.2.2.ebuild

As I allready suggested:
   The Problem here is (my assumption), that the Ebuild from the Portage Tree 
   had an other Name than the one allready installed and Portage could _not_ 
   find anymore.
   Would it be better then to make s.th. like a version bump instead ?
   e.g. instead of just renaming the Ebuild ( what will lead to problems with 
   allready installed Packages ) just "upgrade to an other Name":

   dev-java/regexp-bin-1.3  => dev-java/regexp-1.3-r1


   !!! but without deleting to old one from the portage tree !!!




Reproducible: Always
Steps to Reproduce:
1.see above
2.
3.

Actual Results:  
see above

Expected Results:  
see above

root # emerge info
Portage 2.0.50-r10 (2004.2, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon -pipe -fomit-frame-pointer -w"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/terminfo /etc/wget
/usr/X11/bin/startx /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -pipe -fomit-frame-pointer -w"
DISTDIR="/home/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X X509 aalib accounting acl acpi acpi4linux aim aliaschain
alsa amd apm arts async audiofile avi bdf berkdb bitmap-fonts bootsplash cap
caps cddb cdf cdparanoia cdr cdrom chroot clamav crypt cscope curl curlwrappers
dga directfb divx4linux dnd dnsdb droproot dv dvd dvdread edl emacs emacs-w3
encode escreen esd ethereal exif exim exiscan exiscan-acl faac faad fam fbcon
ffmpeg flac foomaticdb freetype ftp gdbm geoip gif gpm graphviz gs gstreamer gtk
gtk2 hbci hdf icq icu image imagemagick imap imlib imlib2 intl jabber java
javascript jbig jikes jp2 jpeg justify kadu-modules kde kerberos lcms leim
libcaca libg++ libwww lids linguas_de live lm_sensors lmtp lua lynxkeymap lzo
lzw lzw-tiff mad maildir matroska md5sum memlimit migemo mikmod mime mmx mmx2
mng motif mozdomi mozilla moznoirc mozp3p mozsvg mpeg mpeg4 mpi mplayer msn mule
mythtv nas ncurses network nls nntp nocardbus nocd nptl oav odbc oggvorbis
ooo-kde openal opengl operanom2 oscar oss pam parse-clocks passfile pcap pdf
pdflib perl png procmail pthreads python qt quicktime readline rtc sasl
savedconfig sdl silc slang speedo spell ssl stencil-buffer stroke svga tcltk
tcpd tga theora tiff tlen transcode truetype type1 unicode v4l v4l2 virus-scan
vnc wildlsearch wmf wsconvert x86 xchatdccserver xface xine xml2 xmms xv xvid
xvmc yahoo zlib zvbi"
Comment 2 Thilo Six 2004-09-06 05:12:12 UTC
see also bug:

# 62344 - problem with -bin renamed packages

http://bugs.gentoo.org/show_bug.cgi?id=62344
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-09-06 05:54:07 UTC
bug 62344 has notting to do/is not related to this bug report
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-09-07 19:57:27 UTC
Ebuild must match the directory it is in.

That is not a valid combination.
Comment 5 Thilo Six 2004-09-08 04:25:05 UTC
Yes is the problem I had.
Therefor I reported a bug.

Curently it is not a big thing, because all user who have this problem don
Comment 6 Thilo Six 2004-09-08 04:25:05 UTC
Yes is the problem I had.
Therefor I reported a bug.

Curently it is not a big thing, because all user who have this problem don´t know 
it. So we have time to get back right.

But _this should be_ donne, other wise at lot of user will complain about this.
Comment 7 Thilo Six 2004-09-08 04:27:04 UTC
argh sorry for the bad spelling
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2004-09-08 05:07:23 UTC
When packages are renamed, the ebuild name does not change with the directory name for vardb entries.
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2004-09-08 21:07:47 UTC
Should be handled in 2.0.51_pre21
Comment 10 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:51 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2