Date: Monday, January 29, 2018 @ 16:03:52
  Author: andyrtr
Revision: 315573

upgpkg: libtirpc 1.0.2-2

add buildfix from git - FS#57250

Added:
  libtirpc/trunk/buildfix.diff
Modified:
  libtirpc/trunk/PKGBUILD

---------------+
 PKGBUILD      |   12 +++++++++---
 buildfix.diff |   28 ++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-01-29 16:00:29 UTC (rev 315572)
+++ PKGBUILD    2018-01-29 16:03:52 UTC (rev 315573)
@@ -4,7 +4,7 @@
 
 pkgname=libtirpc
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Transport Independent RPC library (SunRPC replacement)"
 arch=('x86_64')
 url="http://libtirpc.sourceforge.net/";
@@ -12,9 +12,15 @@
 depends=('krb5')
 backup=('etc/netconfig')
 # git tree: git://linux-nfs.org/~steved/libtirpc
-source=(http://downloads.sourceforge.net/sourceforge/libtirpc/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('2a8dc0e6eecc45be6597c8287b1d8e15cbee46e3')
+source=(http://downloads.sourceforge.net/sourceforge/libtirpc/${pkgname}-${pkgver}.tar.bz2
 buildfix.diff)
+sha1sums=('2a8dc0e6eecc45be6597c8287b1d8e15cbee46e3'
+          '6bf8a0afc9f11832f94573ff938114aad2cfa862')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i $srcdir/buildfix.diff
+}
+
 build() {
   cd ${pkgname}-${pkgver}
   ./configure --prefix=/usr --sysconf=/etc

Added: buildfix.diff
===================================================================
--- buildfix.diff                               (rev 0)
+++ buildfix.diff       2018-01-29 16:03:52 UTC (rev 315573)
@@ -0,0 +1,28 @@
+From acb9a37977cf0a9630eac74af9adebf35e38e719 Mon Sep 17 00:00:00 2001
+From: Thorsten Kukuk <ku...@thkukuk.de>
+Date: Tue, 14 Nov 2017 10:39:08 -0500
+Subject: [PATCH] Include stdint.h from xdr_sizeof.c to avoid missing
+ declaration errors.
+
+Signed-off-by: Thorsten Kukuk <ku...@suse.de>
+Signed-off-by: Steve Dickson <ste...@redhat.com>
+---
+ src/xdr_sizeof.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c
+index d23fbd1..79d6707 100644
+--- a/src/xdr_sizeof.c
++++ b/src/xdr_sizeof.c
+@@ -39,6 +39,7 @@
+ #include <rpc/xdr.h>
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include "un-namespace.h"
+ 
+ /* ARGSUSED */
+-- 
+1.8.3.1
+
+

Reply via email to