Skip to content

Commit

Permalink
Upgrading to eglibc 2.15 ubuntu patch level 17
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
  • Loading branch information
stskeeps committed Sep 12, 2012
1 parent 734efce commit c02255e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
Binary file added eglibc_2.15-0ubuntu17.diff.gz
Binary file not shown.
Binary file removed eglibc_2.15-0ubuntu2.diff.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions glibc.changes
@@ -1,3 +1,6 @@
* Wed Sep 12 2012 Carsten Munk <carsten@jollamobile.com> - 2.15
- Upgrade to 2.15-0ubuntu17

* Mon Jun 11 2012 Carsten Munk <carsten@merproject.org> - 2.15
- MER#377: Do not add arm/local-linaro-cortex-strings.diff on armv6, no ARMv7/Thumb2 there

Expand Down
22 changes: 21 additions & 1 deletion glibc.spec
Expand Up @@ -22,7 +22,7 @@ Group: System/Libraries
URL: http://www.eglibc.org/
Source0: http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/eglibc_2.15.orig.tar.gz
Source11: build-locale-archive.c
Patch0: eglibc_2.15-0ubuntu2.diff.gz
Patch0: eglibc_2.15-0ubuntu17.diff.gz
Patch1: glibc-arm-alignment-fix.patch
Patch2: glibc-arm-runfast.patch
Patch3: glibc-2.13-no-timestamping.patch
Expand All @@ -39,6 +39,13 @@ Provides: ldconfig
# The dynamic linker supports DT_GNU_HASH
Provides: rtld(GNU_HASH)
Requires: glibc-common = %{version}-%{release}

# This is a short term need until everything is rebuilt in armhf
%ifarch armv7hl armv7nhl armv7tnhl
Provides: ld-linux.so.3
Provides: ld-linux.so.3(GLIBC_2.4)
%endif

# Require libgcc in case some program calls pthread_cancel in its %%post
Requires(pre): libgcc
# This is for building auxiliary programs like memusage, nscd
Expand Down Expand Up @@ -244,10 +251,15 @@ build_CFLAGS="$BuildFlags -g -O3 $*"
%ifnarch %{arm}
--build %{nptl_target_cpu}-%{_vendor}-linux \
--host %{nptl_target_cpu}-%{_vendor}-linux \
%else
%ifarch armv7hl armv7tnhl armv7nhl
--build %{nptl_target_cpu}-%{_vendor}-linux-gnueabihf \
--host %{nptl_target_cpu}-%{_vendor}-linux-gnueabihf \
%else
--build %{nptl_target_cpu}-%{_vendor}-linux-gnueabi \
--host %{nptl_target_cpu}-%{_vendor}-linux-gnueabi \
%endif
%endif
%ifarch %{multiarcharches}
--enable-multi-arch \
%endif
Expand Down Expand Up @@ -356,6 +368,11 @@ mv locale-archive{,.tmpl}
popd
%endif

%ifarch armv7hl armv7tnhl armv7nhl
ln -s /lib/ld-linux-armhf.so.3 ${RPM_BUILD_ROOT}/lib/ld-linux.so.3
%endif


rm -f ${RPM_BUILD_ROOT}/%{_lib}/libnss1-*
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libnss-*.so.1

Expand Down Expand Up @@ -580,6 +597,9 @@ fi
%verify(not md5 size mtime) %config(noreplace) /etc/localtime
%verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
%verify(not md5 size mtime) %config(noreplace) /etc/ld.so.conf
%ifarch armv7hl armv7tnhl armv7nhl
/lib/ld-linux.so.3
%endif
%dir /etc/ld.so.conf.d
%dir %{_prefix}/libexec/getconf
%dir %{_prefix}/%{_lib}/gconv
Expand Down

0 comments on commit c02255e

Please sign in to comment.