summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2008-05-29 02:24:36 +0000
committerGuillem Jover <guillem@hadrons.org>2010-06-10 23:21:23 +0200
commite0d3406894354361b14a3c018050f80bb4e79e76 (patch)
treeacebfa07837ed21a059548fe86b85d83c3493432 /debian
parentb5803038ac35955caf2d48ae0009c9cd79d06380 (diff)
downloadinetutils-e0d3406894354361b14a3c018050f80bb4e79e76.tar.gz
Use 'test -e' instead of 'test -r' to check for device files
Those might be only readable by root. This should enable reading from /dev/klog in GNU/Hurd. Closes: #482779 Thanks-to: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog10
-rw-r--r--debian/patches/07_dev_test_e.patch20
-rw-r--r--debian/patches/series1
3 files changed, 31 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 29931bd..7c3e44e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+inetutils (2:1.5.dfsg.1-6) UNRELEASED; urgency=low
+
+ * Use 'test -e' instead of 'test -r' to check for device files, which might
+ be only readable by root. This should enable reading from /dev/klog in
+ GNU/Hurd. (Closes: #482779)
+ - debian/patches/07_dev_test_e.patch: New file.
+ Thanks to Samuel Thibault <samuel.thibault@ens-lyon.org>.
+
+ -- Guillem Jover <guillem@debian.org> Thu, 29 May 2008 05:21:13 +0300
+
inetutils (2:1.5.dfsg.1-5) unstable; urgency=low
* Remove Tag fields, those are better maintained outside the package,
diff --git a/debian/patches/07_dev_test_e.patch b/debian/patches/07_dev_test_e.patch
new file mode 100644
index 0000000..aba8fa1
--- /dev/null
+++ b/debian/patches/07_dev_test_e.patch
@@ -0,0 +1,20 @@
+Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
+Description:
+ While testing paths, ./configure uses test -r to check for those who
+ are not provided by system headers. However, this does not work for
+ root-only files. On hurd-i386 for instance, /dev/klog is only root
+ readable, so the test fails, and thus inetutils-syslogd doesn't fill
+ /dev/kern.log. ./configure should use test -e instead.
+
+
+--- a/acinclude.m4orig 2008-05-24 23:51:39.000000000 +0000
++++ b/acinclude.m4 2008-05-24 23:57:05.000000000 +0000
+@@ -306,7 +306,7 @@
+ else
+ # search for a reasonable value
+
+- iu_test_type=r # `exists'
++ iu_test_type=e # `exists'
+ iu_default='' iu_prev_cross_test=''
+ for iu_try in $iu_paths_h $iu_search; do
+ iu_cross_test=''
diff --git a/debian/patches/series b/debian/patches/series
index e618e18..2c8e743 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,6 +4,7 @@
03_ifreq_typo.patch -p0
04_shishi_telnet.patch -p0
05_shishi_delayed_init.patch
+07_dev_test_e.patch
10_syslog_klog_doc.patch -p0
22_syslogd_conf.patch -p1
30_ping_suid_perms.patch -p0