diff --git a/srcpkgs/chroot-util-linux/patches b/srcpkgs/chroot-util-linux/patches new file mode 120000 index 0000000000..33edac3e59 --- /dev/null +++ b/srcpkgs/chroot-util-linux/patches @@ -0,0 +1 @@ +../util-linux/patches \ No newline at end of file diff --git a/srcpkgs/chroot-util-linux/template b/srcpkgs/chroot-util-linux/template index 3ea0b7348b..3723d4c5ef 100644 --- a/srcpkgs/chroot-util-linux/template +++ b/srcpkgs/chroot-util-linux/template @@ -1,8 +1,11 @@ # Template file for 'chroot-util-linux' pkgname=chroot-util-linux -version=2.21 +version=2.24 revision=1 -wrksrc="util-linux-${version}" +wrksrc="${pkgname/chroot-/}-${version}" +bootstrap=yes +conflicts="util-linux>=0" +provides="util-linux-${version}_${revision}" build_style=gnu-configure configure_args="--without-ncurses --without-udev --disable-libuuid --disable-libblkid --disable-libmount --disable-mount --disable-losetup @@ -14,15 +17,7 @@ maintainer="Juan RP " homepage="http://userweb.kernel.org/~kzak/util-linux-ng" license="GPL-2" distfiles="${KERNEL_SITE}/utils/util-linux/v2.21/util-linux-${version}.tar.xz" -checksum=5192e8ba7dcf3cf0dc447f07b3d177f6cb3fb49dfae54ac45d6c8c7d86eeab0f -long_desc=" - The util-linux package contains miscellaneous utility programs. Among - them are utilities for handling file systems, consoles, partitions, - and messages. - - This package is only meant to be used by xbps-src, don't install it manually." - -bootstrap=yes +checksum=30add9a8869cef9e5a76755214f074689b6294cea63f4569711faeb099aecc06 if [ -z "$CHROOT_READY" ]; then CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include" @@ -36,12 +31,3 @@ post_install() { rm -rf ${DESTDIR}/usr/sbin rm -rf ${DESTDIR}/usr/share/man } - -chroot-util-linux_package() { - conflicts="util-linux>=0" - provides="util-linux-${version}" - replaces="chroot-gnu-getopt>=0" - pkg_install() { - vmove usr - } -} diff --git a/srcpkgs/util-linux/patches/sys-utils-dmesg-musl.patch b/srcpkgs/util-linux/patches/sys-utils-dmesg-musl.patch new file mode 100644 index 0000000000..d4b414ad22 --- /dev/null +++ b/srcpkgs/util-linux/patches/sys-utils-dmesg-musl.patch @@ -0,0 +1,17 @@ +TIMESPEC_TO_TIMEVAL is a macro defined by glibc. + +--- sys-utils/dmesg.c.orig 2014-01-07 21:40:23.490421172 +0100 ++++ sys-utils/dmesg.c 2014-01-07 21:41:22.419080539 +0100 +@@ -35,6 +35,12 @@ + #include "mangle.h" + #include "pager.h" + ++#ifndef TIMESPEC_TO_TIMEVAL ++#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ ++ (tv)->tv_sec = (ts)->tv_sec; \ ++ (tv)->tv_usec = (ts)->tv_nsec / 1000; \ ++} ++#endif + /* Close the log. Currently a NOP. */ + #define SYSLOG_ACTION_CLOSE 0 + /* Open the log. Currently a NOP. */