|
|
b40826 |
%define glibcsrcdir glibc-2.12-2-gc4ccff1
|
|
|
b40826 |
%define glibcversion 2.12
|
|
|
b40826 |
### glibc.spec.in follows:
|
|
|
b40826 |
%define run_glibc_tests 1
|
|
|
b40826 |
%define auxarches noarch
|
|
|
b40826 |
%define xenarches noarch
|
|
|
b40826 |
%define buildxen 0
|
|
|
b40826 |
%define xenpackage 0
|
|
|
b40826 |
%define buildpower6 0
|
|
|
b40826 |
%define rtkaioarches noarch
|
|
|
b40826 |
%define debuginfocommonarches noarch
|
|
|
b40826 |
%define _unpackaged_files_terminate_build 0
|
|
|
b40826 |
%undefine _enable_debug_packages
|
|
|
b40826 |
# What's the right thing to do with these?
|
|
|
b40826 |
# XXX
|
|
|
b40826 |
%define biarcharches noarch
|
|
|
b40826 |
%define multiarcharches noarch
|
|
|
b40826 |
%define systemtaparches noarch
|
|
|
b40826 |
# XXX
|
|
|
b40826 |
|
|
|
b40826 |
Summary: Compatibility C library
|
|
|
b40826 |
Name: compat-glibc
|
|
|
b40826 |
# XXX Should this bump?
|
|
|
b40826 |
Epoch: 1
|
|
|
b40826 |
Version: %{glibcversion}
|
|
|
b40826 |
Release: 4%{?dist}
|
|
|
b40826 |
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
|
|
|
b40826 |
# Things that are linked directly into dynamically linked programs
|
|
|
b40826 |
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
|
|
|
b40826 |
# exception which allows linking it into any kind of programs or shared
|
|
|
b40826 |
# libraries without restrictions.
|
|
|
b40826 |
License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
|
|
|
b40826 |
Group: Development/Libraries
|
|
|
b40826 |
URL: http://sources.redhat.com/glibc/
|
|
|
b40826 |
Source0: %{?glibc_release_url}%{glibcsrcdir}.tar.bz2
|
|
|
b40826 |
Source1: %{glibcsrcdir}-fedora.tar.bz2
|
|
|
b40826 |
Source2: dummylib.sh
|
|
|
b40826 |
Patch0: glibc-fedora.patch
|
|
|
b40826 |
Patch1: glibc-ia64-lib64.patch
|
|
|
b40826 |
Patch2: glibc-rh587360.patch
|
|
|
b40826 |
Patch3: glibc-rh582738.patch
|
|
|
b40826 |
Patch4: glibc-getlogin-r.patch
|
|
|
b40826 |
Patch5: glibc-localedata.patch
|
|
|
b40826 |
Patch6: glibc-rh593396.patch
|
|
|
b40826 |
Patch7: glibc-recvmmsg.patch
|
|
|
b40826 |
Patch8: glibc-aliasing.patch
|
|
|
b40826 |
Patch9: glibc-rh593686.patch
|
|
|
b40826 |
Patch10: glibc-rh607461.patch
|
|
|
b40826 |
Patch11: glibc-rh621959.patch
|
|
|
b40826 |
Patch12: glibc-rh607010.patch
|
|
|
b40826 |
Patch13: glibc-rh630801.patch
|
|
|
b40826 |
Patch14: glibc-rh631011.patch
|
|
|
b40826 |
Patch15: glibc-rh641128.patch
|
|
|
b40826 |
Patch16: glibc-rh642584.patch
|
|
|
b40826 |
Patch17: glibc-rh643822.patch
|
|
|
b40826 |
Patch18: glibc-rh645672.patch
|
|
|
b40826 |
Patch19: glibc-rh580498.patch
|
|
|
b40826 |
Patch20: glibc-rh615090.patch
|
|
|
b40826 |
Patch21: glibc-rh623187.patch
|
|
|
b40826 |
Patch22: glibc-rh646954.patch
|
|
|
b40826 |
Patch23: glibc-rh647448.patch
|
|
|
b40826 |
Patch24: glibc-rh615701.patch
|
|
|
b40826 |
Patch25: glibc-rh652661.patch
|
|
|
b40826 |
Patch26: glibc-rh656530.patch
|
|
|
b40826 |
Patch27: glibc-rh656014.patch
|
|
|
b40826 |
Patch28: glibc-rh661982.patch
|
|
|
b40826 |
Patch29: glibc-rh601686.patch
|
|
|
b40826 |
Patch30: glibc-rh676076.patch
|
|
|
b40826 |
Patch31: glibc-rh667974.patch
|
|
|
b40826 |
Patch32: glibc-rh625893.patch
|
|
|
b40826 |
Patch33: glibc-rh681054.patch
|
|
|
b40826 |
Patch34: glibc-rh689471.patch
|
|
|
b40826 |
Patch35: glibc-rh692177.patch
|
|
|
b40826 |
Patch36: glibc-rh692838.patch
|
|
|
b40826 |
Patch37: glibc-rh703480.patch
|
|
|
b40826 |
Patch38: glibc-rh705465.patch
|
|
|
b40826 |
Patch39: glibc-rh703481.patch
|
|
|
b40826 |
Patch40: glibc-rh694386.patch
|
|
|
b40826 |
Patch41: glibc-rh676591.patch
|
|
|
b40826 |
Patch42: glibc-rh711987.patch
|
|
|
b40826 |
Patch43: glibc-rh695595.patch
|
|
|
b40826 |
Patch45: glibc-rh695963.patch
|
|
|
b40826 |
Patch46: glibc-rh713134.patch
|
|
|
b40826 |
Patch47: glibc-rh714823.patch
|
|
|
b40826 |
Patch48: glibc-rh718057.patch
|
|
|
b40826 |
Patch49: glibc-rh688980.patch
|
|
|
b40826 |
Patch50: glibc-rh712248.patch
|
|
|
b40826 |
Patch51: glibc-rh731042.patch
|
|
|
b40826 |
Patch52: glibc-rh730379.patch
|
|
|
b40826 |
Patch53: glibc-rh700507.patch
|
|
|
b40826 |
Patch54: glibc-rh699724.patch
|
|
|
b40826 |
Patch55: glibc-rh736346.patch
|
|
|
b40826 |
Patch56: glibc-rh737778.patch
|
|
|
b40826 |
Patch57: glibc-rh738665.patch
|
|
|
b40826 |
Patch58: glibc-rh738763.patch
|
|
|
b40826 |
Patch59: glibc-rh739184.patch
|
|
|
b40826 |
Patch60: glibc-rh711927.patch
|
|
|
b40826 |
Patch61: glibc-rh688720.patch
|
|
|
b40826 |
Patch62: glibc-rh726517.patch
|
|
|
b40826 |
Patch63: glibc-rh752122.patch
|
|
|
b40826 |
Patch64: glibc-rh739971.patch
|
|
|
b40826 |
Patch65: glibc-rh751750.patch
|
|
|
b40826 |
Patch66: glibc-rh740506.patch
|
|
|
b40826 |
Patch67: glibc-rh757888.patch
|
|
|
b40826 |
Patch68: glibc-rh750531.patch
|
|
|
b40826 |
Patch69: glibc-rh749188.patch
|
|
|
b40826 |
Patch70: glibc-rh767746.patch
|
|
|
b40826 |
Patch72: glibc-rh767693.patch
|
|
|
b40826 |
Patch73: glibc-rh740506-2.patch
|
|
|
b40826 |
Patch74: glibc-rh696472.patch
|
|
|
b40826 |
Patch75: glibc-rh771342.patch
|
|
|
b40826 |
Patch76: glibc-rh657572.patch
|
|
|
b40826 |
Patch77: glibc-rh767693-2.patch
|
|
|
b40826 |
Patch78: glibc-rh782585.patch
|
|
|
b40826 |
Patch79: glibc-rh784402.patch
|
|
|
b40826 |
Patch80: glibc-rh697421.patch
|
|
|
b40826 |
Patch81: glibc-rh785984.patch
|
|
|
b40826 |
Patch82: glibc-rh767146.patch
|
|
|
b40826 |
Patch83: glibc-rh766513.patch
|
|
|
b40826 |
Patch84: glibc-rh789209.patch
|
|
|
b40826 |
Patch85: glibc-rh788959.patch
|
|
|
b40826 |
Patch86: glibc-rh789189.patch
|
|
|
b40826 |
Patch88: glibc-rh789238.patch
|
|
|
b40826 |
Patch89: glibc-rh794817.patch
|
|
|
b40826 |
Patch90: glibc-rh797094-1.patch
|
|
|
b40826 |
Patch91: glibc-rh797094-2.patch
|
|
|
b40826 |
Patch92: glibc-rh789238-2.patch
|
|
|
b40826 |
Patch93: glibc-rh795498.patch
|
|
|
b40826 |
Patch94: glibc-rh794817-2.patch
|
|
|
b40826 |
Patch95: glibc-rh804689.patch
|
|
|
b40826 |
Patch96: glibc-rh809602.patch
|
|
|
b40826 |
Patch97: glibc-rh808337.patch
|
|
|
b40826 |
Patch98: glibc-rh804630.patch
|
|
|
b40826 |
Patch99: glibc-rh788959-2.patch
|
|
|
b40826 |
Patch100: glibc-rh808545.patch
|
|
|
b40826 |
|
|
|
b40826 |
Patch10000: glibc-fix-implicit-rule.patch
|
|
|
b40826 |
Patch10001: glibc-gcc47-ctordtor.patch
|
|
|
b40826 |
Patch10002: glibc-rh783979.patch
|
|
|
b40826 |
|
|
|
b40826 |
# I'm not sure why we didn't see strict aliasing warnings with RHEL 6 builds, perhaps
|
|
|
b40826 |
# it's due to the newer compiler in RHEL 7.
|
|
|
b40826 |
Patch10003: glibc-rh883974.patch
|
|
|
b40826 |
|
|
|
b40826 |
# GCC recently removed -mnew-mnemonics for PPC
|
|
|
b40826 |
Patch10004: glibc-ppc-mnemonics.patch
|
|
|
b40826 |
|
|
|
b40826 |
# Disable -ftree-loop-distribute-patterns which converts open code to
|
|
|
b40826 |
# memset, memcpy, etc. This can cause infinte loops when compiling those
|
|
|
b40826 |
# routines in glibc. Furthermore it can create calls through the PLT in
|
|
|
b40826 |
# the dynamic linker when the PLT hasn't been set up yet.
|
|
|
b40826 |
Patch10005: glibc-rh911307.patch
|
|
|
b40826 |
|
|
|
b40826 |
# Newer compiler is also complaining about overflow problems
|
|
|
b40826 |
Patch10006: glibc-rh883974-2.patch
|
|
|
b40826 |
|
|
|
b40826 |
# Fix namespace conflict with Altivec
|
|
|
b40826 |
Patch10007: glibc-rh1048853.patch
|
|
|
b40826 |
|
|
|
b40826 |
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
b40826 |
Autoreq: true
|
|
|
b40826 |
Autoprov: false
|
|
|
b40826 |
Requires: compat-glibc-headers = %{epoch}:%{version}-%{release}
|
|
|
b40826 |
# This is for building auxiliary programs like memusage, nscd
|
|
|
b40826 |
# For initial glibc bootstraps it can be commented out
|
|
|
b40826 |
BuildRequires: gd-devel libpng-devel zlib-devel texinfo, libselinux-devel >= 1.33.4-3
|
|
|
b40826 |
BuildRequires: audit-libs-devel >= 1.1.3, sed >= 3.95, libcap-devel, gettext, nss-devel
|
|
|
b40826 |
BuildRequires: /bin/ps, /bin/kill, /bin/awk
|
|
|
b40826 |
%ifarch %{systemtaparches}
|
|
|
b40826 |
BuildRequires: systemtap-sdt-devel
|
|
|
b40826 |
%endif
|
|
|
b40826 |
# This is to ensure that __frame_state_for is exported by glibc
|
|
|
b40826 |
# will be compatible with egcs 1.x.y
|
|
|
b40826 |
BuildRequires: gcc >= 3.2
|
|
|
b40826 |
%define enablekernel 2.6.18
|
|
|
b40826 |
%ifarch i386
|
|
|
b40826 |
%define nptl_target_cpu i486
|
|
|
b40826 |
%else
|
|
|
b40826 |
%define nptl_target_cpu %{_target_cpu}
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch %{multiarcharches}
|
|
|
b40826 |
# Need STT_IFUNC support
|
|
|
b40826 |
%ifarch ppc ppc64
|
|
|
b40826 |
BuildRequires: binutils >= 2.20.51.0.2
|
|
|
b40826 |
Conflicts: binutils < 2.20.51.0.2
|
|
|
b40826 |
%else
|
|
|
b40826 |
BuildRequires: binutils >= 2.19.51.0.10
|
|
|
b40826 |
Conflicts: binutils < 2.19.51.0.10
|
|
|
b40826 |
%endif
|
|
|
b40826 |
# Earlier releases have broken support for IRELATIVE relocations
|
|
|
b40826 |
Conflicts: prelink < 0.4.2
|
|
|
b40826 |
%else
|
|
|
b40826 |
# Need AS_NEEDED directive
|
|
|
b40826 |
# Need --hash-style=* support
|
|
|
b40826 |
BuildRequires: binutils >= 2.17.50.0.2-5
|
|
|
b40826 |
%endif
|
|
|
b40826 |
BuildRequires: gcc >= 3.2.1-5
|
|
|
b40826 |
%ifarch ppc s390 s390x
|
|
|
b40826 |
BuildRequires: gcc >= 4.1.0-0.17
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%if 0%{?_enable_debug_packages}
|
|
|
b40826 |
BuildRequires: elfutils >= 0.72
|
|
|
b40826 |
BuildRequires: rpm >= 4.2-0.56
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%define __find_provides %{_builddir}/%{glibcsrcdir}/find_provides.sh
|
|
|
b40826 |
%define _filter_GLIBC_PRIVATE 1
|
|
|
b40826 |
|
|
|
b40826 |
%description
|
|
|
b40826 |
This package contains stub shared libraries and static libraries
|
|
|
93f528 |
from CentOS Linux 6.
|
|
|
b40826 |
|
|
|
b40826 |
To compile and link against these compatibility libraries, use
|
|
|
b40826 |
gcc -fgnu89-inline \
|
|
|
b40826 |
-I %{_prefix}/lib/%{_target_cpu}-redhat-linux6E/include \
|
|
|
b40826 |
-B %{_prefix}/lib/%{_target_cpu}-redhat-linux6E/%{_lib}/
|
|
|
b40826 |
|
|
|
b40826 |
|
|
|
b40826 |
%package headers
|
|
|
b40826 |
Summary: Header files for development using standard C libraries.
|
|
|
b40826 |
Group: Development/Libraries
|
|
|
b40826 |
Provides: %{name}-headers(%{_target_cpu})
|
|
|
b40826 |
Requires: compat-glibc = %{epoch}:%{version}-%{release}
|
|
|
b40826 |
%ifarch x86_64
|
|
|
b40826 |
# If both -m32 and -m64 is to be supported on AMD64, x86_64 glibc-headers
|
|
|
b40826 |
# have to be installed, not i586 ones.
|
|
|
b40826 |
Obsoletes: %{name}-headers(i586)
|
|
|
b40826 |
Obsoletes: %{name}-headers(i686)
|
|
|
b40826 |
%endif
|
|
|
b40826 |
Requires(pre): kernel-headers
|
|
|
b40826 |
Requires: kernel-headers >= 2.2.1
|
|
|
b40826 |
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
b40826 |
BuildRequires: kernel-headers >= 2.6.22
|
|
|
b40826 |
|
|
|
b40826 |
%description headers
|
|
|
b40826 |
The compat-glibc-headers package contains the header files from
|
|
|
93f528 |
CentOS Linux 6
|
|
|
b40826 |
|
|
|
b40826 |
|
|
|
b40826 |
%prep
|
|
|
b40826 |
%setup -q -n %{glibcsrcdir} -b1
|
|
|
b40826 |
%patch0 -E -p1
|
|
|
b40826 |
%ifarch ia64
|
|
|
b40826 |
%if "%{_lib}" == "lib64"
|
|
|
b40826 |
%patch1 -p1
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%patch2 -p1
|
|
|
b40826 |
%patch3 -p1
|
|
|
b40826 |
%patch4 -p1
|
|
|
b40826 |
%patch5 -p1
|
|
|
b40826 |
%patch6 -p1
|
|
|
b40826 |
%patch7 -p1
|
|
|
b40826 |
%patch8 -p1
|
|
|
b40826 |
%patch9 -p1
|
|
|
b40826 |
%patch10 -p1
|
|
|
b40826 |
%patch11 -p1
|
|
|
b40826 |
%patch12 -p1
|
|
|
b40826 |
%patch13 -p1
|
|
|
b40826 |
%patch14 -p1
|
|
|
b40826 |
%patch15 -p1
|
|
|
b40826 |
%patch16 -p1
|
|
|
b40826 |
%patch17 -p1
|
|
|
b40826 |
%patch18 -p1
|
|
|
b40826 |
%patch19 -p1
|
|
|
b40826 |
%patch20 -p1
|
|
|
b40826 |
%patch21 -p1
|
|
|
b40826 |
%patch22 -p1
|
|
|
b40826 |
%patch23 -p1
|
|
|
b40826 |
%patch24 -p1
|
|
|
b40826 |
%patch25 -p1
|
|
|
b40826 |
%patch26 -p1
|
|
|
b40826 |
%patch27 -p1
|
|
|
b40826 |
%patch28 -p1
|
|
|
b40826 |
%patch29 -p1
|
|
|
b40826 |
%patch30 -p1
|
|
|
b40826 |
%patch31 -p1
|
|
|
b40826 |
%patch32 -p1
|
|
|
b40826 |
%patch33 -p1
|
|
|
b40826 |
%patch34 -p1
|
|
|
b40826 |
%patch35 -p1
|
|
|
b40826 |
%patch36 -p1
|
|
|
b40826 |
%patch37 -p1
|
|
|
b40826 |
%patch38 -p1
|
|
|
b40826 |
%patch39 -p1
|
|
|
b40826 |
%patch40 -p1
|
|
|
b40826 |
%patch41 -p1
|
|
|
b40826 |
%patch42 -p1
|
|
|
b40826 |
%patch43 -p1
|
|
|
b40826 |
%patch45 -p1
|
|
|
b40826 |
%patch46 -p1
|
|
|
b40826 |
%patch47 -p1
|
|
|
b40826 |
%patch48 -p1
|
|
|
b40826 |
%patch49 -p1
|
|
|
b40826 |
%patch50 -p1
|
|
|
b40826 |
%patch51 -p1
|
|
|
b40826 |
%patch52 -p1
|
|
|
b40826 |
%patch53 -p1
|
|
|
b40826 |
%patch54 -p1
|
|
|
b40826 |
%patch55 -p1
|
|
|
b40826 |
%patch56 -p1
|
|
|
b40826 |
%patch57 -p1
|
|
|
b40826 |
%patch58 -p1
|
|
|
b40826 |
%patch59 -p1
|
|
|
b40826 |
%patch60 -p1
|
|
|
b40826 |
%patch61 -p1
|
|
|
b40826 |
%patch62 -p1
|
|
|
b40826 |
%patch63 -p1
|
|
|
b40826 |
%patch64 -p1
|
|
|
b40826 |
%patch65 -p1
|
|
|
b40826 |
%patch66 -p1
|
|
|
b40826 |
%patch67 -p1
|
|
|
b40826 |
%patch68 -p1
|
|
|
b40826 |
%patch69 -p1
|
|
|
b40826 |
%patch70 -p1
|
|
|
b40826 |
%patch72 -p1
|
|
|
b40826 |
%patch73 -p1
|
|
|
b40826 |
%patch74 -p1
|
|
|
b40826 |
%patch75 -p1
|
|
|
b40826 |
%patch76 -p1
|
|
|
b40826 |
%patch77 -p1
|
|
|
b40826 |
%patch78 -p1
|
|
|
b40826 |
%patch79 -p1
|
|
|
b40826 |
%patch80 -p1
|
|
|
b40826 |
%patch81 -p1
|
|
|
b40826 |
%patch82 -p1
|
|
|
b40826 |
%patch83 -p1
|
|
|
b40826 |
%patch84 -p1
|
|
|
b40826 |
%patch85 -p1
|
|
|
b40826 |
%patch86 -p1
|
|
|
b40826 |
%patch88 -p1
|
|
|
b40826 |
%patch89 -p1
|
|
|
b40826 |
%patch90 -p1
|
|
|
b40826 |
%patch91 -p1
|
|
|
b40826 |
%patch92 -p1
|
|
|
b40826 |
%patch93 -p1
|
|
|
b40826 |
%patch94 -p1
|
|
|
b40826 |
%patch95 -p1
|
|
|
b40826 |
%patch96 -p1
|
|
|
b40826 |
%patch97 -p1
|
|
|
b40826 |
%patch98 -p1
|
|
|
b40826 |
%patch99 -p1
|
|
|
b40826 |
%patch100 -p1
|
|
|
b40826 |
|
|
|
b40826 |
# These are compat-glibc specific changes necessary for the old glibc to
|
|
|
b40826 |
# build with new compilers.
|
|
|
b40826 |
%patch10000 -p1
|
|
|
b40826 |
%patch10001 -p1
|
|
|
b40826 |
%patch10002 -p1
|
|
|
b40826 |
%patch10003 -p1
|
|
|
b40826 |
%patch10004 -p1
|
|
|
b40826 |
%patch10005 -p1
|
|
|
b40826 |
%patch10006 -p1
|
|
|
b40826 |
%patch10007 -p1
|
|
|
b40826 |
|
|
|
b40826 |
find . -type f -size 0 -o -name "*.orig" -exec rm -f {} \;
|
|
|
b40826 |
touch `find . -name configure`
|
|
|
b40826 |
touch locale/programs/*-kw.h
|
|
|
b40826 |
|
|
|
b40826 |
%build
|
|
|
b40826 |
GCC=gcc
|
|
|
b40826 |
GXX=g++
|
|
|
b40826 |
%ifarch %{ix86}
|
|
|
b40826 |
BuildFlags="-march=%{nptl_target_cpu} -mtune=generic"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch i686
|
|
|
b40826 |
BuildFlags="-march=i686 -mtune=generic"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch i386 i486 i586
|
|
|
b40826 |
BuildFlags="$BuildFlags -mno-tls-direct-seg-refs"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch x86_64
|
|
|
b40826 |
BuildFlags="-mtune=generic"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch alphaev6
|
|
|
b40826 |
BuildFlags="-mcpu=ev6"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch sparc
|
|
|
b40826 |
BuildFlags="-fcall-used-g6"
|
|
|
b40826 |
GCC="gcc -m32"
|
|
|
b40826 |
GXX="g++ -m32"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch sparcv9
|
|
|
b40826 |
BuildFlags="-mcpu=ultrasparc -fcall-used-g6"
|
|
|
b40826 |
GCC="gcc -m32"
|
|
|
b40826 |
GXX="g++ -m32"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch sparcv9v
|
|
|
b40826 |
BuildFlags="-mcpu=niagara -fcall-used-g6"
|
|
|
b40826 |
GCC="gcc -m32"
|
|
|
b40826 |
GXX="g++ -m32"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch sparc64
|
|
|
b40826 |
BuildFlags="-mcpu=ultrasparc -mvis -fcall-used-g6"
|
|
|
b40826 |
GCC="gcc -m64"
|
|
|
b40826 |
GXX="g++ -m64"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch sparc64v
|
|
|
b40826 |
BuildFlags="-mcpu=niagara -mvis -fcall-used-g6"
|
|
|
b40826 |
GCC="gcc -m64"
|
|
|
b40826 |
GXX="g++ -m64"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch ppc64
|
|
|
b40826 |
BuildFlags="-mno-minimal-toc"
|
|
|
b40826 |
GCC="gcc -m64"
|
|
|
b40826 |
GXX="g++ -m64"
|
|
|
b40826 |
%endif
|
|
|
b40826 |
|
|
|
b40826 |
BuildFlags="$BuildFlags -fgnu89-inline"
|
|
|
b40826 |
# Add -DNDEBUG unless using a prerelease
|
|
|
b40826 |
case %{version} in
|
|
|
b40826 |
*.*.9[0-9]*) ;;
|
|
|
b40826 |
*)
|
|
|
b40826 |
BuildFlags="$BuildFlags -DNDEBUG"
|
|
|
b40826 |
;;
|
|
|
b40826 |
esac
|
|
|
b40826 |
EnableKernel="--enable-kernel=%{enablekernel}"
|
|
|
b40826 |
echo "$GCC" > Gcc
|
|
|
b40826 |
AddOns=`echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\|powerpc-cpu\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'`
|
|
|
b40826 |
%ifarch %{rtkaioarches}
|
|
|
b40826 |
AddOns=,rtkaio$AddOns
|
|
|
b40826 |
%endif
|
|
|
b40826 |
|
|
|
b40826 |
build_nptl()
|
|
|
b40826 |
{
|
|
|
b40826 |
builddir=build-%{nptl_target_cpu}-$1
|
|
|
b40826 |
shift
|
|
|
b40826 |
rm -rf $builddir
|
|
|
b40826 |
mkdir $builddir ; cd $builddir
|
|
|
b40826 |
build_CFLAGS="$BuildFlags -g -O3 $*"
|
|
|
b40826 |
../configure CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" \
|
|
|
b40826 |
--prefix=%{_prefix} \
|
|
|
b40826 |
--enable-add-ons=nptl$AddOns --without-cvs $EnableKernel \
|
|
|
b40826 |
--without-selinux \
|
|
|
b40826 |
--with-headers=%{_prefix}/include --enable-bind-now \
|
|
|
b40826 |
--with-tls --with-__thread --build %{nptl_target_cpu}-redhat-linux \
|
|
|
b40826 |
--host %{nptl_target_cpu}-redhat-linux \
|
|
|
b40826 |
%ifarch %{multiarcharches}
|
|
|
b40826 |
--enable-multi-arch \
|
|
|
b40826 |
%endif
|
|
|
b40826 |
%ifarch %{systemtaparches}
|
|
|
b40826 |
--enable-systemtap \
|
|
|
b40826 |
%endif
|
|
|
b40826 |
--disable-profile --enable-experimental-malloc --enable-nss-crypt
|
|
|
b40826 |
|
|
|
b40826 |
make %{?_smp_mflags} -r CFLAGS="$build_CFLAGS" PARALLELMFLAGS=-s
|
|
|
b40826 |
|
|
|
b40826 |
cd ..
|
|
|
b40826 |
}
|
|
|
b40826 |
|
|
|
b40826 |
build_nptl linuxnptl
|
|
|
b40826 |
|
|
|
b40826 |
%install
|
|
|
b40826 |
GCC=`cat Gcc`
|
|
|
b40826 |
|
|
|
b40826 |
rm -rf $RPM_BUILD_ROOT
|
|
|
b40826 |
mkdir -p $RPM_BUILD_ROOT
|
|
|
b40826 |
make -j1 install_root=$RPM_BUILD_ROOT install -C build-%{nptl_target_cpu}-linuxnptl PARALLELMFLAGS=-s
|
|
|
b40826 |
chmod +x $RPM_BUILD_ROOT%{_prefix}/libexec/pt_chown
|
|
|
b40826 |
%ifnarch %{auxarches}
|
|
|
b40826 |
cd build-%{nptl_target_cpu}-linuxnptl && \
|
|
|
b40826 |
make %{?_smp_mflags} install_root=$RPM_BUILD_ROOT install-locales -C ../localedata objdir=`pwd` && \
|
|
|
b40826 |
cd ..
|
|
|
b40826 |
%endif
|
|
|
b40826 |
|
|
|
b40826 |
# Remove the files we don't want to distribute
|
|
|
b40826 |
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libNoVersion*
|
|
|
b40826 |
rm -f $RPM_BUILD_ROOT/%{_lib}/libNoVersion*
|
|
|
b40826 |
rm -f $RPM_BUILD_ROOT{%{_prefix},}/%{_lib}/lib{NoVersion,nss,BrokenLocale}*
|
|
|
b40826 |
|
|
|
b40826 |
# NPTL <bits/stdio-lock.h> is not usable outside of glibc, so include
|
|
|
b40826 |
# the generic one (#162634)
|
|
|
b40826 |
cp -a bits/stdio-lock.h $RPM_BUILD_ROOT%{_prefix}/include/bits/stdio-lock.h
|
|
|
b40826 |
# And <bits/libc-lock.h> needs sanitizing as well.
|
|
|
b40826 |
cp -a fedora/libc-lock.h $RPM_BUILD_ROOT%{_prefix}/include/bits/libc-lock.h
|
|
|
b40826 |
|
|
|
b40826 |
ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libbsd.a
|
|
|
b40826 |
|
|
|
b40826 |
strip -g $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.o
|
|
|
b40826 |
|
|
|
b40826 |
# rquota.x and rquota.h are now provided by quota
|
|
|
b40826 |
rm -f $RPM_BUILD_ROOT%{_prefix}/include/rpcsvc/rquota.[hx]
|
|
|
b40826 |
|
|
|
b40826 |
COMPATD=$RPM_BUILD_ROOT%{_prefix}/lib/%{_target_cpu}-redhat-linux6E
|
|
|
b40826 |
|
|
|
b40826 |
mkdir -p $COMPATD/%{_lib}
|
|
|
b40826 |
|
|
|
b40826 |
mv -f $RPM_BUILD_ROOT%{_prefix}/include $COMPATD/
|
|
|
b40826 |
mv -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.[oa] $COMPATD/%{_lib}
|
|
|
b40826 |
strip -R .comment -g $COMPATD/%{_lib}/*.a
|
|
|
b40826 |
ln -sf libbsd-compat.a $COMPATD/%{_lib}/libbsd.a
|
|
|
b40826 |
mkdir -p $RPM_BUILD_ROOT%{_prefix}/tmp
|
|
|
b40826 |
cp -a $RPM_BUILD_ROOT%{_prefix}/%{_lib}/*.so $RPM_BUILD_ROOT%{_prefix}/tmp
|
|
|
b40826 |
rm -f $RPM_BUILD_ROOT%{_prefix}/tmp/libc.so
|
|
|
b40826 |
rm -f $RPM_BUILD_ROOT%{_prefix}/tmp/libpthread.so
|
|
|
b40826 |
pushd $RPM_BUILD_ROOT%{_prefix}/tmp
|
|
|
b40826 |
ln -sf ../../%{_lib}/libc.so.6* libc.so
|
|
|
b40826 |
ln -sf ../../%{_lib}/libpthread.so.0* libpthread.so
|
|
|
b40826 |
popd
|
|
|
b40826 |
|
|
|
b40826 |
cd build-%{nptl_target_cpu}-linuxnptl
|
|
|
b40826 |
for libpath in $RPM_BUILD_ROOT%{_prefix}/tmp/*.so; do
|
|
|
b40826 |
lib=`basename $libpath .so`
|
|
|
b40826 |
sh %{SOURCE2} $libpath $COMPATD/%{_lib}/$lib.so $lib.map
|
|
|
b40826 |
done
|
|
|
b40826 |
|
|
|
b40826 |
mv $COMPATD/%{_lib}/libc.so $COMPATD/%{_lib}/libc_real.so
|
|
|
b40826 |
mv $COMPATD/%{_lib}/libpthread.so $COMPATD/%{_lib}/libpthread_real.so
|
|
|
b40826 |
LDIR=%{_prefix}/lib/%{_target_cpu}-redhat-linux6E/%{_lib}
|
|
|
b40826 |
sed 's~^GROUP.*$~GROUP ('$LDIR'/libc_real.so '$LDIR'/libc_nonshared.a )~' \
|
|
|
b40826 |
$RPM_BUILD_ROOT%{_prefix}/%{_lib}/libc.so > $COMPATD/%{_lib}/libc.so
|
|
|
b40826 |
sed 's~^GROUP.*$~GROUP ('$LDIR'/libpthread_real.so '$LDIR'/libpthread_nonshared.a )~' \
|
|
|
b40826 |
$RPM_BUILD_ROOT%{_prefix}/%{_lib}/libpthread.so > $COMPATD/%{_lib}/libpthread.so
|
|
|
b40826 |
|
|
|
b40826 |
%clean
|
|
|
b40826 |
rm -rf "$RPM_BUILD_ROOT"
|
|
|
b40826 |
|
|
|
b40826 |
%files
|
|
|
b40826 |
%defattr(-,root,root)
|
|
|
b40826 |
%dir %{_prefix}/lib/%{_target_cpu}-redhat-linux6E
|
|
|
b40826 |
%dir %{_prefix}/lib/%{_target_cpu}-redhat-linux6E/%{_lib}
|
|
|
b40826 |
%{_prefix}/lib/%{_target_cpu}-redhat-linux6E/%{_lib}/*.[oa]
|
|
|
b40826 |
%{_prefix}/lib/%{_target_cpu}-redhat-linux6E/%{_lib}/*.so
|
|
|
b40826 |
|
|
|
b40826 |
%files headers
|
|
|
b40826 |
%defattr(-,root,root)
|
|
|
b40826 |
%dir %{_prefix}/lib/%{_target_cpu}-redhat-linux6E
|
|
|
b40826 |
%{_prefix}/lib/%{_target_cpu}-redhat-linux6E/include
|
|
|
b40826 |
|
|
|
b40826 |
|
|
|
b40826 |
%changelog
|
|
|
a8434f |
* Thu Oct 31 2019 CentOS Sources <bugs@centos.org> - 2.12-4.el7.centos
|
|
|
a8434f |
- Change branding in the spec file
|
|
|
a8434f |
|
|
|
b40826 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1:2.12-4
|
|
|
b40826 |
- Mass rebuild 2014-01-24
|
|
|
b40826 |
|
|
|
b40826 |
* Tue Jan 7 2014 Siddhesh Poyarekar <siddhesh@redhat.com> - 1:2.12-3
|
|
|
b40826 |
- Fix namespace conflict with Altivec (#1048853).
|
|
|
b40826 |
|
|
|
b40826 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:2.12-2
|
|
|
b40826 |
- Mass rebuild 2013-12-27
|
|
|
b40826 |
|
|
|
b40826 |
* Fri Jul 19 2013 Jeff Law <law@redhat.com> - 1:2.12-1.80.5
|
|
|
b40826 |
- Backport timezone/zic.c change to avoid overflow in oadd (#883974)
|
|
|
b40826 |
|
|
|
b40826 |
* Tue May 28 2013 Jeff Law <law@redhat.com> - 1:2.12-1.80.4
|
|
|
b40826 |
- Fix passing of -z execstack to the linker.
|
|
|
b40826 |
- Remove -mnew-mnenomics from PPC build flags
|
|
|
b40826 |
- Pull over patch for 911307 from Fedora
|
|
|
b40826 |
|
|
|
b40826 |
* Mon May 20 2013 Jeff Law <law@redhat.com> - 1:2.12-1.80.3
|
|
|
b40826 |
- Add -z execstack to command line for building DSOs in
|
|
|
b40826 |
dummylib.sh (#883974)
|
|
|
b40826 |
|
|
|
b40826 |
* Wed Jan 2 2013 Jeff Law <law@redhat.com> - 1:2.12-1.80.2
|
|
|
b40826 |
- Backport change to avoid strict-aliasing problems in
|
|
|
b40826 |
md5.c (#883974)
|
|
|
b40826 |
|
|
|
b40826 |
* Wed Jun 13 2012 Daniel Mach <dmach@redhat.com> - 1:2.12-1.80.1
|
|
|
b40826 |
- add missing epoch to Requires: in headers package
|
|
|
b40826 |
|
|
|
b40826 |
* Fri Jun 8 2012 Jeff Law <law@redhat.com> - 1:2.12-1.80
|
|
|
b40826 |
- changed into compatibility package
|