[arch-commits] Commit in dmapi/trunk (PKGBUILD dmapi-headers.patch)
Antonio Rojas
arojas at archlinux.org
Tue Jun 5 07:17:26 UTC 2018
Date: Tuesday, June 5, 2018 @ 07:17:26
Author: arojas
Revision: 325891
BUILDINFO rebuild
Added:
dmapi/trunk/dmapi-headers.patch
Modified:
dmapi/trunk/PKGBUILD
---------------------+
PKGBUILD | 12 +++++++++---
dmapi-headers.patch | 16 ++++++++++++++++
2 files changed, 25 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-05 07:08:37 UTC (rev 325890)
+++ PKGBUILD 2018-06-05 07:17:26 UTC (rev 325891)
@@ -3,7 +3,7 @@
pkgname=dmapi
pkgver=2.2.12
-pkgrel=2
+pkgrel=3
pkgdesc="Data migration API"
arch=('x86_64')
url="http://oss.sgi.com/projects/xfs/"
@@ -13,8 +13,13 @@
provides=('xfsdmapi')
conflicts=('xfsdmapi')
replaces=('xfsdmapi')
-source=("ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz")
+source=("ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz" dmapi-headers.patch)
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../dmapi-headers.patch # Fix build (Gentoo)
+}
+
build() {
cd $srcdir/dmapi-$pkgver
[ "$CARCH" = "x86_64" ] && export CFLAGS="$CLFAGS -fPIC"
@@ -36,4 +41,5 @@
# kill libexec dir
rm -rf $pkgdir/usr/libexec
}
-md5sums=('cd825d4e141c16011367e0a0dd98c9c5')
+md5sums=('cd825d4e141c16011367e0a0dd98c9c5'
+ '6360c428bb89a1585669c3cf7a632208')
Added: dmapi-headers.patch
===================================================================
--- dmapi-headers.patch (rev 0)
+++ dmapi-headers.patch 2018-06-05 07:17:26 UTC (rev 325891)
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/560212
+
+pull in headers for funcs that are used
+
+--- a/libdm/dm_handle2path.c
++++ b/libdm/dm_handle2path.c
+@@ -20,6 +20,9 @@
+ #include <dmapi_kern.h>
+ #include "dmapi_lib.h"
+
++#include <fcntl.h> /* open */
++#include <unistd.h> /* close */
++#include <string.h> /* strlen */
+ #include <mntent.h>
+ #include <dirent.h>
+ #ifdef linux
More information about the arch-commits
mailing list