Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142930 - dev-lang/ocaml ocaml-rebuild.sh does not rebuild all slotted packages
Summary: dev-lang/ocaml ocaml-rebuild.sh does not rebuild all slotted packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-05 16:14 UTC by spiralvoice
Modified: 2007-08-23 07:57 UTC (History)
2 users (show)

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 spiralvoice 2006-08-05 16:14:11 UTC
Here is some information about installed packages:

# emerge -pv dev-lang/swig =dev-ml/lablgtk-2.6.0 =dev-ml/lablgtk-1.2.7

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/swig-1.3.29  USE="perl -doc -guile -java -lua -mono -ocaml -php -pike -python -ruby -tcl -tk" 3,923 kB
[ebuild   R   ] dev-ml/lablgtk-2.6.0  USE="svg -debug -doc -glade -gnome -gnomecanvas -opengl" 642 kB
[ebuild   R   ] dev-ml/lablgtk-1.2.7  USE="-gnome -opengl" 457 kB


They are all currently installed, I need both versions of lablgtk btw.
ocaml-rebuild.sh however does not rebuild lablgtk-1.2.7


# sh /usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh
Cleaning "dev-lang/swig-1.3.29" "dev-ml/lablgtk-2.6.0" "dev-ml/lablgtk-1.2.7"
Building ">=dev-lang/swig-1.3.29" ">=dev-ml/lablgtk-2.6.0" ">=dev-ml/lablgtk-1.2.7"

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/swig-1.3.29
[ebuild   R   ] dev-ml/lablgtk-2.6.0
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-05 16:50:38 UTC
> Building ">=dev-lang/swig-1.3.29" ">=dev-ml/lablgtk-2.6.0"
> ">=dev-ml/lablgtk-1.2.7"

The produced command is obviously wrong since >=dev-ml/lablgtk-2.6.0 and 
>=dev-ml/lablgtk-1.2.7 will resolve to the same ebuild version (2.6.0).
Comment 2 Matthieu Sozeau (RETIRED) gentoo-dev 2006-09-14 09:03:06 UTC
Problem is, I use >= because some packages versions might be outdated and would cause emerge to fail, but it's obviously wrong for slotted packages. It would not even work if updating one package at a time, so what do you suggest ?
Comment 3 Matthieu Sozeau (RETIRED) gentoo-dev 2006-09-14 09:14:03 UTC
As a quick fix, I added a test for slots. If the package is slotted (SLOT != 0), we require the exact same version, otherwise any equal or greater version.
It can break this way but it won't forget anything.
Comment 4 Alexis Ballier gentoo-dev 2007-08-23 07:57:37 UTC
(In reply to comment #3)
> As a quick fix, I added a test for slots. If the package is slotted (SLOT !=
> 0), we require the exact same version, otherwise any equal or greater version.
> It can break this way but it won't forget anything.


I suppose we can consider this one fixed then :>