]> git.pld-linux.org Git - packages/glibc.git/blobdiff - glibc.spec
Up to 2.35. static-pie configure option is gone
[packages/glibc.git] / glibc.spec
index c8beafca5cd3c880cdf485fc0fdfdad7d303bebc..9bd9da1db84ee1d0463162f5780c70ff440fcdec 100644 (file)
@@ -18,8 +18,7 @@
 %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
@@ -51,24 +47,24 @@ Summary(tr.UTF-8):  GNU libc
 Summary(uk.UTF-8):     GNU libc версії
 Name:          glibc
 Version:       %{core_version}
-Release:       2
+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
 # from man-pages.spec --with tars
 Source5:       %{name}-man-pages.tar.xz
-# Source5-md5: ff93a5e391bcff0d88dd4f8c3f96577d
+# Source5-md5: 4481fa9cbead3fe9d24af66666db1c86
 Source6:       %{name}-localedb-gen
 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
@@ -82,7 +78,7 @@ Patch11:      %{name}-autoconf.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
@@ -91,10 +87,6 @@ Patch19:     %{name}-ZA_collate.patch
 
 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}
@@ -500,7 +492,7 @@ Requires:   %{name}-headers = %{epoch}:%{version}-%{release}
 %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}
@@ -706,7 +698,7 @@ Summary(ru.UTF-8):  Статические библиотеки glibc
 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}
@@ -949,7 +941,7 @@ echo "Minimal supported kernel is 3.2.0" >&2
 exit 1
 %endif
 
-#%patch0 -p1
+%patch0 -p1
 
 %patch2 -p1
 %patch3 -p1
@@ -962,16 +954,13 @@ exit 1
 
 %patch14 -p1
 %patch15 -p1
-%patch16 -p1
+
 %patch17 -p1
 %patch18 -p1
 %patch19 -p1
 
 %patch23 -p0
 
-%patch27 -p1
-
-%patch29 -p1
 %patch30 -p1
 
 # cleanup backups after patching
@@ -1015,7 +1004,6 @@ AWK="gawk" \
        --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/ \
@@ -1078,11 +1066,11 @@ PICFILES="libc_pic.a libc.map
        math/libm_pic.a libm.map
        resolv/libresolv_pic.a"
 
-install -p $PICFILES                           $RPM_BUILD_ROOT%{_libdir}
-install -p elf/sofini.os                               $RPM_BUILD_ROOT%{_libdir}/sofini.o
+install -p $PICFILES           $RPM_BUILD_ROOT%{_libdir}
+install -p elf/sofini.os       $RPM_BUILD_ROOT%{_libdir}/sofini.o
 
 # Include %{_libdir}/gconv/gconv-modules.cache
-$(pwd)/elf/ld.so --library-path $(pwd) ./iconv/iconvconfig --nostdlib --prefix=$RPM_BUILD_ROOT %{_libdir}/gconv -o $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
+:> $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
 cd ..
 
 %if %{without cross}
@@ -1158,6 +1146,7 @@ done
 #   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)
@@ -1167,12 +1156,12 @@ done
 #   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)
@@ -1207,6 +1196,7 @@ done
 #   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)
@@ -1218,6 +1208,7 @@ done
 # 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
@@ -1235,6 +1226,7 @@ done
 # fr=fr_FR
 # fy=fy_NL
 # gez=gez_ET (?)
+# hy=hy_AM
 # it=it_IT
 # kab=kab_DZ
 # ks=ks_IN
@@ -1276,7 +1268,7 @@ done
 #   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 \
@@ -1412,6 +1404,9 @@ if [ "$1" = "0" ]; then
        %groupremove nscd
 fi
 
+%posttrans -n iconv
+%{_sbindir}/iconvconfig --nostdlib -o %{_libdir}/gconv/gconv-modules.cache %{_libdir}/gconv
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README NEWS
@@ -1435,7 +1430,6 @@ fi
 %endif
 %ifarch aarch64
 %attr(755,root,root) /lib/ld-linux-aarch64.so.1
-%attr(755,root,root) /%{_lib}/ld-linux-aarch64.so.1
 %endif
 %ifarch armv6hl armv7hl armv7hnl
 %attr(755,root,root) /lib/ld-linux-armhf.so.3
@@ -1448,7 +1442,6 @@ fi
 %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
@@ -1510,6 +1503,7 @@ fi
 %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
@@ -1762,7 +1756,6 @@ fi
 
 %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
@@ -1772,7 +1765,6 @@ fi
 %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*
@@ -1865,7 +1857,7 @@ fi
 %{_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
@@ -2010,9 +2002,12 @@ fi
 %{_libdir}/libBrokenLocale_p.a
 %{_libdir}/libanl_p.a
 %{_libdir}/libc_p.a
-%{_libdir}/libcrypt_p.a
+%{?with_crypt:%{_libdir}/libcrypt_p.a}
 %{_libdir}/libdl_p.a
 %{_libdir}/libm_p.a
+%ifarch %{x8664} x32
+%{_libdir}/libmvec_p.a
+%endif
 %{_libdir}/libpthread_p.a
 %{_libdir}/libresolv_p.a
 %{_libdir}/librt_p.a
This page took 0.044599 seconds and 4 git commands to generate.