[Bug 217875] New: lua/lua50 file conflicts
https://bugzilla.novell.com/show_bug.cgi?id=217875 Summary: lua/lua50 file conflicts Product: openSUSE 10.2 Version: Beta 1 plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: mjancar@novell.com ReportedBy: sndirsch@novell.com QAContact: qa@suse.de CC: mrueckert@novell.com rpm -Uhv /mounts/work/CDs/all/full-i386/suse/i586/{lua,lua50}.rpm Preparing... ########################################### [100%] file /usr/bin/lua conflicts between attempted installs of lua-5.1.1-9 and lua50-5.0.2-3 file /usr/bin/luac conflicts between attempted installs of lua-5.1.1-9 and lua50-5.0.2-3 file /usr/lib/liblua.so conflicts between attempted installs of lua-5.1.1-9 and lua50-5.0.2-3 file /usr/share/man/man1/lua.1.gz conflicts between attempted installs of lua-5.1.1-9 and lua50-5.0.2-3 file /usr/share/man/man1/luac.1.gz conflicts between attempted installs of lua-5.1.1-9 and lua50-5.0.2-3 Not sure how this should work at all. Some packages need lua50, other need lua51 ... -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #1 from mrueckert@novell.com 2006-11-03 10:44 MST ------- split out lua50-libs and lua-libs. that way you can at least install both libraries. the buildservice package works exactly that way. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major ------- Comment #2 from cthiel@novell.com 2006-11-05 04:49 MST ------- Marcus, can you please sync STABLE with the build service? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #3 from sndirsch@novell.com 2006-11-05 05:21 MST ------- (In reply to comment #2)
Marcus, can you please sync STABLE with the build service? Well, the lua packages in BS are maintained by Marcus, whereas the one in STABLE are maintained by Marian. I'm not sure if Marian would be happy to see his packages in STABLE simply overwritten by Marcus' one.
-- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #4 from lmichnovic@novell.com 2006-11-09 04:03 MST ------- Marian has vacation. The fastest solution is that Marcus will do it. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 mrueckert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #5 from mrueckert@novell.com 2006-11-09 04:18 MST ------- it is done already. see the buildservice project devel:languages:lua the diff is pretty trivial: [[[ --- /work/SRC/all/lua50/lua50.changes 2006-10-30 23:00:13.000000000 +0100 +++ /home/darix/osc/devel:languages:lua/lua50/lua50.changes 2006-11-06 7:23:26.650148930 +0100 @@ -1,0 +2,5 @@ +Mon Nov 6 17:23:17 CET 2006 - mrueckert@suse.de + +- splitted out lua50-libs + +------------------------------------------------------------------- --- /var/tmp/diff_new_pack.V28197/_old 2006-11-09 12:14:37.443088814 +0100 +++ /var/tmp/diff_new_pack.V28197/_new 2006-11-09 12:14:37.459089744 +0100 @@ -15,7 +15,7 @@ Group: System/Libraries Autoreqprov: on Version: 5.0.2 -Release: 1 +Release: 4 Summary: Small Embeddable Language with Simple Procedural Syntax URL: http://www.lua.org Source: %{name}-%{version}.tar.bz2 @@ -52,6 +52,20 @@ +%package libs +Summary: Shared libraries for lua 5.0 +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} + +%description libs +Lua is a programming language originally designed for extending +applications, but also frequently used as a general-purpose, +stand-alone language. + +This package contains shared librareis for lua 5.0. + + + %prep %setup -q -n lua-%{version} %patch @@ -69,11 +83,14 @@ %defattr(-,root,root) %{_prefix}/bin/lua %{_prefix}/bin/luac -%{_libdir}/*.so* %{_mandir}/man1/lua.1.gz %{_mandir}/man1/luac.1.gz %doc COPYRIGHT HISTORY README doc/* ]]] so i will just commit that. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |219773 Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #6 from andreas.hanke@gmx-topmail.de 2006-11-13 23:36 MST ------- This bug is not fixed. (1) At least /usr/%{_lib}/liblua.so is still packaged in at least one -libs package, which is wrong and causes clashes. It belongs into the -devel packages. (2) The packages are otherwise nicely split, but this is insufficient because the packages do not have "Conflicts:" tags. Therefore a depsolver does not have any metadata information about the split and will either happily overwrite and consequently break the packages (YaST) or fail while installing them (smart). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #7 from andreas.hanke@gmx-topmail.de 2006-11-14 00:15 MST ------- Created an attachment (id=105050) --> (https://bugzilla.novell.com/attachment.cgi?id=105050&action=view) Fixed filelist and broken dependencies lua50.spec needs a similar fix. The src.rpm is currently not publicly available, so here the rationale: - both -libs packages must not contain overlapping files in the end - the -libs packages must not have dependencies on conflicting packages because otherwise the whole split is completely pointless - the remaining conflicting packages must be marked as such because otherwise YaST doesn't know it and will overwrite the clashing files anyway -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 mjancar@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED ------- Comment #8 from mjancar@novell.com 2006-11-14 03:47 MST ------- The filelist is part of the metadata btw, yast should be able to see the conflict even without the explicit "Conflicts:" statements. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 mrueckert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn|219773 | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #9 from mrueckert@novell.com 2006-11-14 04:33 MST ------- fixed packages submitted -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #10 from andreas.hanke@gmx-topmail.de 2006-11-14 06:18 MST ------- (In reply to comment #8)
The filelist is part of the metadata btw, yast should be able to see the conflict even without the explicit "Conflicts:" statements.
YaST2 metadata do not contain filelist information. YaST2 tries to install packages with --replacefiles if they contain clashing files because it cannot know in advance (while computing the transaction) if they are clashing. YUM metadata do contain filelist information, but the install CDs/DVDs have only YaST metadata. For online repos, both YaST2 and YUM metadata exist, but the YaST2 metadata are preferred because YUM metadata do not contain information about patterns. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #11 from mjancar@novell.com 2006-11-14 11:49 MST ------- Unfortunately you are right. This is trivially fixable in the metadata creator and yast though. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #12 from andreas.hanke@gmx-topmail.de 2006-11-14 12:53 MST ------- I don't think that this is reasonably fixable in YaST without increasing the memory and disk space usage to a degree as high as with YUM metadata. The metadata would also have to be stored somewhere, i.e. some packages would have to disappear from the CDs. Certainly not something for the 10.2 timeframe. Besides this, there is still a circular dependency between the subpackages: - lua depends on lua-libs because /usr/bin/lua is linked to /usr/lib/liblua.so.*; this dependency is correct, necessary and auto-detected by rpm - lua-libs depends on lua - this dependency is added manually and not necessary The latter is not only questionable in general (circular dependencies should always be avoided because they force the depsolver to break the loop somewhere by installing at least one package with --nodeps), but also breaks the purpose of the package split (subpackages that require each other are effectively not subpackages, but part of the main package and behave exactly like that). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #13 from mrueckert@novell.com 2006-11-14 13:01 MST ------- first of all... only the devel and the base lua package collide. the lua*-libs packages no longer conflict. which should be sufficient for most cases right? the libs are the only 2 lua packages which are pulled in by rpm automatically. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #14 from andreas.hanke@gmx-topmail.de 2006-11-14 13:14 MST ------- That's exactly why I made this bug depend on bug 219773: The packages aren't synced out, all information I have is the last synced lua.spec (not lua50.spec, this has never been synced out) and the opensuse-commit mailing list. According to the opensuse-commit mailing list, lua-libs depends on lua: http://lists.opensuse.org/opensuse-commit/2006-11/msg00512.html %package libs Summary: Small Embeddable Language with Simple Procedural Syntax Group: System/Libraries Requires: %{name} = %{version} The dependency chain is now as follows: Your favourite game embeds lua. => It is linked against liblua.so.5.1 liblua.so.5.1 is part of lua-libs lua-libs "depends" on lua [*] => The game installs lua through the dependency chain. Your other favourite game embeds lua50. => It is linked against liblua.so.5.0 liblua.so.5.0 is part of lua50-libs lua50-libs "depends" on lua50 [*] => The game installs lua50 through the dependency chain. lua and lua50 are in conflict because both install /usr/bin/lua. => The games cannot be installed together because one of them installs lua, the other one installs lua50, and lua cannot be installed together with lua50. [*] marks the points where the dependency chain must be broken up, because these dependencies are bogus. A game that embeds lua needs only the libs and the libs don't need the binary, but the other way round - and that's auto-detected by rpm. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #15 from andreas.hanke@gmx-topmail.de 2006-11-14 16:34 MST ------- If you don't trust me that the "Conflicts:" tags are right, have a look at how flex and flex-old are packaged. And other pairs of conflicting packages, like postfix/exim, avahi/mDNSResponder etc. Btw. adding the conflicts to just one of the packages (i.e. either lua or lua50, and either lua-devel or lua50-devel) would be sufficient already (like for flex/flex-old, where flex-old has "Conflicts: flex", but not the other way round). But not adding them at all makes depsolvers unaware of the conflicts. I've just had a look at different depsolvers: - YaST/zypp (already described, see comment 10) - yum - apt-rpm - smart None of them determines the conflicts from the filelists even for repository types that do provide filelists information. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #16 from mrueckert@novell.com 2006-11-14 17:23 MST ------- right. but it fails at installation time. i will see how much time it takes to port them to update alternatives. otherwise i will add the conflicts. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 ------- Comment #17 from mjancar@novell.com 2006-11-15 02:33 MST ------- (In reply to comment #12)
I don't think that this is reasonably fixable in YaST without increasing the memory and disk space usage to a degree as high as with YUM metadata. The
The metadata support file provides (there are quite a few file (Pre)Requires among various packages), placing just the conflicting files there and using the information in the yast conflict resolution is enough. In contrast to the flex we would like to make both lua versions simultaneously installable with the help of alternatives. The Conflicts tag is too big hammer that should be used only when it is meant to stay forever (like any other in fact, I'm not big fan of a tag or %pre/%post "gymnastics" used to workaround shortcommings outside the package or to make the package quickly work in one distribution release, such thing often bite you back when you want to support upgrade after more then one future releases etc). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217875 mjancar@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #18 from mjancar@novell.com 2006-11-20 08:20 MST ------- fixed -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com