[Bug 243550] New: RPM: Missing support for %__find_prereq
https://bugzilla.novell.com/show_bug.cgi?id=243550 Summary: RPM: Missing support for %__find_prereq Product: openSUSE 10.3 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sbrabec@novell.com QAContact: qa@suse.de Suppose you have a package gconf2. It runs just-installed gconftool-2 in its %post. But there is no guarantee, that zypp will install or update dependent libraries for gconftool-2 before gconf2 itself and it can cause random installation failures of %post. To fix this problem, one has to add "PreReq" (or "Requires(post)"). But it's not easy to colect them. Documentation speaks about %__find_prereq, but it is not to be implemented, however in seems to need only one line change. It would be nice to implement it (or the new style %%_find_requires_post). Its work-around is ugly and fragile: Explicitly listing of all needed libraries in PreReq. Technical note: The code coes not offer support for Requires(pretrans) and Requires(posttrans), so it cannot be used as expected. Related: bug 235361 Partially related gconf2 upgrade problem: bug 243032 -- 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=243550 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mls@novell.com |screening@forge.provo.novell| |.com | -- 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=243550 mls@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #1 from mls@novell.com 2007-02-08 08:00 MST ------- PreReqs have the same semantics than normal Reqs, so it us sufficient to just use those. Zypp guarantees that the Reqs are installed first (cycles are broken somewhere, of course). -- 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=243550 ------- Comment #2 from sbrabec@novell.com 2007-02-08 08:25 MST ------- So can I expect, that if package gconf-2 has any scriptlet, then all requirements of this package will become a prerequirement? -- 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=243550 ------- Comment #3 from sbrabec@novell.com 2007-02-08 08:47 MST ------- It looks so: I have created two spec files, foo1 is calling foo2 in %post. It is enough to specify "Requires: foo2" in foo1.spec, and the installation order will be correct in any case, even if both packages are installed at once. I have been expecting, that Requires means: Install required package not later than the batch finishes, and PreReq means: Install prerequired package before prerequiring package -- 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=243550 ------- Comment #4 from mls@novell.com 2007-02-08 11:53 MST ------- Both Requires and PreRequires mean "install those package before I'm installed". The main advantage of PreReqs is that it can be used to check if a dependency cycle is harmless (only Requires, no PreReq) or fatal (cycle contains a PreReq). -- 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