+util-linux (2.12r-12) unstable; urgency=low
+
+ * drop hwclockfirst.sh, and put hwclock.sh back at 50. See #50572 and
+ Closes: #342887
+ * Deal with _syscall5 going away. Patch imported from Ubuntu.
+ Closes: #392236
+
+ -- LaMont Jones <lamont@debian.org> Thu, 19 Oct 2006 19:01:33 -0600
+
util-linux (2.12r-11) unstable; urgency=low
* typos in NFSv4 (GSSDLCK didn't have .pid, and the latest
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 65_llseek-syscall.dpatch by Scott James Remnant <scott@netsplit.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad util-linux-2.12r~/fdisk/llseek.c util-linux-2.12r/fdisk/llseek.c
+--- util-linux-2.12r~/fdisk/llseek.c 2006-08-21 16:26:32.000000000 +0200
++++ util-linux-2.12r/fdisk/llseek.c 2006-08-21 16:26:40.000000000 +0200
+@@ -31,9 +31,11 @@
+
+ #ifdef __NR__llseek
+
+-static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
+- unsigned long, offset_low,long long *,result,
+- unsigned int, origin)
++static int _llseek (unsigned int fd, unsigned long oh,
++ unsigned long ol, long long *result,
++ unsigned int origin) {
++ return syscall (__NR__llseek, fd, oh, ol, result, origin);
++}
+
+ #else
+
+diff -urNad util-linux-2.12r~/fdisk/sfdisk.c util-linux-2.12r/fdisk/sfdisk.c
+--- util-linux-2.12r~/fdisk/sfdisk.c 2005-01-04 23:31:57.000000000 +0100
++++ util-linux-2.12r/fdisk/sfdisk.c 2006-08-21 16:27:54.000000000 +0200
+@@ -178,8 +178,10 @@
+
+ #ifndef use_lseek
+ static __attribute__used
+-_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
+- loff_t *, res, unsigned int, wh);
++int _llseek (unsigned int fd, ulong hi, ulong lo,
++ loff_t *res, unsigned int wh) {
++ return syscall (__NR__llseek, fd, hi, lo, res, wh);
++}
+ #endif
+
+ static int
model=$(uname -m)
if [ ${model%x} != "s390" ]; then
update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null
- update-rc.d hwclock.sh start 22 S . stop 25 0 6 . > /dev/null
+ update-rc.d hwclock.sh start 50 S . stop 25 0 6 . > /dev/null
update-rc.d -f hwclockfirst.sh remove 2>/dev/null > /dev/null
- update-rc.d hwclockfirst.sh start 18 S . > /dev/null
+ #update-rc.d hwclockfirst.sh start 18 S . > /dev/null
fi
fi
ifeq ($(DEB_HOST_GNU_SYSTEM),linux-gnu)
ifneq ($(arch),$(nohwclock))
-INITFILES = debian/hwclock.sh debian/hwclockfirst.sh
+INITFILES = debian/hwclock.sh # debian/hwclockfirst.sh
SBINFILES += hwclock/hwclock
endif
BINFILES += sys-utils/dmesg