[arch-commits] Commit in dmapi/repos/extra-x86_64 (3 files)

Antonio Rojas arojas at archlinux.org
Tue Jun 5 07:17:47 UTC 2018


    Date: Tuesday, June 5, 2018 @ 07:17:46
  Author: arojas
Revision: 325892

archrelease: copy trunk to extra-x86_64

Added:
  dmapi/repos/extra-x86_64/PKGBUILD
    (from rev 325891, dmapi/trunk/PKGBUILD)
  dmapi/repos/extra-x86_64/dmapi-headers.patch
    (from rev 325891, dmapi/trunk/dmapi-headers.patch)
Deleted:
  dmapi/repos/extra-x86_64/PKGBUILD

---------------------+
 PKGBUILD            |   84 ++++++++++++++++++++++++++------------------------
 dmapi-headers.patch |   16 +++++++++
 2 files changed, 61 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-05 07:17:26 UTC (rev 325891)
+++ PKGBUILD	2018-06-05 07:17:46 UTC (rev 325892)
@@ -1,39 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-
-pkgname=dmapi
-pkgver=2.2.12
-pkgrel=2
-pkgdesc="Data migration API"
-arch=('i686' 'x86_64')
-url="http://oss.sgi.com/projects/xfs/"
-license=('GPL')
-depends=('glibc')
-makedepends=('xfsprogs')
-provides=('xfsdmapi')
-conflicts=('xfsdmapi')
-replaces=('xfsdmapi')
-source=("ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz")
-
-build() {
-  cd $srcdir/dmapi-$pkgver
-  [ "$CARCH" = "x86_64" ] && export CFLAGS="$CLFAGS -fPIC"
-  export INSTALL_USER=root
-  export INSTALL_GROUP=root
-  export DEBUG=-DNDEBUG
-  autoconf
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd $srcdir/dmapi-$pkgver
-  make DIST_ROOT=$pkgdir install install-dev
-  # the static lib
-  install -D -m644 libdm/.libs/libdm.a $pkgdir/usr/lib/libdm.a
-  # and the header file, please
-  install -D -m644 include/dmapi.h $pkgdir/usr/include/xfs/dmapi.h
-  # kill libexec dir
-  rm -rf $pkgdir/usr/libexec
-}
-md5sums=('cd825d4e141c16011367e0a0dd98c9c5')

Copied: dmapi/repos/extra-x86_64/PKGBUILD (from rev 325891, dmapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-05 07:17:46 UTC (rev 325892)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=dmapi
+pkgver=2.2.12
+pkgrel=3
+pkgdesc="Data migration API"
+arch=('x86_64')
+url="http://oss.sgi.com/projects/xfs/"
+license=('GPL')
+depends=('glibc')
+makedepends=('xfsprogs')
+provides=('xfsdmapi')
+conflicts=('xfsdmapi')
+replaces=('xfsdmapi')
+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"
+  export INSTALL_USER=root
+  export INSTALL_GROUP=root
+  export DEBUG=-DNDEBUG
+  autoconf
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $srcdir/dmapi-$pkgver
+  make DIST_ROOT=$pkgdir install install-dev
+  # the static lib
+  install -D -m644 libdm/.libs/libdm.a $pkgdir/usr/lib/libdm.a
+  # and the header file, please
+  install -D -m644 include/dmapi.h $pkgdir/usr/include/xfs/dmapi.h
+  # kill libexec dir
+  rm -rf $pkgdir/usr/libexec
+}
+md5sums=('cd825d4e141c16011367e0a0dd98c9c5'
+         '6360c428bb89a1585669c3cf7a632208')

Copied: dmapi/repos/extra-x86_64/dmapi-headers.patch (from rev 325891, dmapi/trunk/dmapi-headers.patch)
===================================================================
--- dmapi-headers.patch	                        (rev 0)
+++ dmapi-headers.patch	2018-06-05 07:17:46 UTC (rev 325892)
@@ -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