[yp-tools] Fix build for aarch64

Honza Horak hhorak at fedoraproject.org
Mon Mar 25 16:04:11 UTC 2013


commit b945156ea7a436ae470ceefc6338739e9eba9fc3
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Mon Mar 25 17:03:08 2013 +0100

    Fix build for aarch64

 yp-tools-gettext.patch |   12 ++++++++++++
 yp-tools.spec          |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/yp-tools-gettext.patch b/yp-tools-gettext.patch
new file mode 100644
index 0000000..69281f0
--- /dev/null
+++ b/yp-tools-gettext.patch
@@ -0,0 +1,12 @@
+diff -up yp-tools-2.12/configure.in.aarch2 yp-tools-2.12/configure.in
+--- yp-tools-2.12/configure.in.aarch2	2010-04-21 11:57:29.000000000 +0200
++++ yp-tools-2.12/configure.in	2013-03-25 16:56:59.131501212 +0100
+@@ -108,7 +108,7 @@ else
+ fi
+ 
+ dnl internationalization macros
+-AM_GNU_GETTEXT_VERSION
++AM_GNU_GETTEXT_VERSION(0.18)
+ AM_GNU_GETTEXT([external])
+ 
+ AC_OUTPUT([Makefile lib/Makefile src/Makefile man/Makefile
diff --git a/yp-tools.spec b/yp-tools.spec
index 1c354aa..9d72015 100644
--- a/yp-tools.spec
+++ b/yp-tools.spec
@@ -1,7 +1,7 @@
 Summary: NIS (or YP) client programs
 Name: yp-tools
 Version: 2.12
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPLv2
 Group: System Environment/Base
 Source: http://www.linux-nis.org/download/yp-tools/yp-tools-%{version}.tar.bz2
@@ -12,6 +12,7 @@ Patch2: yp-tools-2.12-gethost.patch
 Patch3: yp-tools-2.12-hash.patch
 Patch4: yp-tools-2.12-crypt.patch
 Patch5: yp-tools-2.12-adjunct.patch
+Patch6: yp-tools-gettext.patch
 Url: http://www.linux-nis.org/nis/yp-tools/index.html
 Requires: ypbind
 
@@ -43,6 +44,8 @@ you'll need to install the ypserv package on one machine on the network.
 %patch3 -p1 -b .hash
 %patch4 -p1 -b .crypt
 %patch5 -p1 -b .adjunct
+%patch6 -p1 -b .gettext
+autoreconf -i -f
 
 %build
 %configure --disable-domainname
@@ -62,6 +65,9 @@ make DESTDIR="$RPM_BUILD_ROOT" INSTALL_PROGRAM=install install
 /var/yp/nicknames
 
 %changelog
+* Mon Mar 25 2013 Honza Horak <hhorak at redhat.com> - 2.12-13
+- Fix build for aarch64
+
 * Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.12-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list