From d7320914cea9b8c2e6db55586f065fd7ae41ef05 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 16 May 2012 11:09:14 -0600 Subject: [PATCH] patch to allow visudo to work on hurd --- debian/patches/use-flock-on-hurd.diff | 15 +++++++++++++++ debian/rules | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 debian/patches/use-flock-on-hurd.diff diff --git a/debian/patches/use-flock-on-hurd.diff b/debian/patches/use-flock-on-hurd.diff new file mode 100644 index 0000000..fb0b81c --- /dev/null +++ b/debian/patches/use-flock-on-hurd.diff @@ -0,0 +1,15 @@ +Use flock instead of lockf for visudo on hurd +Index: sudo-1.8.3p1/configure.in +=================================================================== +--- sudo-1.8.3p1.orig/configure.in 2011-10-25 14:11:40.000000000 +0000 ++++ sudo-1.8.3p1/configure.in 2012-01-08 04:05:23.000000000 +0000 +@@ -1864,6 +1864,9 @@ + ;; + *-gnu*) + OSDEFS="${OSDEFS} -D_GNU_SOURCE" ++ # lockf() isn't implemented on the Hurd -- use flock instead ++ ac_cv_func_lockf=no ++ ac_cv_func_flock=yes + ;; + esac + diff --git a/debian/rules b/debian/rules index dfa19ed..017ec5e 100755 --- a/debian/rules +++ b/debian/rules @@ -12,8 +12,14 @@ ifeq ($(DEB_HOST_ARCH_OS),linux) configure_args += --with-selinux endif +reconf-stamp: + cp -f /usr/share/misc/config.sub build-aux/config.sub + cp -f /usr/share/misc/config.guess build-aux/config.guess + autoreconf -v + touch $@ + configure: configure-stamp -configure-stamp: +configure-stamp: reconf-stamp dh_testdir cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess -- 2.30.2