[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704998: hurd: Broken upgrade due to disappeared shared libraries



On Fri, 2013-04-12 at 15:37:14 +0200, Pino Toscano wrote:
> Alle venerdì 12 aprile 2013, Guillem Jover ha scritto:
> > On Fri, 2013-04-12 at 12:02:54 +0200, Pino Toscano wrote:
> > > Alle lunedì 8 aprile 2013, Guillem Jover ha scritto:
> > > > A dist-upgrade broke the system as the hurd package got upgraded
> > > > first, which made the shared libraries disappear, and when
> > > > hurd-libs0.3 was being unpacked tar failed to execute.
> > > > 
> > > > Any “Essential: yes” package needs to Pre-Depend at least on
> > > > their shared library dependencies to be able to be reliably
> > > > unpacked (an any other dependencies required for it to run at
> > > > unpack time), the same for pseudo-essential packages (like
> > > > hurd-libs0.3 itself). It seems this problem has always been
> > > > present but only got visible with the libs split.

> WTF, I was pretty sure to have added it, that's why I even assumed it 
> was there...
> Thanks for the notice, I just fixed in git.

Just checked, and I don't think that's enough, I was thinking about
something along the following patch, plus I guess overriding somewhere
in the dh stuff so that it ends up doing «dpkg-shlibdeps -dPre-Depends».
Sorry, I should have been more explicit.

Thanks,
Guillem
diff --git a/debian/control b/debian/control
index 4755735..11fec88 100644
--- a/debian/control
+++ b/debian/control
@@ -17,8 +17,8 @@ Vcs-Git: git://anonscm.debian.org/pkg-hurd/hurd.git
 
 Package: hurd-libs0.3
 Section: libs
-Pre-Depends: ${misc:Pre-Depends}
-Depends: ${misc:Depends}, ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}, ${shlibs:Pre-Depends}
+Depends: ${misc:Depends}
 Architecture: hurd-any
 Multi-Arch: same
 Description: GNU Hurd (libraries)
@@ -26,8 +26,8 @@ Description: GNU Hurd (libraries)
 
 Package: hurd
 Essential: yes
-Pre-Depends: hurd-libs0.3
-Depends: ${misc:Depends}, hurd-libs0.3 (= ${binary:Version}), sysv-rc, netdde (>= 0.0.20120518~), ${shlibs:Depends}, xkb-data
+Pre-Depends: ${shlibs:Pre-Depends}, hurd-libs0.3 (= ${binary:Version})
+Depends: ${misc:Depends}, sysv-rc, netdde (>= 0.0.20120518~), xkb-data
 Breaks: gnumach (<< 2:1.3.99.dfsg.cvs20070526-1), libc0.3 (<< 2.11.2-12), netdde (<< 0.0.20121127-2)
 Suggests: hurd-doc
 Recommends: bf-utf-source

Reply to: