+2008-01-16 Guillem Jover <guillem@debian.org>
+
+ * scripts/dpkg-divert.pl: Use :errno_h from POSIX.
+ ($enoent): Remove variable.
+ (ENOENT): Remove function.
+ * scripts/update-alternatives.pl: Likewise.
+ * utils/Makefile.am (pkglib_PROGRAMS): Remove variable.
+ (enoent_SOURCES): Likewise.
+ * utils/enoent.c: Remove file.
+
2008-01-16 Guillem Jover <guillem@debian.org>
* dpkg-deb/build.c (do_build): Use NULL instead of 0.
Closes: #402901
* Do not warn about unrecognized Homepage field in binary package stanzas
in dpkg-genchanges and dpkg-source. Closes: #460309
+ * Do not use the enoent helper binary, and use perl POSIX module instead.
[ Frank Lichtenheld ]
* Make the -L option of dpkg-parsechangelog actually work (it's
usr/bin/dpkg-deb
usr/bin/dpkg-query
usr/bin/dpkg-split
-usr/lib/dpkg/enoent
usr/lib/dpkg/mksplit
usr/sbin
usr/share/dpkg
use strict;
use warnings;
+use POSIX qw(:errno_h);
use Dpkg;
use Dpkg::Gettext;
textdomain("dpkg");
-my $enoent = `$dpkglibdir/enoent` || die sprintf(_g("Cannot get ENOENT value from %s: %s"), "$dpkglibdir/enoent", $!);
-sub ENOENT { $enoent; }
-
sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
use strict;
use warnings;
+use POSIX qw(:errno_h);
use Dpkg;
use Dpkg::Gettext;
my %slavepath; # Map from (@version-index,slavename) to slave-path
my %slavelinkcount;
-my $enoent = `$dpkglibdir/enoent` || die sprintf(_g("Cannot get ENOENT value from %s: %s"), "$dpkglibdir/enoent", $!);
-sub ENOENT { $enoent; }
-
sub version {
printf _g("Debian %s version %s.\n"), $progname, $version;
start_stop_daemon_LDADD = ../getopt/libopt.a $(SSD_LIBS)
endif
-
-pkglib_PROGRAMS = enoent
-
-enoent_SOURCES = \
- enoent.c
+++ /dev/null
-/* This program ensures that dpkg-divert and update-alternatives don't depend on POSIX.pm
- * being available and usable. This is probably a good thing since the perl packages have
- * known deficiencies to ensure that during upgrades. */
-
-#include <stdio.h>
-#include <errno.h>
-
-int main(int argc, char** argv) {
- printf("%d", ENOENT);
- return 0;
-}
-