udisks2: portability fixes from Alpine.
This commit is contained in:
parent
54a165e911
commit
24b4fdcf7a
4 changed files with 35 additions and 1 deletions
10
srcpkgs/udisks2/patches/O_CLOEXEC.patch
Normal file
10
srcpkgs/udisks2/patches/O_CLOEXEC.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/udiskslinuxblock.c.orig
|
||||
+++ src/udiskslinuxblock.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/stat.h>
|
||||
+#define __USE_GNU
|
||||
#include <fcntl.h>
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
13
srcpkgs/udisks2/patches/fix-stdio.patch
Normal file
13
srcpkgs/udisks2/patches/fix-stdio.patch
Normal file
|
@ -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:
|
10
srcpkgs/udisks2/patches/sys-wait.patch
Normal file
10
srcpkgs/udisks2/patches/sys-wait.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/udiskslinuxfilesystem.c.orig
|
||||
+++ src/udiskslinuxfilesystem.c
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <mntent.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/acl.h>
|
||||
+#include <sys/wait.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <glib/gstdio.h>
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue