From d75c0aafc500ec6927480347f373e99096c7d1ab Mon Sep 17 00:00:00 2001
From: Kedar Sovani <kedars@marvell.com>
Date: Wed, 21 Jan 2009 11:15:28 +0530
Subject: [PATCH] glibc: Include glibc ports

Signed-off-by: Kedar Sovani <kedars@marvell.com>
---
 glibc-ports-20090429.tar.bz2 |  Bin 0 -> 618322 bytes
 glibc.spec                   |    9 ++++++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
 create mode 100644 glibc-ports-20090429.tar.bz2

diff --git a/glibc-ports-20090429.tar.bz2 b/glibc-ports-20090429.tar.bz2
new file mode 100644
index 0000000000000000000000000000000000000000..9c97c51446078f032cd2af344abee8a17f54f390
GIT binary patch
diff --git a/glibc.spec b/glibc.spec
index 02089fe..e80100c 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1,4 +1,5 @@
 %define glibcdate 20090427T1419
+%define glibcportsdate 20090429
 %define glibcname glibc
 %define glibcsrcdir glibc-20090427T1419
 %define glibc_release_tarballs 0
@@ -18,6 +19,7 @@
 %define buildpower6 0
 %endif
 %define rtkaioarches %{ix86} x86_64 ia64 ppc ppc64 s390 s390x
+%define portsarches %{arm}
 %define debuginfocommonarches %{ix86} alpha alphaev6 sparc sparcv9 sparcv9v sparc64 sparc64v
 %define _unpackaged_files_terminate_build 0
 Summary: The GNU libc libraries
@@ -39,6 +41,7 @@ Source2: %(echo %{glibcsrcdir} | sed s/glibc-/glibc-libidn-/).tar.bz2
 %define glibc_release_unpack -a1 -a2
 %endif
 Source3: %{glibcname}-fedora-%{glibcdate}.tar.bz2
+Source4: %{glibcname}-ports-%{glibcportsdate}.tar.bz2
 Patch0: %{glibcname}-fedora.patch
 Patch1: %{name}-ia64-lib64.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -225,7 +228,8 @@ package or when debugging this package.
 %endif
 
 %prep
-%setup -q -n %{glibcsrcdir} %{glibc_release_unpack} -a3
+%setup -q -n %{glibcsrcdir} %{glibc_release_unpack} -a3 -a4
+mv %{glibcname}-ports-%{glibcportsdate} ports
 %patch0 -E -p1
 %ifarch ia64
 %if "%{_lib}" == "lib64"
@@ -311,6 +315,9 @@ AddOns=`echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkai
 %ifarch %{rtkaioarches}
 AddOns=,rtkaio$AddOns
 %endif
+%ifarch %{portsarches}
+AddOns=,ports$AddOns
+%endif
 
 build_nptl()
 {
-- 
1.5.5.6

