Subject: dump: restore should be statically linked
Date: Mon, 17 Mar 2003 23:02:37 +0000
Package: dump
Version: 0.4b27-4
Severity: normal
The restore binary in the package is dynamically linked,
so it is no use putting it onto the restore media
(outside the dump, of course).
I tried booting the rescue system from the install cd
and mounting a backup cd that contained the restore binary (beside dump files).
Although all needed shared libraries are available in the rescue system,
they fail to resolve the symbols in the backup binary.
That may or may not also be an issue with the boot-floppies package,
and the fact that my rescue cd was 3.0r0 while restore was from 3.0r1
may also have been a contributing factor.
However, this shows how fragile the situation is and how desirable
a statically linked restore binary is.
In fact it should ideally even work for non-Debian rescue systems.
Sure, I can build my statically linked binary myself,
but it would be convenient if it were included in the binary package,
maybe as an additional executable, say /sbin/restore-static.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux pika 2.2.20 #1 Sat Apr 20 11:45:28 EST 2002 i586
Locale: LANG=C, LC_CTYPE=
Versions of packages dump depends on:
ii debconf 1.0.32 Debian configuration management sy
ii e2fsprogs [libcomerr2] 1.27-2 The EXT2 file system utilities and
ii e2fsprogs [libe2p2] 1.27-2 The EXT2 file system utilities and
ii e2fsprogs [libext2fs2] 1.27-2 The EXT2 file system utilities and
ii libc6 2.2.5-11.2 GNU C Library: Shared libraries an
The upstream source has an RPM spec file to produce a static package. Probably RH then ships with a separate dump-static package containing /sbin/restore.static. That would be useful for debian too. (But it contradicts the debian change to the original configure.)
tag 185214 +wontfix
thanks
There are two problems with adding a static restore to the dump package. The
first is that the binary gets a lot larger, the other is that it means I'd have
to track security updates in glibc, etc, and upload new versions of dump more
often to keep the statically linked binary from being a security issue.
My approach is to implement a "reasonable compromise" in which all of the libs
that live outside of /lib are statically linked... which right now means the
z and bz2 libs which typically reside in /usr/lib. This results in only a
small increase in the size of the binaries and resulting package, and if used
on a root (or recovery?) filesystem with the right library version, should work
fine even in minimal recovery scenarios.
Note, however, that the Debian installation media uses library reduction
techniques to control the size of the image, so if you want to run a binary
that wasn't part of the image at build time you need to make sure the right
library routines are available, or use a fully static binary. Be aware of this
when planning for disaster recovery.
It's not hard to build a static version, you just need to revert my changes in
the configure script and add --enable-static to the configure call in the
debian/rules file and the package will build static binaries. If someone wants
to offer up a patch that makes this easier, perhaps by adding a "static:"
target to the rules file, I could be supportive.
Bdale
Wir grüßen Sie herzlichst,
unser Kunde ist ein führendes Unternehmen und sucht ab sofort aktive Angestellte zur Verstärkung des Teams europaweit.
Die Tätigkeiten werden europaweit gebraucht, und Sie haben die Möglichkeit unabhängig von Ihrem Wohnort zu beginnen. Wir bieten Arbeitsstellen für jedermann. Die Arbeit kann sowohl von Rentnern, Hausfrauen als auch nebenberuflich erledigt werden.
Verpackungsaushilfe, Sekretärservice, Bewerter, und vieles mehr wird aktuell angeboten.
Es werden Ihnen aktuelle Arbeitsaufträge und die dazugehörige Belohnung mitgeteilt und Sie treffen die Auswahl. Jede Tätigkeit wird unterschiedlich belohnt, in der Regel verdienen Sie bei 3-5 Stunden am Tag 1500 bis 1900 Euro Brutto im Monat.
Sie haben keine Kosten und können sofort bei uns einsteigen.
Kennummer MBKB/1918-5176 Es sind 8 freie Jobs zu besetzen.
Die benötigte technische Ausrüstung wird von uns ohne weitere Kosten zur Verfügung gestellt. Die Stelle kann gerne von Rentnern, Hausfrauen und auch nebenberuflich ausgeführt werden.
Ihre Voraussetzungen wären verantwortungsvolle, selbstständige Arbeitsweise, Ehrlichkeit, Zielstrebigkeit, Motivation, Leistungsbereitschaft
Wenn wir Ihr Interesse geweckt haben, schicken Sie uns Ihre vollständigen Bewerbungsunterlagen noch heute, gerne per E-Mail an: [email protected] Sie erhalten umgehend weitere Unterlagen zugeschickt.
Ihre persönlichen Unterlagen behandeln wir vertraulich.
Es grüßt Sie Ihre
Kramer EURL
Rue des Bons-Enfants 26
Cannes 6335
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.