[Bug 346490] New: %py_requires incorrect
https://bugzilla.novell.com/show_bug.cgi?id=346490 Summary: %py_requires incorrect Product: openSUSE 11.0 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: jmatejek@novell.com ReportedBy: dmueller@novell.com QAContact: qa@suse.de Found By: --- the current %py_requires are something like python >= 2.5 python < 2.6 which is also fullfilled by installing python 2.4 and python 2.6. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=346490
User dmueller@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c1
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=346490
User jmatejek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c2
Jan Matejek
https://bugzilla.novell.com/show_bug.cgi?id=346490
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c3
--- Comment #3 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=346490
User jmatejek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c4
--- Comment #4 from Jan Matejek
%py_requires should expand to a normal 'Requires:', is there any need for a pre-requires ?
well, python packages can use python in their scriptlets, i was under the impression that %py_requires should enable them to do so. (and anyway it's not my idea, it was like that before)
There is no need for additional provides in the pytho and python-base packages.
so how do you propose to implement the "i want python that's 2.6.* but not higher or lower" Requires ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User jmatejek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c5
--- Comment #5 from Jan Matejek
There is no need for additional provides in the pytho and python-base packages.
oh, and even if there is no need, it is better to have it, for compatibility with non-suse-native rpm's, that might require python by major.minor version -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c6
--- Comment #6 from Klaus Kämpf
(In reply to comment #3 from Klaus Kämpf)
%py_requires should expand to a normal 'Requires:', is there any need for a pre-requires ?
well, python packages can use python in their scriptlets, i was under the impression that %py_requires should enable them to do so. (and anyway it's not my idea, it was like that before)
Then lets leave at this, it doesn't really harm anyway.
There is no need for additional provides in the pytho and python-base packages.
so how do you propose to implement the "i want python that's 2.6.* but not higher or lower" Requires ?
Requires: python = 2.6 But the python-2.6.rpm implicitly provides its name and version (as does every rpm package), so there is no need to 'Provide:' it explicitly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c7
--- Comment #7 from Klaus Kämpf
(In reply to comment #3 from Klaus Kämpf)
There is no need for additional provides in the pytho and python-base packages.
oh, and even if there is no need, it is better to have it, for compatibility with non-suse-native rpm's, that might require python by major.minor version
No, there isn't. A 'requires foo = version' (without specifying a release) means 'any release of this version'. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User jmatejek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c8
--- Comment #8 from Jan Matejek
so how do you propose to implement the "i want python that's 2.6.* but not higher or lower" Requires ?
Requires: python = 2.6
But the python-2.6.rpm implicitly provides its name and version (as does every rpm package), so there is no need to 'Provide:' it explicitly.
true, but. python's version is now 2.6.0 (to avoid upgrade problems from 2.6b3 and 2.6rc1) and next version will be 2.6.1 - and every 2.6.x release is "fully compatible except for bugfixes" with baseline 2.6. That is the reason why %py_requires were originally defined to take python >= A.B AND python < A.B+1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c9
--- Comment #9 from Klaus Kämpf
python's version is now 2.6.0 (to avoid upgrade problems from 2.6b3 and 26rc1) and next version will be 2.6.1 - and every 2.6.x release is "fully compatible except for bugfixes" with baseline 2.6. That is the reason why %py_requires were originally defined to take python >= A.B AND python < A.B+1
Ah, got it. But I think you're actually mis-using an RPM functionality here. %py_requires should express an API version (i.e. "Requires: python_api = 2.6"), not a package version. But RPM splits version strings at '.' and interprets missing values as wildcards, hence it works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c10
--- Comment #10 from Klaus Kämpf
But I think you're actually mis-using an RPM functionality here. %py_requires should express an API version (i.e. "Requires: python_api = 2.6"), not a package version. But RPM splits version strings at '.' and interprets missing values as wildcards, hence it works.
Argh, no, I was mistaken. The wildcard only applied to the release. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=346490
User dmueller@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c11
--- Comment #11 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=346490
User kkaempf@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=346490#c12
--- Comment #12 from Klaus Kämpf
participants (1)
-
bugzilla_noreply@novell.com