+util-linux (2.17.2-3.3) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Report correct disk size on GNU/kFreeBSD. Thanks Tuco.
+ (Closes: #592292)
+
+ -- Robert Millan <rmh@debian.org> Wed, 29 Sep 2010 09:18:08 +0200
+
+util-linux (2.17.2-3.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Revert the switch from slang2 to ncurses5. There is no udeb for ncurses,
+ so that change broke cfdisk-udeb (closes: #593374, reopens: #581631).
+
+ -- Julien Cristau <jcristau@debian.org> Thu, 23 Sep 2010 21:12:33 +0200
+
+util-linux (2.17.2-3.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Apply trivial patch by Adam D. Barratt (thanks!): Only attempt to link
+ locale-specific files in to the cfdisk-udeb hierarchy if cfdisk-udeb
+ is actually being built. Closes: #581725
+ * Set urgency to “high” since some packages are waiting for util-linux.
+
+ -- Cyril Brulebois <kibi@debian.org> Sun, 20 Jun 2010 16:03:46 +0200
+
util-linux (2.17.2-3) unstable; urgency=low
[LaMont Jones]
Source: util-linux
-Build-Depends: libncurses5-dev, libncurses5, gettext, zlib1g-dev, dpkg-dev (>=1.13.12), libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], debhelper (>=5), lsb-release, pkg-config
+Build-Depends: libncurses5-dev, libslang2-dev (>=2.0.4), gettext, zlib1g-dev, dpkg-dev (>=1.13.12), libselinux1-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], debhelper (>=5), lsb-release, pkg-config
Section: base
Priority: required
Uploaders: Scott James Remnant <scott@ubuntu.com>
version := $(shell sed -e '1{;s|^util-linux (\(.*\))\ .*|\1|;q;}' debian/changelog)
Upstream := $(shell sed 's/^.*(\(.*\)-.*).*/\1/; q' debian/changelog)
-CONFOPTS= --enable-raw --enable-rdev --enable-partx
+CONFOPTS= --enable-raw --enable-rdev --enable-partx --with-slang
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFOPTS += --with-selinux
endif
ln util-linux/sbin/*fdisk fdisk-udeb/usr/sbin/; \
S=fdisk-udeb/usr/sbin/cfdisk; if [ -f $$S ]; then mv $$S cfdisk-udeb/usr/sbin/; fi; \
fi
- cd debian/util-linux-locales && find usr/share/locale -type f | while read x; do ln $$x ../cfdisk-udeb/$$x; done
+ if [ -d debian/cfdisk-udeb ]; then \
+ cd debian/util-linux-locales && find usr/share/locale -type f | while read x; do ln $$x ../cfdisk-udeb/$$x; done \
+ fi
ifeq ($(DEB_HOST_ARCH_OS),linux)
install -m 644 debian/mount.fstab debian/mount/usr/share/doc/mount/examples/fstab
ifeq ($(arch),$(findstring $(arch),powerpc ppc64))
#include <sys/ioctl.h>
#include <unistd.h>
+#ifdef __FreeBSD_kernel__
+#include <sys/disk.h>
+#endif
+
#include "blkdev.h"
#include "linux_version.h"
return -1;
#endif /* BLKGETSIZE */
+#ifdef __FreeBSD_kernel__
+ {
+ off_t size;
+
+ if (ioctl(fd, DIOCGMEDIASIZE, &size) >= 0) {
+ *bytes = size;
+ return 0;
+ }
+ }
+#endif
+
*bytes = blkdev_find_size(fd);
return 0;
}