Fixing the FTBFS on behalf of Rafael Fonseca (rhbz#1482063)

Signed-off-by: Petr Šabata <contyk@redhat.com>
This commit is contained in:
Petr Šabata 2017-08-22 14:57:10 +02:00
parent 504f92248b
commit f86493f320
2 changed files with 16 additions and 1 deletions

View File

@ -2,13 +2,14 @@
Name: libtirpc
Version: 1.0.2
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Transport Independent RPC Library
Group: System Environment/Libraries
License: SISSL and BSD
URL: http://nfsv4.bullopensource.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://downloads.sourceforge.net/libtirpc/libtirpc-%{version}.tar.bz2
Patch0: %{name}_header.patch
BuildRequires: automake, autoconf, libtool, pkgconfig
@ -39,6 +40,7 @@ developing programs which use the tirpc library.
%prep
%setup -q
%patch0 -p1 -b .header
# Remove .orig files
find . -name "*.orig" | xargs rm -f
@ -132,6 +134,9 @@ rm -rf %{buildroot}
%{_mandir}/*/*
%changelog
* Tue Aug 22 2017 Petr Šabata <contyk@redhat.com> - 1.0.2-3
- Fixing the FTBFS on behalf of Rafael Fonseca (rhbz#1482063)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

10
libtirpc_header.patch Normal file
View File

@ -0,0 +1,10 @@
--- libtirpc-1.0.2/src/xdr_sizeof.c 2017-07-05 17:02:23.000000000 +0200
+++ libtirpc-1.0.2/src/xdr_sizeof.c.fixed 2017-08-10 18:47:14.369381335 +0200
@@ -39,6 +39,7 @@
#include <rpc/xdr.h>
#include <sys/types.h>
#include <stdlib.h>
+#include <stdint.h>
#include "un-namespace.h"
/* ARGSUSED */