%bcond_without nss_crypt # disable crypt features based on Mozilla NSS library
%bcond_with bash_nls # use bash NLS in shell scripts (ldd, sotruss); restores /bin/bash dep
%bcond_without cet # Intel Control-flow Enforcement Technology (CET)
-%bcond_without crypt # don't build obsolete libcrypt
-%bcond_without static_pie # disable static PIE support
+%bcond_with crypt # don't build obsolete libcrypt
#
%ifarch %{ix86} %{x8664}
%{!?min_kernel:%global min_kernel 3.2.0}
%ifnarch i686 %{x8664} x32
%undefine with_cet
%endif
-%ifarch %{arm}
-%undefine with_static_pie
-%endif
-%define core_version 2.34
+%define core_version 2.35
%define llh_version 7:2.6.32.1-1
Summary: GNU libc
Summary(uk.UTF-8): GNU libc версії
Name: glibc
Version: %{core_version}
-Release: 4
+Release: 1
Epoch: 6
License: LGPL v2.1+
Group: Libraries
Source0: https://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.xz
-# Source0-md5: 31998b53fb39cb946e96abc310af1c89
+# Source0-md5: dd571c67d85d89d7f60b854a4e207423
Source2: nscd.init
Source3: nscd.sysconfig
Source4: nscd.logrotate
Source7: %{name}-LD-path.c
Source9: nscd.tmpfiles
# use branch.sh to update glibc-git.patch
-#Patch0: glibc-git.patch
-# Patch0-md5: d41d8cd98f00b204e9800998ecf8427e
+Patch0: glibc-git.patch
+# Patch0-md5: 514da08d86b396f7931841c0cd86a660
# against GNU TP (libc domain)
#Patch1: %{name}-pl.po-update.patch
Patch2: %{name}-pld.patch
Patch14: %{name}-sparc-errno_fix.patch
Patch15: %{name}-new-charsets.patch
-Patch16: %{name}-tzfile-noassert.patch
+
# additions pending for upstream merge or taken from other distros
Patch17: %{name}-morelocales.patch
# fixes mostly pending for upstream merge
Patch23: %{name}-pt_pax.patch
-# http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-c-utf8-locale.patch
-Patch27: %{name}-c-utf8-locale.patch
-
-Patch29: %{name}-arm-alignment-fix.patch
Patch30: glibc-rh1124987.patch
URL: http://www.gnu.org/software/libc/
%{?with_selinux:BuildRequires: audit-libs-devel}
%if %{with crypt}
Requires: %{name}-libcrypt(%{_target_cpu}) = %{epoch}:%{version}-%{release}
%else
-Requires: libxcrypt-devel
+Requires: libxcrypt-devel >= 4.0.0
%endif
Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
%ifarch %{ix86}
Summary(uk.UTF-8): Статичні бібліотеки glibc
Group: Development/Libraries
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
-%{!?with_crypt:Requires: libxcrypt-static}
+%{!?with_crypt:Requires: libxcrypt-static >= 4.0.0}
Provides: %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
%ifarch %{ix86}
Provides: %{name}-static(ix86) = %{epoch}:%{version}-%{release}
exit 1
%endif
-#%patch0 -p1
+%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch14 -p1
%patch15 -p1
-%patch16 -p1
+
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch23 -p0
-%patch27 -p1
-
-%patch29 -p1
%patch30 -p1
# cleanup backups after patching
--enable-profile \
--enable-stack-protector=strong \
--enable-stackguard-randomization \
- %{?with_static_pie:--enable-static-pie} \
--enable-tunables \
--with-binutils=$(pwd)/alt-tools \
--with-bugurl=http://bugs.pld-linux.org/ \
# tlh - Klingon (bzflag)
#
# To be added when they become supported by glibc:
+# ab (at-spi2-core)
# ace (iso-codes)
# ach (iso-codes, libreport, vlc)
# aln (libreport, vlc)
# ch (iso-codes)
# co (FileZilla, libfilezilla, vlc)
# es_419 (alpm - common "Spanish (Latin America)")
-# frp (iso-codes, lxlauncher, mate, xfce)
+# frp (iso-codes, lxlauncher, cinnamon, mate, xfce)
# gn (iso-codes, gnome; gn_BR in gnome, maybe gn_PY)
# guc (gtk-vnc)
# haw (iso-codes, stellarium)
# hrx (stellarium)
-# hye (tumbler)
+# hye (xfce)
# ie (xfce, cinnamon)
# ilo (kudzu, libosinfo, libreport)
# io (alacarte, gtk+2, gnome, iso-codes)
# tw (libosinfo)
# vec (mate-applet-indicator)
# wba (libosinfo)
+# zgh (cinnamon, xapps)
#
# To be removed (after fixing packages still using it):
# sr@Latn (use sr@latin instead)
# anp=anp_IN
# ar=common? (AE, BH, DZ, EG, IQ, JO, KW, LB, LY, MA, OM, QA, SA, SD, SY, TN, YE)
# az=az_AZ
+# ber=ber_DZ? (or common for DZ, MA?)
# bn=bn_BD
# bo=bo_CN? (or common for CN, IN?)
# ca=ca_ES
# fr=fr_FR
# fy=fy_NL
# gez=gez_ET (?)
+# hy=hy_AM
# it=it_IT
# kab=kab_DZ
# ks=ks_IN
# sv tr zh_CN zh_TW
#
for i in aa aa@saaho af ak am an ang anp ar ar_TN as ast az az_IR \
- be@latin be@tarask bem bg bho bn bn_IN bo br brx bs byn \
+ be@latin be@tarask bem ber bg bho bn bn_IN bo br brx bs byn \
ca@valencia ce chr ckb cmn crh csb cv cy de_AT de_CH doi dv dz \
en en@boldquot en@quot en@shaw en_AU en_CA en_IE en_NZ en_US en_ZA eo \
es_AR es_CL es_CO es_CR es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY es_VE \
%else
%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1
%endif
-%attr(755,root,root) /%{_lib}/libSegFault.so
%attr(755,root,root) /%{_lib}/libanl.so.1
%ifarch alpha ia64
%attr(755,root,root) /%{_lib}/libc.so.6.1
%attr(755,root,root) %{_bindir}/getconf
%attr(755,root,root) %{_bindir}/getent
%attr(755,root,root) %{_bindir}/iconv
+%attr(755,root,root) %{_bindir}/ld.so
%attr(755,root,root) %{_bindir}/locale
%attr(755,root,root) %{_bindir}/zdump
%attr(755,root,root) %{_sbindir}/zic
%files misc
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/catchsegv
%attr(755,root,root) %{_bindir}/ldd
%attr(755,root,root) %{_bindir}/pldd
%ifarch %{ix86} m68k sparc sparcv9
%dir %{_libdir}/audit
%attr(755,root,root) %{_libdir}/audit/sotruss-lib.so
-%{_mandir}/man1/catchsegv.1*
%{_mandir}/man1/ldd.1*
%{_mandir}/man1/pldd.1*
%lang(cs) %{_mandir}/cs/man1/ldd.1*
%{_libdir}/libutil.a
%{_libdir}/crt[1in].o
%{_libdir}/[MSgr]crt1.o
-%{?with_static_pie:%{_libdir}/grcrt1.o}
+%{_libdir}/grcrt1.o
# ld scripts
%{_libdir}/libc.so
# static-only libs