[opensuse-factory] Does zypper dup respect RPM Require(pre|post)?
During zypper dup from M4 to B1 I notice that installation order was grub2-i386-pc grub2 Now grub2.spec has %package %{grubarch} Summary: Bootloader with support for Linux, Multiboot and more Group: System/Boot Requires: %{name} = %{version}-%{release} Requires(post): %{name} = %{version}-%{release} Do I misunderstand what Requires(post) does or zypper ignores requirements indeed? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 09/19/2013 02:31 PM, Andrey Borzenkov wrote:
During zypper dup from M4 to B1 I notice that installation order was
grub2-i386-pc grub2
Now grub2.spec has
%package %{grubarch}
Summary: Bootloader with support for Linux, Multiboot and more Group: System/Boot Requires: %{name} = %{version}-%{release} Requires(post): %{name} = %{version}-%{release}
Do I misunderstand what Requires(post) does or zypper ignores requirements indeed?
It looks to me like there's a cyclic dependency. grub2 itself has: Requires: grub2-%{grubarch} = %{version}-%{release} So, in which order should they be installed? Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
[Reposting to list] В Thu, 19 Sep 2013 15:12:13 +0200 Andreas Jaeger <aj@suse.com> пишет:
On 09/19/2013 02:31 PM, Andrey Borzenkov wrote:
During zypper dup from M4 to B1 I notice that installation order was
grub2-i386-pc grub2
Now grub2.spec has
%package %{grubarch}
Summary: Bootloader with support for Linux, Multiboot and more Group: System/Boot Requires: %{name} = %{version}-%{release} Requires(post): %{name} = %{version}-%{release}
Do I misunderstand what Requires(post) does or zypper ignores requirements indeed?
It looks to me like there's a cyclic dependency. grub2 itself has: Requires: grub2-%{grubarch} = %{version}-%{release}
This ensures that grub2-%arch is installed on update from older package that did not use arch subpackages. Why is it a loop? It just says that two must be installed together. How can it be expressed differently?
So, in which order should they be installed?
grub2 grub2-%arch Should not Requires(post): %{name} = %{version}-%{release} make sure that they are installed in this order?
Andreas
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Thu, Sep 19, 2013 at 04:31:19PM +0400, Andrey Borzenkov wrote:
During zypper dup from M4 to B1 I notice that installation order was
grub2-i386-pc grub2
Now grub2.spec has
%package %{grubarch}
Summary: Bootloader with support for Linux, Multiboot and more Group: System/Boot Requires: %{name} = %{version}-%{release} Requires(post): %{name} = %{version}-%{release}
Do I misunderstand what Requires(post) does or zypper ignores requirements indeed?
No it does not ignore requirements. Check the zypper/YaST log, it should contain lines about cyclic dependencies. It tries not to break Prereq (i.e. Requires(post)) dependencies, though. Oh wait, it's not recorded as a prereq in the repository metadata! So it seems like there's a bug in the metadata creation tool (aka "create_package_descr"). Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andreas Jaeger
-
Andrey Borzenkov
-
Michael Schroeder