diff --git a/srcpkgs/udisks2/patches/O_CLOEXEC.patch b/srcpkgs/udisks2/patches/O_CLOEXEC.patch new file mode 100644 index 00000000000..69785f52244 --- /dev/null +++ b/srcpkgs/udisks2/patches/O_CLOEXEC.patch @@ -0,0 +1,10 @@ +--- src/udiskslinuxblock.c.orig ++++ src/udiskslinuxblock.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#define __USE_GNU + #include + #include + #include diff --git a/srcpkgs/udisks2/patches/fix-stdio.patch b/srcpkgs/udisks2/patches/fix-stdio.patch new file mode 100644 index 00000000000..3fa27ea135f --- /dev/null +++ b/srcpkgs/udisks2/patches/fix-stdio.patch @@ -0,0 +1,13 @@ +--- tools/udisksctl.c ++++ tools/udisksctl.c +@@ -229,8 +229,8 @@ + } + else + { +- fclose (stdout); +- stdout = _color_pager_out; ++ fflush (stdout); ++ dup2 (fileno(_color_pager_out), fileno(stdout)); + } + + out: diff --git a/srcpkgs/udisks2/patches/sys-wait.patch b/srcpkgs/udisks2/patches/sys-wait.patch new file mode 100644 index 00000000000..e89c0d8a6ec --- /dev/null +++ b/srcpkgs/udisks2/patches/sys-wait.patch @@ -0,0 +1,10 @@ +--- src/udiskslinuxfilesystem.c.orig ++++ src/udiskslinuxfilesystem.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + + #include diff --git a/srcpkgs/udisks2/template b/srcpkgs/udisks2/template index 983672319d9..ce849eb413f 100644 --- a/srcpkgs/udisks2/template +++ b/srcpkgs/udisks2/template @@ -1,11 +1,12 @@ # Template file for 'udisks2' pkgname=udisks2 version=2.1.5 -revision=2 +revision=3 wrksrc="udisks-${version}" build_pie=yes build_style=gnu-configure configure_args="--disable-static --with-udevdir=/usr/lib/udev + --enable-compile-warnings=minimum $(vopt_enable gir introspection) $(vopt_enable systemd)" hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel" makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel