077c9d
%define glibcsrcdir glibc-2.28
077c9d
%define glibcversion 2.28
5f7b84
%define glibcrelease 100%{?dist}
077c9d
# Pre-release tarballs are pulled in from git using a command that is
077c9d
# effectively:
077c9d
#
077c9d
# git archive HEAD --format=tar --prefix=$(git describe --match 'glibc-*')/ \
077c9d
#	> $(git describe --match 'glibc-*').tar
077c9d
# gzip -9 $(git describe --match 'glibc-*').tar
077c9d
#
077c9d
# glibc_release_url is only defined when we have a release tarball.
077c9d
%{lua: if string.match(rpm.expand("%glibcsrcdir"), "^glibc%-[0-9.]+$") then
077c9d
  rpm.define("glibc_release_url https://ftp.gnu.org/gnu/glibc/") end}
077c9d
##############################################################################
077c9d
# We support the following options:
077c9d
# --with/--without,
077c9d
# * testsuite - Running the testsuite.
077c9d
# * benchtests - Running and building benchmark subpackage.
077c9d
# * bootstrap - Bootstrapping the package.
077c9d
# * werror - Build with -Werror
077c9d
# * docs - Build with documentation and the required dependencies.
077c9d
# * valgrind - Run smoke tests with valgrind to verify dynamic loader.
077c9d
#
077c9d
# You must always run the testsuite for production builds.
077c9d
# Default: Always run the testsuite.
077c9d
%bcond_without testsuite
077c9d
# Default: Always build the benchtests.
077c9d
%bcond_without benchtests
077c9d
# Default: Not bootstrapping.
077c9d
%bcond_with bootstrap
077c9d
# Default: Enable using -Werror
077c9d
%bcond_without werror
077c9d
# Default: Always build documentation.
077c9d
%bcond_without docs
077c9d
077c9d
# Default: Always run valgrind tests if there is architecture support.
077c9d
%ifarch %{valgrind_arches}
077c9d
%bcond_without valgrind
077c9d
%else
077c9d
%bcond_with valgrind
077c9d
%endif
077c9d
# Restrict %%{valgrind_arches} further in case there are problems with
077c9d
# the smoke test.
077c9d
%if %{with valgrind}
077c9d
%ifarch ppc64 ppc64p7
077c9d
# The valgrind smoke test does not work on ppc64, ppc64p7 (bug 1273103).
077c9d
%undefine with_valgrind
077c9d
%endif
077c9d
%endif
077c9d
077c9d
%if %{with bootstrap}
077c9d
# Disable benchtests, -Werror, docs, and valgrind if we're bootstrapping
077c9d
%undefine with_benchtests
077c9d
%undefine with_werror
077c9d
%undefine with_docs
077c9d
%undefine with_valgrind
077c9d
%endif
077c9d
##############################################################################
077c9d
# Auxiliary arches are those arches that can be built in addition
077c9d
# to the core supported arches. You either install an auxarch or
077c9d
# you install the base arch, not both. You would do this in order
077c9d
# to provide a more optimized version of the package for your arch.
077c9d
%define auxarches athlon alphaev6
077c9d
077c9d
# Only some architectures have static PIE support.
077c9d
%define pie_arches %{ix86} x86_64
077c9d
077c9d
# Build the POWER9 runtime on POWER, but only for downstream.
077c9d
%ifarch ppc64le
077c9d
%define buildpower9 0%{?rhel} > 0
077c9d
%else
077c9d
%define buildpower9 0
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# Any architecture/kernel combination that supports running 32-bit and 64-bit
077c9d
# code in userspace is considered a biarch arch.
077c9d
%define biarcharches %{ix86} x86_64 %{power64} s390 s390x
077c9d
##############################################################################
077c9d
# If the debug information is split into two packages, the core debuginfo
077c9d
# pacakge and the common debuginfo package then the arch should be listed
077c9d
# here. If the arch is not listed here then a single core debuginfo package
077c9d
# will be created for the architecture.
077c9d
%define debuginfocommonarches %{biarcharches} alpha alphaev6
077c9d
##############################################################################
077c9d
# %%package glibc - The GNU C Library (glibc) core package.
077c9d
##############################################################################
077c9d
Summary: The GNU libc libraries
077c9d
Name: glibc
077c9d
Version: %{glibcversion}
077c9d
Release: %{glibcrelease}
077c9d
077c9d
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
077c9d
# libraries.
077c9d
#
077c9d
# LGPLv2+ with exceptions is used for things that are linked directly
077c9d
# into dynamically linked programs and shared libraries (e.g. crt
077c9d
# files, lib*_nonshared.a).  Historically, this exception also applies
077c9d
# to parts of libio.
077c9d
#
077c9d
# GPLv2+ with exceptions is used for parts of the Arm unwinder.
077c9d
#
077c9d
# GFDL is used for the documentation.
077c9d
#
077c9d
# Some other licenses are used in various places (BSD, Inner-Net,
077c9d
# ISC, Public Domain).
077c9d
#
077c9d
# HSRL and FSFAP are only used in test cases, which currently do not
077c9d
# ship in binary RPMs, so they are not listed here.  MIT is used for
077c9d
# scripts/install-sh, which does not ship, either.
077c9d
#
077c9d
# GPLv3+ is used by manual/texinfo.tex, which we do not use.
077c9d
#
077c9d
# LGPLv3+ is used by some Hurd code, which we do not build.
077c9d
#
077c9d
# LGPLv2 is used in one place (time/timespec_get.c, by mistake), but
077c9d
# it is not actually compiled, so it does not matter for libraries.
077c9d
License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ and GPLv2+ with exceptions and BSD and Inner-Net and ISC and Public Domain and GFDL
077c9d
077c9d
URL: http://www.gnu.org/software/glibc/
077c9d
Source0: %{?glibc_release_url}%{glibcsrcdir}.tar.xz
077c9d
Source1: build-locale-archive.c
077c9d
Source4: nscd.conf
077c9d
Source8: power6emul.c
077c9d
Source9: bench.mk
077c9d
Source10: glibc-bench-compare
077c9d
# A copy of localedata/SUPPORTED in the Source0 tarball.  The
077c9d
# SUPPORTED file is used below to generate the list of locale
077c9d
# packages, using a Lua snippet.
077c9d
Source11: SUPPORTED
077c9d
077c9d
# Include in the source RPM for reference.
077c9d
Source12: ChangeLog.old
077c9d
077c9d
##############################################################################
077c9d
# Patches:
077c9d
# - See each individual patch file for origin and upstream status.
077c9d
# - For new patches follow template.patch format.
077c9d
##############################################################################
077c9d
Patch2: glibc-fedora-nscd.patch
077c9d
Patch3: glibc-rh697421.patch
077c9d
Patch4: glibc-fedora-linux-tcsetattr.patch
077c9d
Patch5: glibc-rh741105.patch
077c9d
Patch6: glibc-fedora-localedef.patch
077c9d
Patch7: glibc-fedora-nis-rh188246.patch
077c9d
Patch8: glibc-fedora-manual-dircategory.patch
077c9d
Patch9: glibc-rh827510.patch
077c9d
Patch10: glibc-fedora-locarchive.patch
077c9d
Patch11: glibc-fedora-streams-rh436349.patch
077c9d
Patch12: glibc-rh819430.patch
077c9d
Patch13: glibc-fedora-localedata-rh61908.patch
077c9d
Patch14: glibc-fedora-__libc_multiple_libcs.patch
077c9d
Patch15: glibc-rh1070416.patch
077c9d
Patch16: glibc-nscd-sysconfig.patch
077c9d
Patch17: glibc-cs-path.patch
077c9d
Patch18: glibc-c-utf8-locale.patch
077c9d
Patch23: glibc-python3.patch
077c9d
Patch24: glibc-with-nonshared-cflags.patch
077c9d
Patch25: glibc-asflags.patch
077c9d
Patch27: glibc-rh1614253.patch
077c9d
Patch28: glibc-rh1577365.patch
077c9d
Patch29: glibc-rh1615781.patch
077c9d
Patch30: glibc-rh1615784.patch
077c9d
Patch31: glibc-rh1615790.patch
077c9d
Patch32: glibc-rh1622675.patch
077c9d
Patch33: glibc-rh1622678-1.patch
077c9d
Patch34: glibc-rh1622678-2.patch
077c9d
Patch35: glibc-rh1631293-1.patch
077c9d
Patch36: glibc-rh1631293-2.patch
077c9d
Patch37: glibc-rh1623536.patch
077c9d
Patch38: glibc-rh1631722.patch
077c9d
Patch39: glibc-rh1631730.patch
077c9d
Patch40: glibc-rh1623536-2.patch
077c9d
Patch41: glibc-rh1614979.patch
077c9d
Patch42: glibc-rh1645593.patch
077c9d
Patch43: glibc-rh1645596.patch
077c9d
Patch44: glibc-rh1645604.patch
077c9d
Patch45: glibc-rh1646379.patch
077c9d
Patch46: glibc-rh1645601.patch
077c9d
Patch52: glibc-rh1638523-1.patch
077c9d
Patch47: glibc-rh1638523-2.patch
077c9d
Patch48: glibc-rh1638523-3.patch
077c9d
Patch49: glibc-rh1638523-4.patch
077c9d
Patch50: glibc-rh1638523-5.patch
077c9d
Patch51: glibc-rh1638523-6.patch
077c9d
Patch53: glibc-rh1641982.patch
077c9d
Patch54: glibc-rh1645597.patch
077c9d
Patch55: glibc-rh1650560-1.patch
077c9d
Patch56: glibc-rh1650560-2.patch
077c9d
Patch57: glibc-rh1650563.patch
077c9d
Patch58: glibc-rh1650566.patch
077c9d
Patch59: glibc-rh1650571.patch
077c9d
Patch60: glibc-rh1638520.patch
077c9d
Patch61: glibc-rh1651274.patch
077c9d
Patch62: glibc-rh1654010-1.patch
077c9d
Patch63: glibc-rh1635779.patch
077c9d
Patch64: glibc-rh1654010-2.patch
077c9d
Patch65: glibc-rh1654010-3.patch
077c9d
Patch66: glibc-rh1654010-4.patch
077c9d
Patch67: glibc-rh1654010-5.patch
077c9d
Patch68: glibc-rh1654010-6.patch
077c9d
Patch69: glibc-rh1642094-1.patch
077c9d
Patch70: glibc-rh1642094-2.patch
077c9d
Patch71: glibc-rh1642094-3.patch
077c9d
Patch72: glibc-rh1654872-1.patch
077c9d
Patch73: glibc-rh1654872-2.patch
077c9d
Patch74: glibc-rh1651283-1.patch
077c9d
Patch75: glibc-rh1662843-1.patch
077c9d
Patch76: glibc-rh1662843-2.patch
077c9d
Patch77: glibc-rh1623537.patch
077c9d
Patch78: glibc-rh1577438.patch
077c9d
Patch79: glibc-rh1664408.patch
077c9d
Patch80: glibc-rh1651742.patch
077c9d
Patch81: glibc-rh1672773.patch
077c9d
Patch82: glibc-rh1651283-2.patch
077c9d
Patch83: glibc-rh1651283-3.patch
077c9d
Patch84: glibc-rh1651283-4.patch
077c9d
Patch85: glibc-rh1651283-5.patch
077c9d
Patch86: glibc-rh1651283-6.patch
077c9d
Patch87: glibc-rh1651283-7.patch
077c9d
Patch88: glibc-rh1659293-1.patch
077c9d
Patch89: glibc-rh1659293-2.patch
077c9d
Patch90: glibc-rh1639343-1.patch
077c9d
Patch91: glibc-rh1639343-2.patch
077c9d
Patch92: glibc-rh1639343-3.patch
077c9d
Patch93: glibc-rh1639343-4.patch
077c9d
Patch94: glibc-rh1639343-5.patch
077c9d
Patch95: glibc-rh1639343-6.patch
077c9d
Patch96: glibc-rh1663035.patch
077c9d
Patch97: glibc-rh1658901.patch
077c9d
Patch98: glibc-rh1659512-1.patch
077c9d
Patch99: glibc-rh1659512-2.patch
077c9d
Patch100: glibc-rh1659438-1.patch
077c9d
Patch101: glibc-rh1659438-2.patch
077c9d
Patch102: glibc-rh1659438-3.patch
077c9d
Patch103: glibc-rh1659438-4.patch
077c9d
Patch104: glibc-rh1659438-5.patch
077c9d
Patch105: glibc-rh1659438-6.patch
077c9d
Patch106: glibc-rh1659438-7.patch
077c9d
Patch107: glibc-rh1659438-8.patch
077c9d
Patch108: glibc-rh1659438-9.patch
077c9d
Patch109: glibc-rh1659438-10.patch
077c9d
Patch110: glibc-rh1659438-11.patch
077c9d
Patch111: glibc-rh1659438-12.patch
077c9d
Patch112: glibc-rh1659438-13.patch
077c9d
Patch113: glibc-rh1659438-14.patch
077c9d
Patch114: glibc-rh1659438-15.patch
077c9d
Patch115: glibc-rh1659438-16.patch
077c9d
Patch116: glibc-rh1659438-17.patch
077c9d
Patch117: glibc-rh1659438-18.patch
077c9d
Patch118: glibc-rh1659438-19.patch
077c9d
Patch119: glibc-rh1659438-20.patch
077c9d
Patch120: glibc-rh1659438-21.patch
077c9d
Patch121: glibc-rh1659438-22.patch
077c9d
Patch122: glibc-rh1659438-23.patch
077c9d
Patch123: glibc-rh1659438-24.patch
077c9d
Patch124: glibc-rh1659438-25.patch
077c9d
Patch125: glibc-rh1659438-26.patch
077c9d
Patch126: glibc-rh1659438-27.patch
077c9d
Patch127: glibc-rh1659438-28.patch
077c9d
Patch128: glibc-rh1659438-29.patch
077c9d
Patch129: glibc-rh1659438-30.patch
077c9d
Patch130: glibc-rh1659438-31.patch
077c9d
Patch131: glibc-rh1659438-32.patch
077c9d
Patch132: glibc-rh1659438-33.patch
077c9d
Patch133: glibc-rh1659438-34.patch
077c9d
Patch134: glibc-rh1659438-35.patch
077c9d
Patch135: glibc-rh1659438-36.patch
077c9d
Patch136: glibc-rh1659438-37.patch
077c9d
Patch137: glibc-rh1659438-38.patch
077c9d
Patch138: glibc-rh1659438-39.patch
077c9d
Patch139: glibc-rh1659438-40.patch
077c9d
Patch140: glibc-rh1659438-41.patch
077c9d
Patch141: glibc-rh1659438-42.patch
077c9d
Patch142: glibc-rh1659438-43.patch
077c9d
Patch143: glibc-rh1659438-44.patch
077c9d
Patch144: glibc-rh1659438-45.patch
077c9d
Patch145: glibc-rh1659438-46.patch
077c9d
Patch146: glibc-rh1659438-47.patch
077c9d
Patch147: glibc-rh1659438-48.patch
077c9d
Patch148: glibc-rh1659438-49.patch
077c9d
Patch149: glibc-rh1659438-50.patch
077c9d
Patch150: glibc-rh1659438-51.patch
077c9d
Patch151: glibc-rh1659438-52.patch
077c9d
Patch152: glibc-rh1659438-53.patch
077c9d
Patch153: glibc-rh1659438-54.patch
077c9d
Patch154: glibc-rh1659438-55.patch
077c9d
Patch155: glibc-rh1659438-56.patch
077c9d
Patch156: glibc-rh1659438-57.patch
077c9d
Patch157: glibc-rh1659438-58.patch
077c9d
Patch158: glibc-rh1659438-59.patch
077c9d
Patch159: glibc-rh1659438-60.patch
077c9d
Patch160: glibc-rh1659438-61.patch
077c9d
Patch161: glibc-rh1659438-62.patch
077c9d
Patch162: glibc-rh1702539-1.patch
077c9d
Patch163: glibc-rh1702539-2.patch
077c9d
Patch164: glibc-rh1701605-1.patch
077c9d
Patch165: glibc-rh1701605-2.patch
077c9d
Patch166: glibc-rh1691528-1.patch
077c9d
Patch167: glibc-rh1691528-2.patch
077c9d
Patch168: glibc-rh1706777.patch
077c9d
Patch169: glibc-rh1710478.patch
077c9d
Patch170: glibc-rh1670043-1.patch
077c9d
Patch171: glibc-rh1670043-2.patch
077c9d
Patch172: glibc-rh1710894.patch
077c9d
Patch173: glibc-rh1699194-1.patch
077c9d
Patch174: glibc-rh1699194-2.patch
077c9d
Patch175: glibc-rh1699194-3.patch
077c9d
Patch176: glibc-rh1699194-4.patch
5f7b84
Patch177: glibc-rh1727241-1.patch
5f7b84
Patch178: glibc-rh1727241-2.patch
5f7b84
Patch179: glibc-rh1727241-3.patch
5f7b84
Patch180: glibc-rh1717438.patch
5f7b84
Patch181: glibc-rh1727152.patch
5f7b84
Patch182: glibc-rh1724975.patch
5f7b84
Patch183: glibc-rh1722215.patch
5f7b84
Patch184: glibc-rh1764234-1.patch
5f7b84
Patch185: glibc-rh1764234-2.patch
5f7b84
Patch186: glibc-rh1764234-3.patch
5f7b84
Patch187: glibc-rh1764234-4.patch
5f7b84
Patch188: glibc-rh1764234-5.patch
5f7b84
Patch189: glibc-rh1764234-6.patch
5f7b84
Patch190: glibc-rh1764234-7.patch
5f7b84
Patch191: glibc-rh1764234-8.patch
5f7b84
Patch192: glibc-rh1747505-1.patch
5f7b84
Patch193: glibc-rh1747505-2.patch
5f7b84
Patch194: glibc-rh1747505-3.patch
5f7b84
Patch195: glibc-rh1747505-4.patch
5f7b84
Patch196: glibc-rh1747453.patch
5f7b84
Patch197: glibc-rh1764241.patch
5f7b84
Patch198: glibc-rh1746933-1.patch
5f7b84
Patch199: glibc-rh1746933-2.patch
5f7b84
Patch200: glibc-rh1746933-3.patch
5f7b84
Patch201: glibc-rh1735747-1.patch
5f7b84
Patch202: glibc-rh1735747-2.patch
5f7b84
Patch203: glibc-rh1764226-1.patch
5f7b84
Patch204: glibc-rh1764226-2.patch
5f7b84
Patch205: glibc-rh1764226-3.patch
5f7b84
Patch206: glibc-rh1764218-1.patch
5f7b84
Patch207: glibc-rh1764218-2.patch
5f7b84
Patch208: glibc-rh1764218-3.patch
5f7b84
Patch209: glibc-rh1682954.patch
5f7b84
Patch210: glibc-rh1746928.patch
5f7b84
Patch211: glibc-rh1747502.patch
5f7b84
Patch212: glibc-rh1747502-1.patch
5f7b84
Patch213: glibc-rh1747502-2.patch
5f7b84
Patch214: glibc-rh1747502-3.patch
5f7b84
Patch215: glibc-rh1747502-4.patch
5f7b84
Patch216: glibc-rh1747502-5.patch
5f7b84
Patch217: glibc-rh1747502-6.patch
5f7b84
Patch218: glibc-rh1747502-7.patch
5f7b84
Patch219: glibc-rh1747502-8.patch
5f7b84
Patch220: glibc-rh1747502-9.patch
5f7b84
Patch221: glibc-rh1726638-1.patch
5f7b84
Patch222: glibc-rh1726638-2.patch
5f7b84
Patch223: glibc-rh1726638-3.patch
5f7b84
Patch224: glibc-rh1764238-1.patch
5f7b84
Patch225: glibc-rh1764238-2.patch
5f7b84
Patch226: glibc-rh1764242.patch
5f7b84
Patch227: glibc-rh1769304.patch
5f7b84
Patch228: glibc-rh1749439-1.patch
5f7b84
Patch229: glibc-rh1749439-2.patch
5f7b84
Patch230: glibc-rh1749439-3.patch
5f7b84
Patch231: glibc-rh1749439-4.patch
5f7b84
Patch232: glibc-rh1749439-5.patch
5f7b84
Patch233: glibc-rh1749439-6.patch
5f7b84
Patch234: glibc-rh1749439-7.patch
5f7b84
Patch235: glibc-rh1749439-8.patch
5f7b84
Patch236: glibc-rh1749439-9.patch
5f7b84
Patch237: glibc-rh1749439-10.patch
5f7b84
Patch238: glibc-rh1749439-11.patch
5f7b84
Patch239: glibc-rh1749439-12.patch
5f7b84
Patch240: glibc-rh1749439-13.patch
5f7b84
Patch241: glibc-rh1764231-1.patch
5f7b84
Patch242: glibc-rh1764231-2.patch
5f7b84
Patch243: glibc-rh1764235.patch
5f7b84
Patch244: glibc-rh1361965.patch
5f7b84
Patch245: glibc-rh1764223.patch
5f7b84
Patch246: glibc-rh1764214.patch
5f7b84
Patch247: glibc-rh1774021.patch
5f7b84
Patch248: glibc-rh1775294.patch
5f7b84
Patch249: glibc-rh1777241.patch
5f7b84
Patch250: glibc-rh1410154-1.patch
5f7b84
Patch251: glibc-rh1410154-2.patch
5f7b84
Patch252: glibc-rh1410154-3.patch
5f7b84
Patch253: glibc-rh1410154-4.patch
5f7b84
Patch254: glibc-rh1410154-5.patch
5f7b84
Patch255: glibc-rh1410154-6.patch
5f7b84
Patch256: glibc-rh1410154-7.patch
5f7b84
Patch257: glibc-rh1410154-8.patch
5f7b84
Patch258: glibc-rh1410154-9.patch
5f7b84
Patch259: glibc-rh1410154-10.patch
5f7b84
Patch260: glibc-rh1410154-11.patch
5f7b84
Patch261: glibc-rh1410154-12.patch
5f7b84
Patch262: glibc-rh1410154-13.patch
5f7b84
Patch263: glibc-rh1410154-14.patch
077c9d
077c9d
##############################################################################
077c9d
# Continued list of core "glibc" package information:
077c9d
##############################################################################
077c9d
Obsoletes: glibc-profile < 2.4
077c9d
Provides: ldconfig
077c9d
077c9d
# The dynamic linker supports DT_GNU_HASH
077c9d
Provides: rtld(GNU_HASH)
077c9d
Requires: glibc-common = %{version}-%{release}
077c9d
077c9d
# Various components (regex, glob) have been imported from gnulib.
077c9d
Provides: bundled(gnulib)
077c9d
077c9d
Requires(pre): basesystem
077c9d
077c9d
# This is for building auxiliary programs like memusage, nscd
077c9d
# For initial glibc bootstraps it can be commented out
077c9d
%if %{without bootstrap}
077c9d
BuildRequires: gd-devel libpng-devel zlib-devel
077c9d
%endif
077c9d
%if %{with docs}
077c9d
# Removing texinfo will cause check-safety.sh test to fail because it seems to
077c9d
# trigger documentation generation based on dependencies.  We need to fix this
077c9d
# upstream in some way that doesn't depend on generating docs to validate the
077c9d
# texinfo.  I expect it's simply the wrong dependency for that target.
077c9d
BuildRequires: texinfo >= 5.0
077c9d
%endif
077c9d
%if %{without bootstrap}
077c9d
BuildRequires: libselinux-devel >= 1.33.4-3
077c9d
%endif
077c9d
BuildRequires: audit-libs-devel >= 1.1.3, sed >= 3.95, libcap-devel, gettext
077c9d
# We need procps-ng (/bin/ps), util-linux (/bin/kill), and gawk (/bin/awk),
077c9d
# but it is more flexible to require the actual programs and let rpm infer
077c9d
# the packages. However, until bug 1259054 is widely fixed we avoid the
077c9d
# following:
077c9d
# BuildRequires: /bin/ps, /bin/kill, /bin/awk
077c9d
# And use instead (which should be reverted some time in the future):
077c9d
BuildRequires: procps-ng, util-linux, gawk
077c9d
BuildRequires: systemtap-sdt-devel
077c9d
077c9d
%if %{with valgrind}
077c9d
# Require valgrind for smoke testing the dynamic loader to make sure we
077c9d
# have not broken valgrind.
077c9d
BuildRequires: valgrind
077c9d
%endif
077c9d
077c9d
# We use systemd rpm macros for nscd
077c9d
BuildRequires: systemd
077c9d
077c9d
# We use python for the microbenchmarks and locale data regeneration
077c9d
# from unicode sources (carried out manually). We choose python3
077c9d
# explicitly because it supports both use cases.  On some
077c9d
# distributions, python3 does not actually install /usr/bin/python3,
077c9d
# so we also depend on python3-devel.
077c9d
BuildRequires: python3 python3-devel
077c9d
077c9d
# This is the first GCC version with enhanced valgrind support in the
077c9d
# inline expansion of string functions (#1532205, #1652929, #1652932).
077c9d
BuildRequires: gcc >= 8.2.1-3.4
077c9d
%define enablekernel 3.2
077c9d
Conflicts: kernel < %{enablekernel}
077c9d
%define target %{_target_cpu}-redhat-linux
077c9d
%ifarch %{arm}
077c9d
%define target %{_target_cpu}-redhat-linuxeabi
077c9d
%endif
077c9d
%ifarch %{power64}
077c9d
%ifarch ppc64le
077c9d
%define target ppc64le-redhat-linux
077c9d
%else
077c9d
%define target ppc64-redhat-linux
077c9d
%endif
077c9d
%endif
077c9d
077c9d
# GNU make 4.0 introduced the -O option.
077c9d
BuildRequires: make >= 4.0
077c9d
077c9d
# The intl subsystem generates a parser using bison.
077c9d
BuildRequires: bison >= 2.7
077c9d
077c9d
# binutils 2.30-51 is needed for z13 support on s390x.
077c9d
BuildRequires: binutils >= 2.30-51
077c9d
077c9d
# Earlier releases have broken support for IRELATIVE relocations
077c9d
Conflicts: prelink < 0.4.2
077c9d
077c9d
%if 0%{?_enable_debug_packages}
077c9d
BuildRequires: elfutils >= 0.72
077c9d
BuildRequires: rpm >= 4.2-0.56
077c9d
%endif
077c9d
077c9d
%if %{without bootstrap}
077c9d
%if %{with testsuite}
077c9d
# The testsuite builds static C++ binaries that require a C++ compiler,
077c9d
# static C++ runtime from libstdc++-static, and lastly static glibc.
077c9d
BuildRequires: gcc-c++
077c9d
BuildRequires: libstdc++-static
077c9d
# A configure check tests for the ability to create static C++ binaries
077c9d
# before glibc is built and therefore we need a glibc-static for that
077c9d
# check to pass even if we aren't going to use any of those objects to
077c9d
# build the tests.
077c9d
BuildRequires: glibc-static
077c9d
077c9d
# libidn2 (but not libidn2-devel) is needed for testing AI_IDN/NI_IDN.
077c9d
BuildRequires: libidn2
077c9d
%endif
077c9d
%endif
077c9d
077c9d
# Filter out all GLIBC_PRIVATE symbols since they are internal to
077c9d
# the package and should not be examined by any other tool.
077c9d
%global __filter_GLIBC_PRIVATE 1
077c9d
077c9d
# For language packs we have glibc require a virtual dependency
077c9d
# "glibc-langpack" wich gives us at least one installed langpack.
077c9d
# If no langpack providing 'glibc-langpack' was installed you'd
077c9d
# get all of them, and that would make the transition from a
077c9d
# system without langpacks smoother (you'd get all the locales
077c9d
# installed). You would then trim that list, and the trimmed list
077c9d
# is preserved. One problem is you can't have "no" locales installed,
077c9d
# in that case we offer a "glibc-minimal-langpack" sub-pakcage for
077c9d
# this purpose.
077c9d
Requires: glibc-langpack = %{version}-%{release}
077c9d
Suggests: glibc-all-langpacks = %{version}-%{release}
077c9d
077c9d
%description
077c9d
The glibc package contains standard libraries which are used by
077c9d
multiple programs on the system. In order to save disk space and
077c9d
memory, as well as to make upgrading easier, common system code is
077c9d
kept in one place and shared between programs. This particular package
077c9d
contains the most important sets of shared libraries: the standard C
077c9d
library and the standard math library. Without these two libraries, a
077c9d
Linux system will not function.
077c9d
077c9d
######################################################################
077c9d
# libnsl subpackage
077c9d
######################################################################
077c9d
077c9d
%package -n libnsl
077c9d
Summary: Legacy support library for NIS
077c9d
Requires: %{name}%{_isa} = %{version}-%{release}
077c9d
077c9d
%description -n libnsl
077c9d
This package provides the legacy version of libnsl library, for
077c9d
accessing NIS services.
077c9d
077c9d
This library is provided for backwards compatibility only;
077c9d
applications should use libnsl2 instead to gain IPv6 support.
077c9d
077c9d
##############################################################################
077c9d
# glibc "devel" sub-package
077c9d
##############################################################################
077c9d
%package devel
077c9d
Summary: Object files for development using standard C libraries.
077c9d
Requires(pre): /sbin/install-info
077c9d
Requires(pre): %{name}-headers
077c9d
Requires: %{name}-headers = %{version}-%{release}
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
Requires: libgcc%{_isa}
077c9d
Requires: libxcrypt-devel%{_isa} >= 4.0.0
077c9d
077c9d
%description devel
077c9d
The glibc-devel package contains the object files necessary
077c9d
for developing programs which use the standard C libraries (which are
077c9d
used by nearly all programs).  If you are developing programs which
077c9d
will use the standard C libraries, your system needs to have these
077c9d
standard object files available in order to create the
077c9d
executables.
077c9d
077c9d
Install glibc-devel if you are going to develop programs which will
077c9d
use the standard C libraries.
077c9d
077c9d
##############################################################################
077c9d
# glibc "static" sub-package
077c9d
##############################################################################
077c9d
%package static
077c9d
Summary: C library static libraries for -static linking.
077c9d
Requires: %{name}-devel = %{version}-%{release}
077c9d
Requires: libxcrypt-static%{?_isa} >= 4.0.0
077c9d
077c9d
%description static
077c9d
The glibc-static package contains the C library static libraries
077c9d
for -static linking.  You don't need these, unless you link statically,
077c9d
which is highly discouraged.
077c9d
077c9d
##############################################################################
077c9d
# glibc "headers" sub-package
077c9d
# - The headers package includes all common headers that are shared amongst
077c9d
#   the multilib builds. It was created to reduce the download size, and
077c9d
#   thus avoid downloading one header package per multilib. The package is
077c9d
#   identical both in content and file list, any difference is an error.
077c9d
#   Files like gnu/stubs.h which have gnu/stubs-32.h (i686) and gnu/stubs-64.h
077c9d
#   are included in glibc-headers, but the -32 and -64 files are in their
077c9d
#   respective i686 and x86_64 devel packages.
077c9d
##############################################################################
077c9d
%package headers
077c9d
Summary: Header files for development using standard C libraries.
077c9d
Provides: %{name}-headers(%{_target_cpu})
077c9d
Requires(pre): kernel-headers
077c9d
Requires: kernel-headers >= 2.2.1, %{name} = %{version}-%{release}
077c9d
BuildRequires: kernel-headers >= 3.2
077c9d
077c9d
%description headers
077c9d
The glibc-headers package contains the header files necessary
077c9d
for developing programs which use the standard C libraries (which are
077c9d
used by nearly all programs).  If you are developing programs which
077c9d
will use the standard C libraries, your system needs to have these
077c9d
standard header files available in order to create the
077c9d
executables.
077c9d
077c9d
Install glibc-headers if you are going to develop programs which will
077c9d
use the standard C libraries.
077c9d
077c9d
##############################################################################
077c9d
# glibc "common" sub-package
077c9d
##############################################################################
077c9d
%package common
077c9d
Summary: Common binaries and locale data for glibc
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
Requires: tzdata >= 2003a
077c9d
077c9d
%description common
077c9d
The glibc-common package includes common binaries for the GNU libc
077c9d
libraries, as well as national language (locale) support.
077c9d
077c9d
######################################################################
077c9d
# File triggers to do ldconfig calls automatically (see rhbz#1380878)
077c9d
######################################################################
077c9d
077c9d
# File triggers for when libraries are added or removed in standard
077c9d
# paths.
077c9d
%transfiletriggerin common -P 2000000 -- /lib /usr/lib /lib64 /usr/lib64
077c9d
/sbin/ldconfig
077c9d
%end
077c9d
077c9d
%transfiletriggerpostun common -P 2000000 -- /lib /usr/lib /lib64 /usr/lib64
077c9d
/sbin/ldconfig
077c9d
%end
077c9d
077c9d
# We need to run ldconfig manually because __brp_ldconfig assumes that
077c9d
# glibc itself is always installed in $RPM_BUILD_ROOT, but with sysroots
077c9d
# we may be installed into a subdirectory of that path.  Therefore we
077c9d
# unset __brp_ldconfig and run ldconfig by hand with the sysroots path
077c9d
# passed to -r.
077c9d
%undefine __brp_ldconfig
077c9d
077c9d
######################################################################
077c9d
077c9d
%package locale-source
077c9d
Summary: The sources for the locales
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
Requires: %{name}-common = %{version}-%{release}
077c9d
077c9d
%description locale-source
077c9d
The sources for all locales provided in the language packs.
077c9d
If you are building custom locales you will most likely use
077c9d
these sources as the basis for your new locale.
077c9d
077c9d
%{lua:
077c9d
-- Array of languages (ISO-639 codes).
077c9d
local languages = {}
077c9d
-- Dictionary from language codes (as in the languages array) to arrays
077c9d
-- of regions.
077c9d
local supplements = {}
077c9d
do
077c9d
   -- Parse the SUPPORTED file.  Eliminate duplicates.
077c9d
   local lang_region_seen = {}
077c9d
   for line in io.lines(rpm.expand("%{SOURCE11}")) do
077c9d
      -- Match lines which contain a language (eo) or language/region
077c9d
      -- (en_US) strings.
077c9d
      local lang_region = string.match(line, "^([a-z][^/@.]+)")
077c9d
      if lang_region ~= nil then
077c9d
	 if lang_region_seen[lang_region] == nil then
077c9d
	    lang_region_seen[lang_region] = true
077c9d
077c9d
	    -- Split language/region pair.
077c9d
	    local lang, region = string.match(lang_region, "^(.+)_(.+)")
077c9d
	    if lang == nil then
077c9d
	       -- Region is missing, use only the language.
077c9d
	       lang = lang_region
077c9d
	    end
077c9d
	    local suppl = supplements[lang]
077c9d
	    if suppl == nil then
077c9d
	       suppl = {}
077c9d
	       supplements[lang] = suppl
077c9d
	       -- New language not seen before.
077c9d
	       languages[#languages + 1] = lang
077c9d
	    end
077c9d
	    if region ~= nil then
077c9d
	       -- New region because of the check against
077c9d
	       -- lang_region_seen above.
077c9d
	       suppl[#suppl + 1] = region
077c9d
	    end
077c9d
	 end
077c9d
      end
077c9d
   end
077c9d
   -- Sort for determinism.
077c9d
   table.sort(languages)
077c9d
   for _, supples in pairs(supplements) do
077c9d
      table.sort(supplements)
077c9d
   end
077c9d
end
077c9d
077c9d
-- Compute the Supplements: list for a language, based on the regions.
077c9d
local function compute_supplements(lang)
077c9d
   result = "langpacks-" .. lang
077c9d
   regions = supplements[lang]
077c9d
   if regions ~= nil then
077c9d
      for i = 1, #regions do
077c9d
	 result = result .. " or langpacks-" .. lang .. "_" .. regions[i]
077c9d
      end
077c9d
   end
077c9d
   return result
077c9d
end
077c9d
077c9d
-- Emit the definition of a language pack package.
077c9d
local function lang_package(lang)
077c9d
   local suppl = compute_supplements(lang)
077c9d
   print(rpm.expand([[
077c9d
077c9d
%package langpack-]]..lang..[[
077c9d
077c9d
Summary: Locale data for ]]..lang..[[
077c9d
077c9d
Provides: glibc-langpack = %{version}-%{release}
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
Requires: %{name}-common = %{version}-%{release}
077c9d
Supplements: (glibc and (]]..suppl..[[))
077c9d
%description langpack-]]..lang..[[
077c9d
077c9d
The glibc-langpack-]]..lang..[[ package includes the basic information required
077c9d
to support the ]]..lang..[[ language in your applications.
077c9d
%ifnarch %{auxarches}
077c9d
%files -f langpack-]]..lang..[[.filelist langpack-]]..lang..[[
077c9d
077c9d
%endif
077c9d
]]))
077c9d
end
077c9d
077c9d
for i = 1, #languages do
077c9d
   lang_package(languages[i])
077c9d
end
077c9d
}
077c9d
077c9d
# The glibc-all-langpacks provides the virtual glibc-langpack,
077c9d
# and thus satisfies glibc's requirement for installed locales.
077c9d
# Users can add one more other langauge packs and then eventually
077c9d
# uninstall all-langpacks to save space.
077c9d
%package all-langpacks
077c9d
Summary: All language packs for %{name}.
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
Requires: %{name}-common = %{version}-%{release}
077c9d
Provides: %{name}-langpack = %{version}-%{release}
077c9d
%description all-langpacks
077c9d
077c9d
# No %files, this is an empty pacakge. The C/POSIX and
077c9d
# C.UTF-8 files are already installed by glibc. We create
077c9d
# minimal-langpack because the virtual provide of
077c9d
# glibc-langpack needs at least one package installed
077c9d
# to satisfy it. Given that no-locales installed is a valid
077c9d
# use case we support it here with this package.
077c9d
%package minimal-langpack
077c9d
Summary: Minimal language packs for %{name}.
077c9d
Provides: glibc-langpack = %{version}-%{release}
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
Requires: %{name}-common = %{version}-%{release}
077c9d
%description minimal-langpack
077c9d
This is a Meta package that is used to install minimal language packs.
077c9d
This package ensures you can use C, POSIX, or C.UTF-8 locales, but
077c9d
nothing else. It is designed for assembling a minimal system.
077c9d
%ifnarch %{auxarches}
077c9d
%files minimal-langpack
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# glibc "nscd" sub-package
077c9d
##############################################################################
077c9d
%package -n nscd
077c9d
Summary: A Name Service Caching Daemon (nscd).
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
%if %{without bootstrap}
077c9d
Requires: libselinux >= 1.17.10-1
077c9d
%endif
077c9d
Requires: audit-libs >= 1.1.3
077c9d
Requires(pre): /usr/sbin/useradd, coreutils
077c9d
Requires(post): systemd
077c9d
Requires(preun): systemd
077c9d
Requires(postun): systemd, /usr/sbin/userdel
077c9d
077c9d
%description -n nscd
077c9d
The nscd daemon caches name service lookups and can improve
077c9d
performance with LDAP, and may help with DNS as well.
077c9d
077c9d
##############################################################################
077c9d
# Subpackages for NSS modules except nss_files, nss_compat, nss_dns
077c9d
##############################################################################
077c9d
077c9d
# This should remain it's own subpackage or "Provides: nss_db" to allow easy
077c9d
# migration from old systems that previously had the old nss_db package
077c9d
# installed. Note that this doesn't make the migration that smooth, the
077c9d
# databases still need rebuilding because the formats were different.
077c9d
# The nss_db package was deprecated in F16 and onwards:
077c9d
# https://lists.fedoraproject.org/pipermail/devel/2011-July/153665.html
077c9d
# The different database format does cause some issues for users:
077c9d
# https://lists.fedoraproject.org/pipermail/devel/2011-December/160497.html
077c9d
%package -n nss_db
077c9d
Summary: Name Service Switch (NSS) module using hash-indexed files
077c9d
Requires: %{name}%{_isa} = %{version}-%{release}
077c9d
077c9d
%description -n nss_db
077c9d
The nss_db Name Service Switch module uses hash-indexed files in /var/db
077c9d
to speed up user, group, service, host name, and other NSS-based lookups.
077c9d
077c9d
%package -n nss_hesiod
077c9d
Summary: Name Service Switch (NSS) module using Hesiod
077c9d
Requires: %{name}%{_isa} = %{version}-%{release}
077c9d
077c9d
%description -n nss_hesiod
077c9d
The nss_hesiod Name Service Switch module uses the Domain Name System
077c9d
(DNS) as a source for user, group, and service information, following
077c9d
the Hesiod convention of Project Athena.
077c9d
077c9d
%package nss-devel
077c9d
Summary: Development files for directly linking NSS service modules
077c9d
Requires: %{name}%{_isa} = %{version}-%{release}
077c9d
Requires: nss_db%{_isa} = %{version}-%{release}
077c9d
Requires: nss_hesiod%{_isa} = %{version}-%{release}
077c9d
077c9d
%description nss-devel
077c9d
The glibc-nss-devel package contains the object files necessary to
077c9d
compile applications and libraries which directly link against NSS
077c9d
modules supplied by glibc.
077c9d
077c9d
This is a rare and special use case; regular development has to use
077c9d
the glibc-devel package instead.
077c9d
077c9d
##############################################################################
077c9d
# glibc "utils" sub-package
077c9d
##############################################################################
077c9d
%package utils
077c9d
Summary: Development utilities from GNU C library
077c9d
Requires: %{name} = %{version}-%{release}
077c9d
077c9d
%description utils
077c9d
The glibc-utils package contains memusage, a memory usage profiler,
077c9d
mtrace, a memory leak tracer and xtrace, a function call tracer
077c9d
which can be helpful during program debugging.
077c9d
077c9d
If unsure if you need this, don't install this package.
077c9d
077c9d
##############################################################################
077c9d
# glibc core "debuginfo" sub-package
077c9d
##############################################################################
077c9d
%if 0%{?_enable_debug_packages}
077c9d
%define debug_package %{nil}
077c9d
%define __debug_install_post %{nil}
077c9d
%global __debug_package 1
077c9d
# Disable thew new features that glibc packages don't use.
077c9d
%undefine _debugsource_packages
077c9d
%undefine _debuginfo_subpackages
077c9d
%undefine _unique_debug_names
077c9d
%undefine _unique_debug_srcs
077c9d
077c9d
%package debuginfo
077c9d
Summary: Debug information for package %{name}
077c9d
AutoReqProv: no
077c9d
%ifarch %{debuginfocommonarches}
077c9d
Requires: glibc-debuginfo-common = %{version}-%{release}
077c9d
%else
077c9d
%ifarch %{ix86} %{sparc}
077c9d
Obsoletes: glibc-debuginfo-common
077c9d
%endif
077c9d
%endif
077c9d
077c9d
%description debuginfo
077c9d
This package provides debug information for package %{name}.
077c9d
Debug information is useful when developing applications that use this
077c9d
package or when debugging this package.
077c9d
077c9d
This package also contains static standard C libraries with
077c9d
debugging information.  You need this only if you want to step into
077c9d
C library routines during debugging programs statically linked against
077c9d
one or more of the standard C libraries.
077c9d
To use this debugging information, you need to link binaries
077c9d
with -static -L%{_prefix}/lib/debug%{_libdir} compiler options.
077c9d
077c9d
##############################################################################
077c9d
# glibc common "debuginfo-common" sub-package
077c9d
##############################################################################
077c9d
%ifarch %{debuginfocommonarches}
077c9d
077c9d
%package debuginfo-common
077c9d
Summary: Debug information for package %{name}
077c9d
AutoReqProv: no
077c9d
077c9d
%description debuginfo-common
077c9d
This package provides debug information for package %{name}.
077c9d
Debug information is useful when developing applications that use this
077c9d
package or when debugging this package.
077c9d
077c9d
%endif # %{debuginfocommonarches}
077c9d
%endif # 0%{?_enable_debug_packages}
077c9d
077c9d
%if %{with benchtests}
077c9d
%package benchtests
077c9d
Summary: Benchmarking binaries and scripts for %{name}
077c9d
%description benchtests
077c9d
This package provides built benchmark binaries and scripts to run
077c9d
microbenchmark tests on the system.
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# compat-libpthread-nonshared
077c9d
# See: https://sourceware.org/bugzilla/show_bug.cgi?id=23500
077c9d
##############################################################################
077c9d
%package -n compat-libpthread-nonshared
077c9d
Summary: Compatibility support for linking against libpthread_nonshared.a.
077c9d
077c9d
%description -n compat-libpthread-nonshared
077c9d
This package provides compatibility support for applications that expect
077c9d
libpthread_nonshared.a to exist. The support provided is in the form of
077c9d
an empty libpthread_nonshared.a that allows dynamic links to succeed.
077c9d
Such applications should be adjusted to avoid linking against
077c9d
libpthread_nonshared.a which is no longer used. The static library
077c9d
libpthread_nonshared.a is an internal implementation detail of the C
077c9d
runtime and should not be expected to exist.
077c9d
077c9d
##############################################################################
077c9d
# Prepare for the build.
077c9d
##############################################################################
077c9d
%prep
077c9d
%autosetup -n %{glibcsrcdir} -p1
077c9d
077c9d
##############################################################################
077c9d
# %%prep - Additional prep required...
077c9d
##############################################################################
077c9d
# Make benchmark scripts executable
077c9d
chmod +x benchtests/scripts/*.py scripts/pylint
077c9d
077c9d
# Remove all files generated from patching.
077c9d
find . -type f -size 0 -o -name "*.orig" -exec rm -f {} \;
077c9d
077c9d
# Ensure timestamps on configure files are current to prevent
077c9d
# regenerating them.
077c9d
touch `find . -name configure`
077c9d
077c9d
# Ensure *-kw.h files are current to prevent regenerating them.
077c9d
touch locale/programs/*-kw.h
077c9d
077c9d
# Verify that our copy of localedata/SUPPORTED matches the glibc
077c9d
# version.
077c9d
#
077c9d
# The separate file copy is used by the Lua parser above.
077c9d
# Patches or new upstream versions may change the list of locales,
077c9d
# which changes the set of langpacks we need to build.  Verify the
077c9d
# differences then update the copy of SUPPORTED.  This approach has
077c9d
# two purposes: (a) avoid spurious changes to the set of langpacks,
077c9d
# and (b) the Lua snippet can use a fully patched-up version
077c9d
# of the localedata/SUPPORTED file.
077c9d
diff -u %{SOURCE11} localedata/SUPPORTED
077c9d
077c9d
##############################################################################
077c9d
# Build glibc...
077c9d
##############################################################################
077c9d
%build
077c9d
# Log system information
077c9d
uname -a
077c9d
LD_SHOW_AUXV=1 /bin/true
077c9d
cat /proc/cpuinfo
077c9d
cat /proc/sysinfo 2>/dev/null || true
077c9d
cat /proc/meminfo
077c9d
df
077c9d
077c9d
# We build using the native system compilers.
077c9d
GCC=gcc
077c9d
GXX=g++
077c9d
077c9d
# Part of rpm_inherit_flags.  Is overridden below.
077c9d
rpm_append_flag ()
077c9d
{
077c9d
    BuildFlags="$BuildFlags $*"
077c9d
}
077c9d
077c9d
# Propagates the listed flags to rpm_append_flag if supplied by
077c9d
# redhat-rpm-config.
077c9d
BuildFlags="-O2 -g"
077c9d
rpm_inherit_flags ()
077c9d
{
077c9d
	local reference=" $* "
077c9d
	local flag
077c9d
	for flag in $RPM_OPT_FLAGS $RPM_LD_FLAGS ; do
077c9d
		if echo "$reference" | grep -q -F " $flag " ; then
077c9d
			rpm_append_flag "$flag"
077c9d
		fi
077c9d
	done
077c9d
}
077c9d
077c9d
# Propgate select compiler flags from redhat-rpm-config.  These flags
077c9d
# are target-dependent, so we use only those which are specified in
077c9d
# redhat-rpm-config.  We keep the -m32/-m32/-m64 flags to support
077c9d
# multilib builds.
077c9d
#
077c9d
# Note: For building alternative run-times, care is required to avoid
077c9d
# overriding the architecture flags which go into CC/CXX.  The flags
077c9d
# below are passed in CFLAGS.
077c9d
077c9d
rpm_inherit_flags \
077c9d
	"-Wp,-D_GLIBCXX_ASSERTIONS" \
077c9d
	"-fasynchronous-unwind-tables" \
077c9d
	"-fstack-clash-protection" \
077c9d
	"-funwind-tables" \
077c9d
	"-m31" \
077c9d
	"-m32" \
077c9d
	"-m64" \
077c9d
	"-march=i686" \
077c9d
	"-march=x86-64" \
077c9d
	"-march=z13" \
077c9d
	"-march=z14" \
077c9d
	"-march=zEC12" \
077c9d
	"-mfpmath=sse" \
077c9d
	"-msse2" \
077c9d
	"-mstackrealign" \
077c9d
	"-mtune=generic" \
077c9d
	"-mtune=z13" \
077c9d
	"-mtune=z14" \
077c9d
	"-mtune=zEC12" \
077c9d
	"-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" \
077c9d
077c9d
# Propagate additional build flags to BuildFlagsNonshared.  This is
077c9d
# very special because some of these files are part of the startup
077c9d
# code.  We essentially hope that these flags have little effect
077c9d
# there, and only specify the, for consistency, so that annobin
077c9d
# records the expected compiler flags.
077c9d
BuildFlagsNonshared=
077c9d
rpm_append_flag () {
077c9d
    BuildFlagsNonshared="$BuildFlagsNonshared $*"
077c9d
}
077c9d
rpm_inherit_flags \
077c9d
	"-Wp,-D_FORTIFY_SOURCE=2" \
077c9d
077c9d
# Special flag to enable annobin annotations for statically linked
077c9d
# assembler code.  Needs to be passed to make; not preserved by
077c9d
# configure.
077c9d
%define glibc_make_flags_as ASFLAGS="-g -Wa,--generate-missing-build-notes=yes"
077c9d
%define glibc_make_flags %{glibc_make_flags_as}
077c9d
077c9d
##############################################################################
077c9d
# %%build - Generic options.
077c9d
##############################################################################
077c9d
EnableKernel="--enable-kernel=%{enablekernel}"
077c9d
# Save the used compiler and options into the file "Gcc" for use later
077c9d
# by %%install.
077c9d
echo "$GCC" > Gcc
077c9d
077c9d
##############################################################################
077c9d
# build()
077c9d
#	Build glibc in `build-%{target}$1', passing the rest of the arguments
077c9d
#	as CFLAGS to the build (not the same as configure CFLAGS). Several
077c9d
#	global values are used to determine build flags, kernel version,
077c9d
#	system tap support, etc.
077c9d
##############################################################################
077c9d
build()
077c9d
{
077c9d
	local builddir=build-%{target}${1:+-$1}
077c9d
	${1+shift}
077c9d
	rm -rf $builddir
077c9d
	mkdir $builddir
077c9d
	pushd $builddir
077c9d
	../configure CC="$GCC" CXX="$GXX" CFLAGS="$BuildFlags $*" \
077c9d
		--prefix=%{_prefix} \
077c9d
		--with-headers=%{_prefix}/include $EnableKernel \
077c9d
		--with-nonshared-cflags="$BuildFlagsNonshared" \
077c9d
		--enable-bind-now \
077c9d
		--build=%{target} \
077c9d
		--enable-stack-protector=strong \
077c9d
%ifarch %{pie_arches}
077c9d
		--enable-static-pie \
077c9d
%endif
077c9d
		--enable-tunables \
077c9d
		--enable-systemtap \
077c9d
		${core_with_options} \
077c9d
%ifarch x86_64 %{ix86}
077c9d
	       --enable-cet \
077c9d
%endif
077c9d
%ifarch %{ix86}
077c9d
		--disable-multi-arch \
077c9d
%endif
077c9d
%if %{without werror}
077c9d
		--disable-werror \
077c9d
%endif
077c9d
		--disable-profile \
077c9d
%if %{with bootstrap}
077c9d
		--without-selinux \
077c9d
%endif
077c9d
		--disable-crypt ||
077c9d
		{ cat config.log; false; }
077c9d
077c9d
	make %{?_smp_mflags} -O -r %{glibc_make_flags}
077c9d
	popd
077c9d
}
077c9d
077c9d
# Default set of compiler options.
077c9d
build
077c9d
077c9d
%if %{buildpower9}
077c9d
(
077c9d
  GCC="$GCC -mcpu=power9 -mtune=power9"
077c9d
  GXX="$GXX -mcpu=power9 -mtune=power9"
077c9d
  core_with_options="--with-cpu=power9"
077c9d
  build power9
077c9d
)
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# Install glibc...
077c9d
##############################################################################
077c9d
%install
077c9d
077c9d
# The built glibc is installed into a subdirectory of $RPM_BUILD_ROOT.
077c9d
# For a system glibc that subdirectory is "/" (the root of the filesystem).
077c9d
# This is called a sysroot (system root) and can be changed if we have a
077c9d
# distribution that supports multiple installed glibc versions.
077c9d
%define glibc_sysroot $RPM_BUILD_ROOT
077c9d
077c9d
# Remove existing file lists.
077c9d
find . -type f -name '*.filelist' -exec rm -rf {} \;
077c9d
077c9d
# Ensure the permissions of errlist.c do not change.  When the file is
077c9d
# regenerated the Makefile sets the permissions to 444. We set it to 644
077c9d
# to match what comes out of git. The tarball of the git archive won't have
077c9d
# correct permissions because git doesn't track all of the permissions
077c9d
# accurately (see git-cache-meta if you need that). We also set it to 644 to
077c9d
# match pre-existing rpms. We do this *after* the build because the build
077c9d
# might regenerate the file and set the permissions to 444.
077c9d
chmod 644 sysdeps/gnu/errlist.c
077c9d
077c9d
# Reload compiler and build options that were used during %%build.
077c9d
GCC=`cat Gcc`
077c9d
077c9d
%ifarch riscv64
077c9d
# RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d.
077c9d
# Make these be symlinks to /lib64 or /usr/lib64 respectively.  See:
077c9d
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/DRHT5YTPK4WWVGL3GIN5BF2IKX2ODHZ3/
077c9d
for d in %{glibc_sysroot}%{_libdir} %{glibc_sysroot}/%{_lib}; do
077c9d
	mkdir -p $d
077c9d
	(cd $d && ln -sf . lp64d)
077c9d
done
077c9d
%endif
077c9d
077c9d
# Build and install:
077c9d
make -j1 install_root=%{glibc_sysroot} install -C build-%{target}
077c9d
077c9d
# If we are not building an auxiliary arch then install all of the supported
077c9d
# locales.
077c9d
%ifnarch %{auxarches}
077c9d
pushd build-%{target}
077c9d
# Do not use a parallel make here because the hardlink optimization in
077c9d
# localedef is not fully reproducible when running concurrently.
077c9d
make install_root=%{glibc_sysroot} \
077c9d
	install-locales -C ../localedata objdir=`pwd`
077c9d
popd
077c9d
%endif
077c9d
077c9d
# install_different:
077c9d
#	Install all core libraries into DESTDIR/SUBDIR. Either the file is
077c9d
#	installed as a copy or a symlink to the default install (if it is the
077c9d
#	same). The path SUBDIR_UP is the prefix used to go from
077c9d
#	DESTDIR/SUBDIR to the default installed libraries e.g.
077c9d
#	ln -s SUBDIR_UP/foo.so DESTDIR/SUBDIR/foo.so.
077c9d
#	When you call this function it is expected that you are in the root
077c9d
#	of the build directory, and that the default build directory is:
077c9d
#	"../build-%{target}" (relatively).
077c9d
#	The primary use of this function is to install alternate runtimes
077c9d
#	into the build directory and avoid duplicating this code for each
077c9d
#	runtime.
077c9d
install_different()
077c9d
{
077c9d
	local lib libbase libbaseso dlib
077c9d
	local destdir="$1"
077c9d
	local subdir="$2"
077c9d
	local subdir_up="$3"
077c9d
	local libdestdir="$destdir/$subdir"
077c9d
	# All three arguments must be non-zero paths.
077c9d
	if ! [ "$destdir" \
077c9d
	       -a "$subdir" \
077c9d
	       -a "$subdir_up" ]; then
077c9d
		echo "One of the arguments to install_different was emtpy."
077c9d
		exit 1
077c9d
	fi
077c9d
	# Create the destination directory and the multilib directory.
077c9d
	mkdir -p "$destdir"
077c9d
	mkdir -p "$libdestdir"
077c9d
	# Walk all of the libraries we installed...
077c9d
	for lib in libc math/libm nptl/libpthread rt/librt nptl_db/libthread_db
077c9d
	do
077c9d
		libbase=${lib#*/}
077c9d
		# Take care that `libbaseso' has a * that needs expanding so
077c9d
		# take care with quoting.
077c9d
		libbaseso=$(basename %{glibc_sysroot}/%{_lib}/${libbase}-*.so)
077c9d
		# Only install if different from default build library.
077c9d
		if cmp -s ${lib}.so ../build-%{target}/${lib}.so; then
077c9d
			ln -sf "$subdir_up"/$libbaseso $libdestdir/$libbaseso
077c9d
		else
077c9d
			cp -a ${lib}.so $libdestdir/$libbaseso
077c9d
		fi
077c9d
		dlib=$libdestdir/$(basename %{glibc_sysroot}/%{_lib}/${libbase}.so.*)
077c9d
		ln -sf $libbaseso $dlib
077c9d
	done
077c9d
}
077c9d
077c9d
%if %{buildpower9}
077c9d
pushd build-%{target}-power9
077c9d
install_different "$RPM_BUILD_ROOT/%{_lib}" power9 ..
077c9d
popd
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# Remove the files we don't want to distribute
077c9d
##############################################################################
077c9d
077c9d
# Remove the libNoVersion files.
077c9d
# XXX: This looks like a bug in glibc that accidentally installed these
077c9d
#      wrong files. We probably don't need this today.
077c9d
rm -f %{glibc_sysroot}/%{_libdir}/libNoVersion*
077c9d
rm -f %{glibc_sysroot}/%{_lib}/libNoVersion*
077c9d
077c9d
# Remove the old nss modules.
077c9d
rm -f %{glibc_sysroot}/%{_lib}/libnss1-*
077c9d
rm -f %{glibc_sysroot}/%{_lib}/libnss-*.so.1
077c9d
077c9d
# This statically linked binary is no longer necessary in a world where
077c9d
# the default Fedora install uses an initramfs, and further we have rpm-ostree
077c9d
# which captures the whole userspace FS tree.
077c9d
# Further, see https://github.com/projectatomic/rpm-ostree/pull/1173#issuecomment-355014583
077c9d
rm -f %{glibc_sysroot}/{usr/,}sbin/sln
077c9d
077c9d
######################################################################
077c9d
# Run ldconfig to create all the symbolic links we need
077c9d
######################################################################
077c9d
077c9d
# Note: This has to happen before creating /etc/ld.so.conf.
077c9d
077c9d
mkdir -p %{glibc_sysroot}/var/cache/ldconfig
077c9d
truncate -s 0 %{glibc_sysroot}/var/cache/ldconfig/aux-cache
077c9d
077c9d
# ldconfig is statically linked, so we can use the new version.
077c9d
%{glibc_sysroot}/sbin/ldconfig -N -r %{glibc_sysroot}
077c9d
077c9d
##############################################################################
077c9d
# Install info files
077c9d
##############################################################################
077c9d
077c9d
%if %{with docs}
077c9d
# Move the info files if glibc installed them into the wrong location.
077c9d
if [ -d %{glibc_sysroot}%{_prefix}/info -a "%{_infodir}" != "%{_prefix}/info" ]; then
077c9d
  mkdir -p %{glibc_sysroot}%{_infodir}
077c9d
  mv -f %{glibc_sysroot}%{_prefix}/info/* %{glibc_sysroot}%{_infodir}
077c9d
  rm -rf %{glibc_sysroot}%{_prefix}/info
077c9d
fi
077c9d
077c9d
# Compress all of the info files.
077c9d
gzip -9nvf %{glibc_sysroot}%{_infodir}/libc*
077c9d
077c9d
%else
077c9d
rm -f %{glibc_sysroot}%{_infodir}/dir
077c9d
rm -f %{glibc_sysroot}%{_infodir}/libc.info*
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# Create locale sub-package file lists
077c9d
##############################################################################
077c9d
077c9d
%ifnarch %{auxarches}
077c9d
olddir=`pwd`
077c9d
pushd %{glibc_sysroot}%{_prefix}/lib/locale
077c9d
rm -f locale-archive
077c9d
# Intentionally we do not pass --alias-file=, aliases will be added
077c9d
# by build-locale-archive.
077c9d
$olddir/build-%{target}/elf/ld.so \
077c9d
        --library-path $olddir/build-%{target}/ \
077c9d
        $olddir/build-%{target}/locale/localedef \
077c9d
        --prefix %{glibc_sysroot} --add-to-archive \
077c9d
        eo *_*
5f7b84
# Setup the locale-archive template for use by glibc-all-langpacks.  We
5f7b84
# copy the archive in place to keep the size of the file. Even though we
5f7b84
# mark the file with "ghost" the size is used by rpm to compute the
5f7b84
# required free space (see rhbz#1725131). We do this because there is a
5f7b84
# point in the install when build-locale-archive has copied 100% of the
5f7b84
# template into the new locale archive and so this consumes twice the
5f7b84
# amount of diskspace. Note that this doesn't account for copying
5f7b84
# existing compiled locales into the archive, this may consume even more
5f7b84
# disk space and we can't fix that issue. In upstream we have moved away
5f7b84
# from this process, removing build-locale-archive and installing a
5f7b84
# default locale-archive without modification, and leaving compiled
5f7b84
# locales as they are (without inclusion into the archive).
5f7b84
cp locale-archive{,.tmpl}
077c9d
# Create the file lists for the language specific sub-packages:
077c9d
for i in eo *_*
077c9d
do
077c9d
    lang=${i%%_*}
077c9d
    if [ ! -e langpack-${lang}.filelist ]; then
077c9d
        echo "%dir %{_prefix}/lib/locale" >> langpack-${lang}.filelist
077c9d
    fi
077c9d
    echo "%dir  %{_prefix}/lib/locale/$i" >> langpack-${lang}.filelist
077c9d
    echo "%{_prefix}/lib/locale/$i/*" >> langpack-${lang}.filelist
077c9d
done
077c9d
popd
077c9d
pushd %{glibc_sysroot}%{_prefix}/share/locale
077c9d
for i in */LC_MESSAGES/libc.mo
077c9d
do
077c9d
    locale=${i%%%%/*}
077c9d
    lang=${locale%%%%_*}
077c9d
    echo "%lang($lang) %{_prefix}/share/locale/${i}" \
077c9d
         >> %{glibc_sysroot}%{_prefix}/lib/locale/langpack-${lang}.filelist
077c9d
done
077c9d
popd
077c9d
mv  %{glibc_sysroot}%{_prefix}/lib/locale/*.filelist .
077c9d
%endif
077c9d
077c9d
##############################################################################
077c9d
# Install configuration files for services
077c9d
##############################################################################
077c9d
5f7b84
install -p -m 644 nss/nsswitch.conf %{glibc_sysroot}/etc/nsswitch.conf
077c9d
077c9d
%ifnarch %{auxarches}
077c9d
# This is for ncsd - in glibc 2.2
077c9d
install -m 644 nscd/nscd.conf %{glibc_sysroot}/etc
077c9d
mkdir -p %{glibc_sysroot}%{_tmpfilesdir}
077c9d
install -m 644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}
077c9d
mkdir -p %{glibc_sysroot}/lib/systemd/system
077c9d
install -m 644 nscd/nscd.service nscd/nscd.socket %{glibc_sysroot}/lib/systemd/system
077c9d
%endif
077c9d
077c9d
# Include ld.so.conf
077c9d
echo 'include ld.so.conf.d/*.conf' > %{glibc_sysroot}/etc/ld.so.conf
077c9d
truncate -s 0 %{glibc_sysroot}/etc/ld.so.cache
077c9d
chmod 644 %{glibc_sysroot}/etc/ld.so.conf
077c9d
mkdir -p %{glibc_sysroot}/etc/ld.so.conf.d
077c9d
%ifnarch %{auxarches}
077c9d
mkdir -p %{glibc_sysroot}/etc/sysconfig
077c9d
truncate -s 0 %{glibc_sysroot}/etc/sysconfig/nscd
077c9d
truncate -s 0 %{glibc_sysroot}/etc/gai.conf
077c9d
%endif
077c9d
077c9d
# Include %{_libdir}/gconv/gconv-modules.cache
077c9d
truncate -s 0 %{glibc_sysroot}%{_libdir}/gconv/gconv-modules.cache
077c9d
chmod 644 %{glibc_sysroot}%{_libdir}/gconv/gconv-modules.cache
077c9d
077c9d
##############################################################################
077c9d
# Install debug copies of unstripped static libraries
077c9d
# - This step must be last in order to capture any additional static
077c9d
#   archives we might have added.
077c9d
##############################################################################
077c9d
077c9d
# If we are building a debug package then copy all of the static archives
077c9d
# into the debug directory to keep them as unstripped copies.
077c9d
%if 0%{?_enable_debug_packages}
077c9d
mkdir -p %{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}
077c9d
cp -a %{glibc_sysroot}%{_libdir}/*.a \
077c9d
	%{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}/
077c9d
rm -f %{glibc_sysroot}%{_prefix}/lib/debug%{_libdir}/*_p.a
077c9d
%endif
077c9d
077c9d
# Remove any zoneinfo files; they are maintained by tzdata.
077c9d
rm -rf %{glibc_sysroot}%{_prefix}/share/zoneinfo
077c9d
077c9d
# Make sure %config files have the same timestamp across multilib packages.
077c9d
#
077c9d
# XXX: Ideally ld.so.conf should have the timestamp of the spec file, but there
077c9d
# doesn't seem to be any macro to give us that.  So we do the next best thing,
077c9d
# which is to at least keep the timestamp consistent. The choice of using
077c9d
# SOURCE0 is arbitrary.
077c9d
touch -r %{SOURCE0} %{glibc_sysroot}/etc/ld.so.conf
077c9d
touch -r sunrpc/etc.rpc %{glibc_sysroot}/etc/rpc
077c9d
077c9d
pushd build-%{target}
077c9d
$GCC -Os -g -static -o build-locale-archive %{SOURCE1} \
077c9d
	../build-%{target}/locale/locarchive.o \
077c9d
	../build-%{target}/locale/md5.o \
077c9d
	../build-%{target}/locale/record-status.o \
077c9d
	-I. -DDATADIR=\"%{_datadir}\" -DPREFIX=\"%{_prefix}\" \
077c9d
	-L../build-%{target} \
077c9d
	-B../build-%{target}/csu/ -lc -lc_nonshared
077c9d
install -m 700 build-locale-archive %{glibc_sysroot}%{_prefix}/sbin/build-locale-archive
077c9d
popd
077c9d
077c9d
# Lastly copy some additional documentation for the packages.
077c9d
rm -rf documentation
077c9d
mkdir documentation
077c9d
cp timezone/README documentation/README.timezone
077c9d
cp posix/gai.conf documentation/
077c9d
077c9d
%ifarch s390x
077c9d
# Compatibility symlink
077c9d
mkdir -p %{glibc_sysroot}/lib
077c9d
ln -sf /%{_lib}/ld64.so.1 %{glibc_sysroot}/lib/ld64.so.1
077c9d
%endif
077c9d
077c9d
%if %{with benchtests}
077c9d
# Build benchmark binaries.  Ignore the output of the benchmark runs.
077c9d
pushd build-%{target}
077c9d
make BENCH_DURATION=1 bench-build
077c9d
popd
077c9d
077c9d
# Copy over benchmark binaries.
077c9d
mkdir -p %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests
077c9d
cp $(find build-%{target}/benchtests -type f -executable) %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
077c9d
# ... and the makefile.
077c9d
for b in %{SOURCE9} %{SOURCE10}; do
077c9d
	cp $b %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
077c9d
done
077c9d
# .. and finally, the comparison scripts.
077c9d
cp benchtests/scripts/benchout.schema.json %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
077c9d
cp benchtests/scripts/compare_bench.py %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
077c9d
cp benchtests/scripts/import_bench.py %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
077c9d
cp benchtests/scripts/validate_benchout.py %{glibc_sysroot}%{_prefix}/libexec/glibc-benchtests/
077c9d
077c9d
%if 0%{?_enable_debug_packages}
077c9d
# The #line directives gperf generates do not give the proper
077c9d
# file name relative to the build directory.
077c9d
pushd locale
077c9d
ln -s programs/*.gperf .
077c9d
popd
077c9d
pushd iconv
077c9d
ln -s ../locale/programs/charmap-kw.gperf .
077c9d
popd
077c9d
077c9d
%if %{with docs}
077c9d
# Remove the `dir' info-heirarchy file which will be maintained
077c9d
# by the system as it adds info files to the install.
077c9d
rm -f %{glibc_sysroot}%{_infodir}/dir
077c9d
%endif
077c9d
077c9d
%ifnarch %{auxarches}
077c9d
mkdir -p %{glibc_sysroot}/var/{db,run}/nscd
077c9d
touch %{glibc_sysroot}/var/{db,run}/nscd/{passwd,group,hosts,services}
077c9d
touch %{glibc_sysroot}/var/run/nscd/{socket,nscd.pid}
077c9d
%endif
077c9d
077c9d
# Move libpcprofile.so and libmemusage.so into the proper library directory.
077c9d
# They can be moved without any real consequences because users would not use
077c9d
# them directly.
077c9d
mkdir -p %{glibc_sysroot}%{_libdir}
077c9d
mv -f %{glibc_sysroot}/%{_lib}/lib{pcprofile,memusage}.so \
077c9d
	%{glibc_sysroot}%{_libdir}
077c9d
077c9d
# Strip all of the installed object files.
077c9d
strip -g %{glibc_sysroot}%{_libdir}/*.o
077c9d
077c9d
###############################################################################
077c9d
# Rebuild libpthread.a using --whole-archive to ensure all of libpthread
077c9d
# is included in a static link. This prevents any problems when linking
077c9d
# statically, using parts of libpthread, and other necessary parts not
077c9d
# being included. Upstream has decided that this is the wrong approach to
077c9d
# this problem and that the full set of dependencies should be resolved
077c9d
# such that static linking works and produces the most minimally sized
077c9d
# static application possible.
077c9d
###############################################################################
077c9d
pushd %{glibc_sysroot}%{_prefix}/%{_lib}/
077c9d
$GCC -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
077c9d
rm libpthread.a
077c9d
ar rcs libpthread.a libpthread.o
077c9d
rm libpthread.o
077c9d
popd
077c9d
077c9d
# The xtrace and memusage scripts have hard-coded paths that need to be
077c9d
# translated to a correct set of paths using the $LIB token which is
077c9d
# dynamically translated by ld.so as the default lib directory.
077c9d
for i in %{glibc_sysroot}%{_prefix}/bin/{xtrace,memusage}; do
077c9d
%if %{with bootstrap}
077c9d
  test -w $i || continue
077c9d
%endif
077c9d
  sed -e 's~=/%{_lib}/libpcprofile.so~=%{_libdir}/libpcprofile.so~' \
077c9d
      -e 's~=/%{_lib}/libmemusage.so~=%{_libdir}/libmemusage.so~' \
077c9d
      -e 's~='\''/\\\$LIB/libpcprofile.so~='\''%{_prefix}/\\$LIB/libpcprofile.so~' \
077c9d
      -e 's~='\''/\\\$LIB/libmemusage.so~='\''%{_prefix}/\\$LIB/libmemusage.so~' \
077c9d
      -i $i
077c9d
done
077c9d
077c9d
##############################################################################
077c9d
# Build an empty libpthread_nonshared.a for compatiliby with applications
077c9d
# that have old linker scripts that reference this file. We ship this only
077c9d
# in compat-libpthread-nonshared sub-package.
077c9d
##############################################################################
077c9d
ar cr %{glibc_sysroot}%{_prefix}/%{_lib}/libpthread_nonshared.a
077c9d
077c9d
##############################################################################
077c9d
# Beyond this point in the install process we no longer modify the set of
077c9d
# installed files, with one exception, for auxarches we cleanup the file list
077c9d
# at the end and remove files which we don't intend to ship. We need the file
077c9d
# list to effect a proper cleanup, and so it happens last.
077c9d
##############################################################################
077c9d
077c9d
##############################################################################
077c9d
# Build the file lists used for describing the package and subpackages.
077c9d
##############################################################################
077c9d
# There are several main file lists (and many more for
077c9d
# the langpack sub-packages (langpack-${lang}.filelist)):
077c9d
# * master.filelist
077c9d
#	- Master file list from which all other lists are built.
077c9d
# * glibc.filelist
077c9d
#	- Files for the glibc packages.
077c9d
# * common.filelist
077c9d
#	- Flies for the common subpackage.
077c9d
# * utils.filelist
077c9d
#	- Files for the utils subpackage.
077c9d
# * nscd.filelist
077c9d
#	- Files for the nscd subpackage.
077c9d
# * devel.filelist
077c9d
#	- Files for the devel subpackage.
077c9d
# * headers.filelist
077c9d
#	- Files for the headers subpackage.
077c9d
# * static.filelist
077c9d
#	- Files for the static subpackage.
077c9d
# * libnsl.filelist
077c9d
#       - Files for the libnsl subpackage
077c9d
# * nss_db.filelist
077c9d
# * nss_hesiod.filelist
077c9d
#       - File lists for nss_* NSS module subpackages.
077c9d
# * nss-devel.filelist
077c9d
#       - File list with the .so symbolic links for NSS packages.
077c9d
# * compat-libpthread-nonshared.filelist.
077c9d
#	- File list for compat-libpthread-nonshared subpackage.
077c9d
# * debuginfo.filelist
077c9d
#	- Files for the glibc debuginfo package.
077c9d
# * debuginfocommon.filelist
077c9d
#	- Files for the glibc common debuginfo package.
077c9d
#
077c9d
077c9d
# Create the main file lists. This way we can append to any one of them later
077c9d
# wihtout having to create it. Note these are removed at the start of the
077c9d
# install phase.
077c9d
touch master.filelist
077c9d
touch glibc.filelist
077c9d
touch common.filelist
077c9d
touch utils.filelist
077c9d
touch nscd.filelist
077c9d
touch devel.filelist
077c9d
touch headers.filelist
077c9d
touch static.filelist
077c9d
touch libnsl.filelist
077c9d
touch nss_db.filelist
077c9d
touch nss_hesiod.filelist
077c9d
touch nss-devel.filelist
077c9d
touch compat-libpthread-nonshared.filelist
077c9d
touch debuginfo.filelist
077c9d
touch debuginfocommon.filelist
077c9d
077c9d
###############################################################################
077c9d
# Master file list, excluding a few things.
077c9d
###############################################################################
077c9d
{
077c9d
  # List all files or links that we have created during install.
077c9d
  # Files with 'etc' are configuration files, likewise 'gconv-modules'
077c9d
  # and 'gconv-modules.cache' are caches, and we exclude them.
077c9d
  find %{glibc_sysroot} \( -type f -o -type l \) \
077c9d
       \( \
077c9d
	 -name etc -printf "%%%%config " -o \
077c9d
	 -name gconv-modules \
077c9d
	 -printf "%%%%verify(not md5 size mtime) %%%%config(noreplace) " -o \
077c9d
	 -name gconv-modules.cache \
077c9d
	 -printf "%%%%verify(not md5 size mtime) " \
077c9d
	 , \
077c9d
	 ! -path "*/lib/debug/*" -printf "/%%P\n" \)
077c9d
  # List all directories with a %%dir prefix.  We omit the info directory and
077c9d
  # all directories in (and including) /usr/share/locale.
077c9d
  find %{glibc_sysroot} -type d \
077c9d
       \( -path '*%{_prefix}/share/locale' -prune -o \
077c9d
       \( -path '*%{_prefix}/share/*' \
077c9d
%if %{with docs}
077c9d
	! -path '*%{_infodir}' -o \
077c9d
%endif
077c9d
	  -path "*%{_prefix}/include/*" \
077c9d
       \) -printf "%%%%dir /%%P\n" \)
077c9d
} | {
077c9d
  # Also remove the *.mo entries.  We will add them to the
077c9d
  # language specific sub-packages.
077c9d
  # libnss_ files go into subpackages related to NSS modules.
077c9d
  # and .*/share/i18n/charmaps/.*), they go into the sub-package
077c9d
  # "locale-source":
077c9d
  sed -e '\,.*/share/locale/\([^/_]\+\).*/LC_MESSAGES/.*\.mo,d' \
077c9d
      -e '\,.*/share/i18n/locales/.*,d' \
077c9d
      -e '\,.*/share/i18n/charmaps/.*,d' \
077c9d
      -e '\,.*/etc/\(localtime\|nsswitch.conf\|ld\.so\.conf\|ld\.so\.cache\|default\|rpc\|gai\.conf\),d' \
077c9d
      -e '\,.*/%{_libdir}/lib\(pcprofile\|memusage\)\.so,d' \
077c9d
      -e '\,.*/bin/\(memusage\|mtrace\|xtrace\|pcprofiledump\),d'
077c9d
} | sort > master.filelist
077c9d
077c9d
# The master file list is now used by each subpackage to list their own
077c9d
# files. We go through each package and subpackage now and create their lists.
077c9d
# Each subpackage picks the files from the master list that they need.
077c9d
# The order of the subpackage list generation does not matter.
077c9d
077c9d
# Make the master file list read-only after this point to avoid accidental
077c9d
# modification.
077c9d
chmod 0444 master.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc
077c9d
###############################################################################
077c9d
077c9d
# Add all files with the following exceptions:
077c9d
# - The info files '%{_infodir}/dir'
077c9d
# - The partial (lib*_p.a) static libraries, include files.
077c9d
# - The static files, objects, unversioned DSOs, and nscd.
077c9d
# - The bin, locale, some sbin, and share.
077c9d
#   - We want iconvconfig in the main package and we do this by using
077c9d
#     a double negation of -v and [^i] so it removes all files in
077c9d
#     sbin *but* iconvconfig.
077c9d
# - All the libnss files (we add back the ones we want later).
077c9d
# - All bench test binaries.
077c9d
# - The aux-cache, since it's handled specially in the files section.
077c9d
# - The build-locale-archive binary since it's in the common package.
077c9d
cat master.filelist \
077c9d
	| grep -v \
077c9d
	-e '%{_infodir}' \
077c9d
	-e '%{_libdir}/lib.*_p.a' \
077c9d
	-e '%{_prefix}/include' \
077c9d
	-e '%{_libdir}/lib.*\.a' \
077c9d
        -e '%{_libdir}/.*\.o' \
077c9d
	-e '%{_libdir}/lib.*\.so' \
077c9d
	-e 'nscd' \
077c9d
	-e '%{_prefix}/bin' \
077c9d
	-e '%{_prefix}/lib/locale' \
077c9d
	-e '%{_prefix}/sbin/[^i]' \
077c9d
	-e '%{_prefix}/share' \
077c9d
	-e '/var/db/Makefile' \
077c9d
	-e '/libnss_.*\.so[0-9.]*$' \
077c9d
	-e '/libnsl' \
077c9d
	-e 'glibc-benchtests' \
077c9d
	-e 'aux-cache' \
077c9d
	-e 'build-locale-archive' \
077c9d
	> glibc.filelist
077c9d
077c9d
# Add specific files:
077c9d
# - The nss_files, nss_compat, and nss_db files.
077c9d
# - The libmemusage.so and libpcprofile.so used by utils.
077c9d
for module in compat files dns; do
077c9d
    cat master.filelist \
077c9d
	| grep -E \
077c9d
	-e "/libnss_$module(\.so\.[0-9.]+|-[0-9.]+\.so)$" \
077c9d
	>> glibc.filelist
077c9d
done
077c9d
grep -e "libmemusage.so" -e "libpcprofile.so" master.filelist >> glibc.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc-devel
077c9d
###############################################################################
077c9d
077c9d
%if %{with docs}
077c9d
# Put the info files into the devel file list, but exclude the generated dir.
077c9d
grep '%{_infodir}' master.filelist | grep -v '%{_infodir}/dir' > devel.filelist
077c9d
%endif
077c9d
077c9d
# Put some static files into the devel package.
077c9d
grep '%{_libdir}/lib.*\.a' master.filelist \
077c9d
  | grep '/lib\(\(c\|pthread\|nldbl\|mvec\)_nonshared\|g\|ieee\|mcheck\)\.a$' \
077c9d
  >> devel.filelist
077c9d
077c9d
# Put all of the object files and *.so (not the versioned ones) into the
077c9d
# devel package.
077c9d
grep '%{_libdir}/.*\.o' < master.filelist >> devel.filelist
077c9d
grep '%{_libdir}/lib.*\.so' < master.filelist >> devel.filelist
077c9d
# The exceptions are:
077c9d
# - libmemusage.so and libpcprofile.so in glibc used by utils.
077c9d
# - libnss_*.so which are in nss-devel.
077c9d
sed -i -e '\,libmemusage.so,d' \
077c9d
	-e '\,libpcprofile.so,d' \
077c9d
	-e '\,/libnss_[a-z]*\.so$,d' \
077c9d
	devel.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc-headers
077c9d
###############################################################################
077c9d
077c9d
# The glibc-headers package includes only common files which are identical
077c9d
# across all multilib packages. We must keep gnu/stubs.h and gnu/lib-names.h
077c9d
# in the glibc-headers package, but the -32, -64, -64-v1, and -64-v2 versions
077c9d
# go into the development packages.
077c9d
grep '%{_prefix}/include/gnu/stubs-.*\.h$' < master.filelist >> devel.filelist || :
077c9d
grep '%{_prefix}/include/gnu/lib-names-.*\.h$' < master.filelist >> devel.filelist || :
077c9d
# Put the include files into headers file list.
077c9d
grep '%{_prefix}/include' < master.filelist \
077c9d
  | egrep -v '%{_prefix}/include/gnu/stubs-.*\.h$' \
077c9d
  | egrep -v '%{_prefix}/include/gnu/lib-names-.*\.h$' \
077c9d
  > headers.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc-static
077c9d
###############################################################################
077c9d
077c9d
# Put the rest of the static files into the static package.
077c9d
grep '%{_libdir}/lib.*\.a' < master.filelist \
077c9d
  | grep -v '/lib\(\(c\|pthread\|nldbl\|mvec\)_nonshared\|g\|ieee\|mcheck\)\.a$' \
077c9d
  > static.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc-common
077c9d
###############################################################################
077c9d
077c9d
# All of the bin and certain sbin files go into the common package except
077c9d
# iconvconfig which needs to go in glibc. Likewise nscd is excluded because
077c9d
# it goes in nscd. The iconvconfig binary is kept in the main glibc package
077c9d
# because we use it in the post-install scriptlet to rebuild the
077c9d
# gconv-modules.cache.
077c9d
grep '%{_prefix}/bin' master.filelist >> common.filelist
077c9d
grep '%{_prefix}/sbin' master.filelist \
077c9d
	| grep -v '%{_prefix}/sbin/iconvconfig' \
077c9d
	| grep -v 'nscd' >> common.filelist
077c9d
# All of the files under share go into the common package since they should be
077c9d
# multilib-independent.
077c9d
# Exceptions:
077c9d
# - The actual share directory, not owned by us.
077c9d
# - The info files which go in devel, and the info directory.
077c9d
grep '%{_prefix}/share' master.filelist \
077c9d
	| grep -v \
077c9d
	-e '%{_prefix}/share/info/libc.info.*' \
077c9d
	-e '%%dir %{prefix}/share/info' \
077c9d
	-e '%%dir %{prefix}/share' \
077c9d
	>> common.filelist
077c9d
077c9d
# Add the binary to build locales to the common subpackage.
077c9d
echo '%{_prefix}/sbin/build-locale-archive' >> common.filelist
077c9d
077c9d
###############################################################################
077c9d
# nscd
077c9d
###############################################################################
077c9d
077c9d
# The nscd binary must go into the nscd subpackage.
077c9d
echo '%{_prefix}/sbin/nscd' > nscd.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc-utils
077c9d
###############################################################################
077c9d
077c9d
# Add the utils scripts and programs to the utils subpackage.
077c9d
cat > utils.filelist <
077c9d
%if %{without bootstrap}
077c9d
%{_prefix}/bin/memusage
077c9d
%{_prefix}/bin/memusagestat
077c9d
%endif
077c9d
%{_prefix}/bin/mtrace
077c9d
%{_prefix}/bin/pcprofiledump
077c9d
%{_prefix}/bin/xtrace
077c9d
EOF
077c9d
077c9d
###############################################################################
077c9d
# nss_db, nss_hesiod
077c9d
###############################################################################
077c9d
077c9d
# Move the NSS-related files to the NSS subpackages.  Be careful not
077c9d
# to pick up .debug files, and the -devel symbolic links.
077c9d
for module in db hesiod; do
077c9d
  grep -E "/libnss_$module(\.so\.[0-9.]+|-[0-9.]+\.so)$" \
077c9d
    master.filelist > nss_$module.filelist
077c9d
done
077c9d
077c9d
###############################################################################
077c9d
# nss-devel
077c9d
###############################################################################
077c9d
077c9d
# Symlinks go into the nss-devel package (instead of the main devel
077c9d
# package).
077c9d
grep '/libnss_[a-z]*\.so$' master.filelist > nss-devel.filelist
077c9d
077c9d
###############################################################################
077c9d
# libnsl
077c9d
###############################################################################
077c9d
077c9d
# Prepare the libnsl-related file lists.
077c9d
grep '/libnsl-[0-9.]*.so$' master.filelist > libnsl.filelist
077c9d
test $(wc -l < libnsl.filelist) -eq 1
077c9d
077c9d
###############################################################################
077c9d
# glibc-benchtests
077c9d
###############################################################################
077c9d
077c9d
# List of benchmarks.
077c9d
find build-%{target}/benchtests -type f -executable | while read b; do
077c9d
	echo "%{_prefix}/libexec/glibc-benchtests/$(basename $b)"
077c9d
done >> benchtests.filelist
077c9d
# ... and the makefile.
077c9d
for b in %{SOURCE9} %{SOURCE10}; do
077c9d
	echo "%{_prefix}/libexec/glibc-benchtests/$(basename $b)" >> benchtests.filelist
077c9d
done
077c9d
# ... and finally, the comparison scripts.
077c9d
echo "%{_prefix}/libexec/glibc-benchtests/benchout.schema.json" >> benchtests.filelist
077c9d
echo "%{_prefix}/libexec/glibc-benchtests/compare_bench.py*" >> benchtests.filelist
077c9d
echo "%{_prefix}/libexec/glibc-benchtests/import_bench.py*" >> benchtests.filelist
077c9d
echo "%{_prefix}/libexec/glibc-benchtests/validate_benchout.py*" >> benchtests.filelist
077c9d
%endif
077c9d
077c9d
###############################################################################
077c9d
# compat-libpthread-nonshared
077c9d
###############################################################################
077c9d
echo "%{_libdir}/libpthread_nonshared.a" >> compat-libpthread-nonshared.filelist
077c9d
077c9d
###############################################################################
077c9d
# glibc-debuginfocommon, and glibc-debuginfo
077c9d
###############################################################################
077c9d
077c9d
find_debuginfo_args='--strict-build-id -g -i'
077c9d
%ifarch %{debuginfocommonarches}
077c9d
find_debuginfo_args="$find_debuginfo_args \
077c9d
	-l common.filelist \
077c9d
	-l utils.filelist \
077c9d
	-l nscd.filelist \
077c9d
	-p '.*/(sbin|libexec)/.*' \
077c9d
	-o debuginfocommon.filelist \
077c9d
	-l nss_db.filelist -l nss_hesiod.filelist \
077c9d
	-l libnsl.filelist -l glibc.filelist \
077c9d
%if %{with benchtests}
077c9d
	-l benchtests.filelist
077c9d
%endif
077c9d
	"
077c9d
%endif
077c9d
077c9d
/usr/lib/rpm/find-debuginfo.sh $find_debuginfo_args -o debuginfo.filelist
077c9d
077c9d
# List all of the *.a archives in the debug directory.
077c9d
list_debug_archives()
077c9d
{
077c9d
	local dir=%{_prefix}/lib/debug%{_libdir}
077c9d
	find %{glibc_sysroot}$dir -name "*.a" -printf "$dir/%%P\n"
077c9d
}
077c9d
077c9d
%ifarch %{debuginfocommonarches}
077c9d
077c9d
# Remove the source files from the common package debuginfo.
077c9d
sed -i '\#^%{glibc_sysroot}%{_prefix}/src/debug/#d' debuginfocommon.filelist
077c9d
077c9d
# Create a list of all of the source files we copied to the debug directory.
077c9d
find %{glibc_sysroot}%{_prefix}/src/debug \
077c9d
     \( -type d -printf '%%%%dir ' \) , \
077c9d
     -printf '%{_prefix}/src/debug/%%P\n' > debuginfocommon.sources
077c9d
077c9d
%ifarch %{biarcharches}
077c9d
077c9d
# Add the source files to the core debuginfo package.
077c9d
cat debuginfocommon.sources >> debuginfo.filelist
077c9d
077c9d
%else
077c9d
077c9d
%ifarch %{ix86}
077c9d
%define basearch i686
077c9d
%endif
077c9d
%ifarch sparc sparcv9
077c9d
%define basearch sparc
077c9d
%endif
077c9d
077c9d
# The auxarches get only these few source files.
077c9d
auxarches_debugsources=\
077c9d
'/(generic|linux|%{basearch}|nptl(_db)?)/|/%{glibcsrcdir}/build|/dl-osinfo\.h'
077c9d
077c9d
# Place the source files into the core debuginfo pakcage.
077c9d
egrep "$auxarches_debugsources" debuginfocommon.sources >> debuginfo.filelist
077c9d
077c9d
# Remove the source files from the common debuginfo package.
077c9d
egrep -v "$auxarches_debugsources" \
077c9d
  debuginfocommon.sources >> debuginfocommon.filelist
077c9d
077c9d
%endif # %{biarcharches}
077c9d
077c9d
# Add the list of *.a archives in the debug directory to
077c9d
# the common debuginfo package.
077c9d
list_debug_archives >> debuginfocommon.filelist
077c9d
077c9d
%endif # %{debuginfocommonarches}
077c9d
077c9d
# Remove some common directories from the common package debuginfo so that we
077c9d
# don't end up owning them.
077c9d
exclude_common_dirs()
077c9d
{
077c9d
	exclude_dirs="%{_prefix}/src/debug"
077c9d
	exclude_dirs="$exclude_dirs $(echo %{_prefix}/lib/debug{,/%{_lib},/bin,/sbin})"
077c9d
	exclude_dirs="$exclude_dirs $(echo %{_prefix}/lib/debug%{_prefix}{,/%{_lib},/libexec,/bin,/sbin})"
077c9d
077c9d
	for d in $(echo $exclude_dirs | sed 's/ /\n/g'); do
077c9d
		sed -i "\|^%%dir $d/\?$|d" $1
077c9d
	done
077c9d
}
077c9d
077c9d
%ifarch %{debuginfocommonarches}
077c9d
exclude_common_dirs debuginfocommon.filelist
077c9d
%endif
077c9d
exclude_common_dirs debuginfo.filelist
077c9d
077c9d
%endif # 0%{?_enable_debug_packages}
077c9d
077c9d
##############################################################################
077c9d
# Delete files that we do not intended to ship with the auxarch.
077c9d
# This is the only place where we touch the installed files after generating
077c9d
# the file lists.
077c9d
##############################################################################
077c9d
%ifarch %{auxarches}
077c9d
echo Cutting down the list of unpackaged files
077c9d
sed -e '/%%dir/d;/%%config/d;/%%verify/d;s/%%lang([^)]*) //;s#^/*##' \
077c9d
	common.filelist devel.filelist static.filelist headers.filelist \
077c9d
	utils.filelist nscd.filelist \
077c9d
%ifarch %{debuginfocommonarches}
077c9d
	debuginfocommon.filelist \
077c9d
%endif
077c9d
	| (cd %{glibc_sysroot}; xargs --no-run-if-empty rm -f 2> /dev/null || :)
077c9d
%endif # %{auxarches}
077c9d
077c9d
##############################################################################
077c9d
# Run the glibc testsuite
077c9d
##############################################################################
077c9d
%check
077c9d
%if %{with testsuite}
077c9d
077c9d
# Run the glibc tests. If any tests fail to build we exit %check with
077c9d
# an error, otherwise we print the test failure list and the failed
077c9d
# test output and continue.  Write to standard error to avoid
077c9d
# synchronization issues with make and shell tracing output if
077c9d
# standard output and standard error are different pipes.
077c9d
run_tests () {
077c9d
  # This hides a test suite build failure, which should be fatal.  We
077c9d
  # check "Summary of test results:" below to verify that all tests
077c9d
  # were built and run.
077c9d
  make %{?_smp_mflags} -O check |& tee rpmbuild.check.log >&2
077c9d
  test -n tests.sum
077c9d
  if ! grep -q '^Summary of test results:$' rpmbuild.check.log ; then
077c9d
    echo "FAIL: test suite build of target: $(basename "$(pwd)")" >& 2
077c9d
    exit 1
077c9d
  fi
077c9d
  set +x
077c9d
  grep -v ^PASS: tests.sum > rpmbuild.tests.sum.not-passing || true
077c9d
  if test -n rpmbuild.tests.sum.not-passing ; then
077c9d
    echo ===================FAILED TESTS===================== >&2
077c9d
    echo "Target: $(basename "$(pwd)")" >& 2
077c9d
    cat rpmbuild.tests.sum.not-passing >&2
077c9d
    while read failed_code failed_test ; do
077c9d
      for suffix in out test-result ; do
077c9d
        if test -e "$failed_test.$suffix"; then
077c9d
	  echo >&2
077c9d
          echo "=====$failed_code $failed_test.$suffix=====" >&2
077c9d
          cat -- "$failed_test.$suffix" >&2
077c9d
	  echo >&2
077c9d
        fi
077c9d
      done
077c9d
    done 
077c9d
  fi
077c9d
077c9d
  # Unconditonally dump differences in the system call list.
077c9d
  echo "* System call consistency checks:" >&2
077c9d
  cat misc/tst-syscall-list.out >&2
077c9d
  set -x
077c9d
}
077c9d
077c9d
# Increase timeouts
077c9d
export TIMEOUTFACTOR=16
077c9d
parent=$$
077c9d
echo ====================TESTING=========================
077c9d
077c9d
# Default libraries.
077c9d
pushd build-%{target}
077c9d
run_tests
077c9d
popd
077c9d
077c9d
%if %{buildpower9}
077c9d
echo ====================TESTING -mcpu=power9=============
077c9d
pushd build-%{target}-power9
077c9d
run_tests
077c9d
popd
077c9d
%endif
077c9d
077c9d
077c9d
077c9d
echo ====================TESTING END=====================
077c9d
PLTCMD='/^Relocation section .*\(\.rela\?\.plt\|\.rela\.IA_64\.pltoff\)/,/^$/p'
077c9d
echo ====================PLT RELOCS LD.SO================
077c9d
readelf -Wr %{glibc_sysroot}/%{_lib}/ld-*.so | sed -n -e "$PLTCMD"
077c9d
echo ====================PLT RELOCS LIBC.SO==============
077c9d
readelf -Wr %{glibc_sysroot}/%{_lib}/libc-*.so | sed -n -e "$PLTCMD"
077c9d
echo ====================PLT RELOCS END==================
077c9d
077c9d
# Finally, check if valgrind runs with the new glibc.
077c9d
# We want to fail building if valgrind is not able to run with this glibc so
077c9d
# that we can then coordinate with valgrind to get it fixed before we update
077c9d
# glibc.
077c9d
pushd build-%{target}
077c9d
077c9d
# Show the auxiliary vector as seen by the new library
077c9d
# (even if we do not perform the valgrind test).
077c9d
LD_SHOW_AUXV=1 elf/ld.so --library-path .:elf:nptl:dlfcn /bin/true
077c9d
077c9d
%if %{with valgrind}
077c9d
elf/ld.so --library-path .:elf:nptl:dlfcn \
077c9d
	/usr/bin/valgrind --error-exitcode=1 \
077c9d
	elf/ld.so --library-path .:elf:nptl:dlfcn /usr/bin/true
077c9d
%endif
077c9d
popd
077c9d
077c9d
%endif # %{run_glibc_tests}
077c9d
077c9d
077c9d
%pre -p <lua>
077c9d
-- Check that the running kernel is new enough
077c9d
required = '%{enablekernel}'
077c9d
rel = posix.uname("%r")
077c9d
if rpm.vercmp(rel, required) < 0 then
077c9d
  error("FATAL: kernel too old", 0)
077c9d
end
077c9d
077c9d
%post -p <lua>
077c9d
-- We use lua's posix.exec because there may be no shell that we can
077c9d
-- run during glibc upgrade.
077c9d
function post_exec (program, ...)
077c9d
  local pid = posix.fork ()
077c9d
  if pid == 0 then
077c9d
    assert (posix.exec (program, ...))
077c9d
  elseif pid > 0 then
077c9d
    posix.wait (pid)
077c9d
  end
077c9d
end
077c9d
077c9d
-- (1) Remove multilib libraries from previous installs.
077c9d
-- In order to support in-place upgrades, we must immediately remove
077c9d
-- obsolete platform directories after installing a new glibc
077c9d
-- version.  RPM only deletes files removed by updates near the end
077c9d
-- of the transaction.  If we did not remove the obsolete platform
077c9d
-- directories here, they may be preferred by the dynamic linker
077c9d
-- during the execution of subsequent RPM scriptlets, likely
077c9d
-- resulting in process startup failures.
077c9d
077c9d
-- Full set of libraries glibc may install.
077c9d
install_libs = { "anl", "BrokenLocale", "c", "dl", "m", "mvec",
077c9d
		 "nss_compat", "nss_db", "nss_dns", "nss_files",
077c9d
		 "nss_hesiod", "pthread", "resolv", "rt", "SegFault",
077c9d
		 "thread_db", "util" }
077c9d
077c9d
-- We are going to remove these libraries. Generally speaking we remove
077c9d
-- all core libraries in the multilib directory.
077c9d
-- We employ a tight match where X.Y is in [2.0,9.9*], so we would
077c9d
-- match "libc-2.0.so" and so on up to "libc-9.9*".
077c9d
remove_regexps = {}
077c9d
for i = 1, #install_libs do
077c9d
  remove_regexps[i] = ("lib" .. install_libs[i]
077c9d
                       .. "%%-[2-9]%%.[0-9]+%%.so$")
077c9d
end
077c9d
077c9d
-- Two exceptions:
077c9d
remove_regexps[#install_libs + 1] = "libthread_db%%-1%%.0%%.so"
077c9d
remove_regexps[#install_libs + 2] = "libSegFault%%.so"
077c9d
077c9d
-- We are going to search these directories.
077c9d
local remove_dirs = { "%{_libdir}/i686",
077c9d
		      "%{_libdir}/i686/nosegneg",
077c9d
		      "%{_libdir}/power6",
077c9d
		      "%{_libdir}/power7",
077c9d
		      "%{_libdir}/power8" }
077c9d
077c9d
-- Walk all the directories with files we need to remove...
077c9d
for _, rdir in ipairs (remove_dirs) do
077c9d
  if posix.access (rdir) then
077c9d
    -- If the directory exists we look at all the files...
077c9d
    local remove_files = posix.files (rdir)
077c9d
    for rfile in remove_files do
077c9d
      for _, rregexp in ipairs (remove_regexps) do
077c9d
	-- Does it match the regexp?
077c9d
	local dso = string.match (rfile, rregexp)
077c9d
        if (dso ~= nil) then
077c9d
	  -- Removing file...
077c9d
	  os.remove (rdir .. '/' .. rfile)
077c9d
	end
077c9d
      end
077c9d
    end
077c9d
  end
077c9d
end
077c9d
077c9d
-- (2) Update /etc/ld.so.conf
077c9d
-- Next we update /etc/ld.so.conf to ensure that it starts with
077c9d
-- a literal "include ld.so.conf.d/*.conf".
077c9d
077c9d
local ldsoconf = "/etc/ld.so.conf"
077c9d
local ldsoconf_tmp = "/etc/glibc_post_upgrade.ld.so.conf"
077c9d
077c9d
if posix.access (ldsoconf) then
077c9d
077c9d
  -- We must have a "include ld.so.conf.d/*.conf" line.
077c9d
  local have_include = false
077c9d
  for line in io.lines (ldsoconf) do
077c9d
    -- This must match, and we don't ignore whitespace.
077c9d
    if string.match (line, "^include ld.so.conf.d/%%*%%.conf$") ~= nil then
077c9d
      have_include = true
077c9d
    end
077c9d
  end
077c9d
077c9d
  if not have_include then
077c9d
    -- Insert "include ld.so.conf.d/*.conf" line at the start of the
077c9d
    -- file. We only support one of these post upgrades running at
077c9d
    -- a time (temporary file name is fixed).
077c9d
    local tmp_fd = io.open (ldsoconf_tmp, "w")
077c9d
    if tmp_fd ~= nil then
077c9d
      tmp_fd:write ("include ld.so.conf.d/*.conf\n")
077c9d
      for line in io.lines (ldsoconf) do
077c9d
        tmp_fd:write (line .. "\n")
077c9d
      end
077c9d
      tmp_fd:close ()
077c9d
      local res = os.rename (ldsoconf_tmp, ldsoconf)
077c9d
      if res == nil then
077c9d
        io.stdout:write ("Error: Unable to update configuration file (rename).\n")
077c9d
      end
077c9d
    else
077c9d
      io.stdout:write ("Error: Unable to update configuration file (open).\n")
077c9d
    end
077c9d
  end
077c9d
end
077c9d
077c9d
-- (3) Rebuild ld.so.cache early.
077c9d
-- If the format of the cache changes then we need to rebuild
077c9d
-- the cache early to avoid any problems running binaries with
077c9d
-- the new glibc.
077c9d
077c9d
-- Note: We use _prefix because Fedora's UsrMove says so.
077c9d
post_exec ("%{_prefix}/sbin/ldconfig")
077c9d
077c9d
-- (4) Update gconv modules cache.
077c9d
-- If the /usr/lib/gconv/gconv-modules.cache exists, then update it
077c9d
-- with the latest set of modules that were just installed.
077c9d
-- We assume that the cache is in _libdir/gconv and called
077c9d
-- "gconv-modules.cache".
077c9d
077c9d
local iconv_dir = "%{_libdir}/gconv"
077c9d
local iconv_cache = iconv_dir .. "/gconv-modules.cache"
077c9d
if (posix.utime (iconv_cache) == 0) then
077c9d
  post_exec ("%{_prefix}/sbin/iconvconfig",
077c9d
	     "-o", iconv_cache,
077c9d
	     "--nostdlib",
077c9d
	     iconv_dir)
077c9d
else
077c9d
  io.stdout:write ("Error: Missing " .. iconv_cache .. " file.\n")
077c9d
end
077c9d
077c9d
%posttrans all-langpacks -e -p <lua>
077c9d
-- If at the end of the transaction we are still installed
077c9d
-- (have a template of non-zero size), then we rebuild the
077c9d
-- locale cache (locale-archive) from the pre-populated
077c9d
-- locale cache (locale-archive.tmpl) i.e. template.
077c9d
if posix.stat("%{_prefix}/lib/locale/locale-archive.tmpl", "size") > 0 then
077c9d
  pid = posix.fork()
077c9d
  if pid == 0 then
077c9d
    posix.exec("%{_prefix}/sbin/build-locale-archive", "--install-langs", "%%{_install_langs}")
077c9d
  elseif pid > 0 then
077c9d
    posix.wait(pid)
077c9d
  end
077c9d
end
077c9d
077c9d
%postun all-langpacks -p <lua>
077c9d
-- In the postun we remove the locale cache if unstalling.
077c9d
-- (build-locale-archive will delete the archive during an upgrade.)
077c9d
if arg[2] == 0 then
077c9d
  os.remove("%{_prefix}/lib/locale/locale-archive")
077c9d
end
077c9d
077c9d
%if %{with docs}
077c9d
%post devel
077c9d
/sbin/install-info %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || :
077c9d
%endif
077c9d
077c9d
%pre headers
077c9d
# this used to be a link and it is causing nightmares now
077c9d
if [ -L %{_prefix}/include/scsi ] ; then
077c9d
  rm -f %{_prefix}/include/scsi
077c9d
fi
077c9d
077c9d
%if %{with docs}
077c9d
%preun devel
077c9d
if [ "$1" = 0 ]; then
077c9d
  /sbin/install-info --delete %{_infodir}/libc.info.gz %{_infodir}/dir > /dev/null 2>&1 || :
077c9d
fi
077c9d
%endif
077c9d
077c9d
%pre -n nscd
077c9d
getent group nscd >/dev/null || /usr/sbin/groupadd -g 28 -r nscd
077c9d
getent passwd nscd >/dev/null ||
077c9d
  /usr/sbin/useradd -M -o -r -d / -s /sbin/nologin \
077c9d
		    -c "NSCD Daemon" -u 28 -g nscd nscd
077c9d
077c9d
%post -n nscd
077c9d
%systemd_post nscd.service
077c9d
077c9d
%preun -n nscd
077c9d
%systemd_preun nscd.service
077c9d
077c9d
%postun -n nscd
077c9d
if test $1 = 0; then
077c9d
  /usr/sbin/userdel nscd > /dev/null 2>&1 || :
077c9d
fi
077c9d
%systemd_postun_with_restart nscd.service
077c9d
077c9d
%files -f glibc.filelist
077c9d
%dir %{_prefix}/%{_lib}/audit
077c9d
%if %{buildpower9}
077c9d
%dir /%{_lib}/power9
077c9d
%endif
077c9d
%ifarch s390x
077c9d
/lib/ld64.so.1
077c9d
%endif
077c9d
%verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
077c9d
%verify(not md5 size mtime) %config(noreplace) /etc/ld.so.conf
077c9d
%verify(not md5 size mtime) %config(noreplace) /etc/rpc
077c9d
%dir /etc/ld.so.conf.d
077c9d
%dir %{_prefix}/libexec/getconf
077c9d
%dir %{_libdir}/gconv
077c9d
%dir %attr(0700,root,root) /var/cache/ldconfig
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/cache/ldconfig/aux-cache
077c9d
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/ld.so.cache
077c9d
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/gai.conf
077c9d
%doc README NEWS INSTALL elf/rtld-debugger-interface.txt
077c9d
# If rpm doesn't support %license, then use %doc instead.
077c9d
%{!?_licensedir:%global license %%doc}
077c9d
%license COPYING COPYING.LIB LICENSES
077c9d
077c9d
%ifnarch %{auxarches}
077c9d
%files -f common.filelist common
077c9d
%dir %{_prefix}/lib/locale
077c9d
%dir %{_prefix}/lib/locale/C.utf8
077c9d
%{_prefix}/lib/locale/C.utf8/*
077c9d
%doc documentation/README.timezone
077c9d
%doc documentation/gai.conf
077c9d
077c9d
%files all-langpacks
077c9d
%attr(0644,root,root) %verify(not md5 size mtime) %{_prefix}/lib/locale/locale-archive.tmpl
077c9d
%attr(0644,root,root) %verify(not md5 size mtime mode) %ghost %{_prefix}/lib/locale/locale-archive
077c9d
077c9d
%files locale-source
077c9d
%dir %{_prefix}/share/i18n/locales
077c9d
%{_prefix}/share/i18n/locales/*
077c9d
%dir %{_prefix}/share/i18n/charmaps
077c9d
%{_prefix}/share/i18n/charmaps/*
077c9d
077c9d
%files -f devel.filelist devel
077c9d
077c9d
%files -f static.filelist static
077c9d
077c9d
%files -f headers.filelist headers
077c9d
077c9d
%files -f utils.filelist utils
077c9d
077c9d
%files -f nscd.filelist -n nscd
077c9d
%config(noreplace) /etc/nscd.conf
077c9d
%dir %attr(0755,root,root) /var/run/nscd
077c9d
%dir %attr(0755,root,root) /var/db/nscd
077c9d
/lib/systemd/system/nscd.service
077c9d
/lib/systemd/system/nscd.socket
077c9d
%{_tmpfilesdir}/nscd.conf
077c9d
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/nscd.pid
077c9d
%attr(0666,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/socket
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/passwd
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/group
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/hosts
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/services
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/passwd
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/group
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/hosts
077c9d
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/services
077c9d
%ghost %config(missingok,noreplace) /etc/sysconfig/nscd
077c9d
%endif
077c9d
077c9d
%files -f nss_db.filelist -n nss_db
077c9d
/var/db/Makefile
077c9d
%files -f nss_hesiod.filelist -n nss_hesiod
077c9d
%doc hesiod/README.hesiod
077c9d
%files -f nss-devel.filelist nss-devel
077c9d
077c9d
%files -f libnsl.filelist -n libnsl
077c9d
/%{_lib}/libnsl.so.1
077c9d
077c9d
%if 0%{?_enable_debug_packages}
077c9d
%files debuginfo -f debuginfo.filelist
077c9d
%ifarch %{debuginfocommonarches}
077c9d
%ifnarch %{auxarches}
077c9d
%files debuginfo-common -f debuginfocommon.filelist
077c9d
%endif
077c9d
%endif
077c9d
%endif
077c9d
077c9d
%if %{with benchtests}
077c9d
%files benchtests -f benchtests.filelist
077c9d
%endif
077c9d
077c9d
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
077c9d
077c9d
%changelog
5f7b84
* Fri Dec 13 2019 Florian Weimer <fweimer@redhat.com> - 2.28-100
5f7b84
- Roll back dynamic linker state on dlopen failure (#1410154)
5f7b84
5f7b84
* Wed Nov 27 2019 Florian Weimer <fweimer@redhat.com> - 2.28-99
5f7b84
- s390x: Fix z15 strstr for patterns crossing pages (#1777241)
5f7b84
5f7b84
* Wed Nov 27 2019 Florian Weimer <fweimer@redhat.com> - 2.28-98
5f7b84
- Rebuild with new rpm (#1654901)
5f7b84
5f7b84
* Fri Nov 22 2019 Florian Weimer <fweimer@redhat.com> - 2.28-97
5f7b84
- Avoid invalid __has_include in <sys/stat.h> (#1775294)
5f7b84
5f7b84
* Fri Nov 22 2019 Florian Weimer <fweimer@redhat.com> - 2.28-96
5f7b84
- x86-64: Ignore LD_PREFER_MAP_32BIT_EXEC in SUID binaries (#1774021)
5f7b84
5f7b84
* Thu Nov 14 2019 DJ Delorie <dj@redhat.com> - 2.28-95
5f7b84
- Fix alignment of TLS variables for tls variant TLS_TCB_AT_TP (#1764214)
5f7b84
5f7b84
* Thu Nov 14 2019 DJ Delorie <dj@redhat.com> - 2.28-94
5f7b84
- Refuse to dlopen PIE objects (#1764223)
5f7b84
5f7b84
* Thu Nov 14 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-93
5f7b84
- Fix C.UTF-8 locale source ellipsis expressions (#1361965)
5f7b84
5f7b84
* Thu Nov 14 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-92
5f7b84
- Fix hangs during malloc tracing (#1764235)
5f7b84
5f7b84
* Thu Nov 14 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-91
5f7b84
- Support moving versioned symbols between sonames (#1764231)
5f7b84
5f7b84
* Wed Nov 13 2019 Florian Weimer <fweimer@redhat.com> - 2.28-90
5f7b84
- Avoid creating stale utmp entries for repeated pututxline (#1749439)
5f7b84
5f7b84
* Wed Nov  6 2019 Florian Weimer <fweimer@redhat.com> - 2.28-89
5f7b84
- Backport more precise tokenizer for installed headers test (#1769304)
5f7b84
5f7b84
* Wed Nov  6 2019 Florian Weimer <fweimer@redhat.com> - 2.28-88
5f7b84
- math: Enable some math builtins for clang in LLVM Toolset (#1764242)
5f7b84
5f7b84
* Wed Nov  6 2019 Florian Weimer <fweimer@redhat.com> - 2.28-87
5f7b84
- Support Fortran vectorized math functions with GCC Toolset 9 (#1764238)
5f7b84
5f7b84
* Wed Nov  6 2019 Florian Weimer <fweimer@redhat.com> - 2.28-86
5f7b84
- aarch64: Support STO_AARCH64_VARIANT_PCS, DT_AARCH64_VARIANT_PCS (#1726638)
5f7b84
5f7b84
* Mon Nov  4 2019 DJ Delorie <dj@redhat.com> - 2.28-85
5f7b84
- Add more test-in-container support (#1747502)
5f7b84
5f7b84
* Fri Nov  1 2019 DJ Delorie <dj@redhat.com> - 2.28-84
5f7b84
- Fix calling getpwent after endpwent (#1747502)
5f7b84
5f7b84
* Fri Nov  1 2019 DJ Delorie <dj@redhat.com> - 2.28-83
5f7b84
- nptl: Avoid fork handler lock for async-signal-safe fork (#1746928)
5f7b84
5f7b84
* Thu Oct 31 2019 DJ Delorie <dj@redhat.com> - 2.28-82
5f7b84
- Call _dl_open_check after relocation (#1682954)
5f7b84
5f7b84
* Thu Oct 31 2019 Arjun Shankar <arjun@redhat.com> - 2.28-81
5f7b84
- Add malloc fastbin tunable (#1764218)
5f7b84
5f7b84
* Thu Oct 31 2019 Arjun Shankar <arjun@redhat.com> - 2.28-80
5f7b84
- Fix race condition in tst-clone3 and add a new ldconfig test,
5f7b84
  tst-ldconfig-bad-aux-cache (#1764226)
5f7b84
5f7b84
* Thu Oct 31 2019 Arjun Shankar <arjun@redhat.com> - 2.28-79
5f7b84
- Remove unwanted whitespace from size lines and account for top chunk in
5f7b84
  malloc_info output (#1735747)
5f7b84
5f7b84
* Wed Oct 30 2019 Arjun Shankar <arjun@redhat.com> - 2.28-78
5f7b84
- Enhance malloc tcache (#1746933)
5f7b84
5f7b84
* Tue Oct 29 2019 Patsy Griffin <patsy@redhat.com> - 2.28-77
5f7b84
- Don't define initgroups in nsswitch.conf (#1747505)
5f7b84
5f7b84
* Mon Oct 28 2019 Patsy Griffin <patsy@redhat.com> - 2.28-76
5f7b84
- libio: Remove codecvt vtable. (#1764241)
5f7b84
5f7b84
* Mon Oct 28 2019 Patsy Griffin <patsy@redhat.com> - 2.28-75
5f7b84
- Implement --preload option for the dynamic linker.(#1747453)
5f7b84
5f7b84
* Mon Oct 28 2019 Patsy Griffin <patsy@redhat.com> - 2.28-74
5f7b84
- Make nsswitch.conf more distribution friendly.
5f7b84
  Improve nscd.conf comments.  (#1747505)
5f7b84
5f7b84
* Fri Oct 25 2019 Patsy Griffin <patsy@redhat.com> - 2.28-73
5f7b84
- Update system call names list to Linux 5.3 (#1764234)
5f7b84
5f7b84
* Mon Jul 22 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-72
5f7b84
- Skip wide buffer handling for legacy stdio handles (#1722215)
5f7b84
5f7b84
* Mon Jul 22 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-71
5f7b84
- Remove copy_file_range emulation (#1724975)
5f7b84
5f7b84
* Mon Jul 22 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-70
5f7b84
- Avoid nscd assertion failure during persistent db check (#1727152)
5f7b84
5f7b84
* Mon Jul 22 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-69
5f7b84
- Fix invalid free under valgrind with libdl (#1717438)
5f7b84
5f7b84
* Thu Jul 18 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-68
5f7b84
- Account for size of locale-archive in rpm package (#1725131)
5f7b84
5f7b84
* Thu Jul 18 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-67
5f7b84
- Reject IP addresses with trailing characters in getaddrinfo (#1727241)
5f7b84
077c9d
* Fri Jun 14 2019 Florian Weimer <fweimer@redhat.com> - 2.28-66
077c9d
- Avoid header conflict between <sys/stat.h> and <linux/stat.h> (#1699194)
077c9d
077c9d
* Wed Jun 12 2019 Florian Weimer <fweimer@redhat.com> - 2.28-65
077c9d
- glibc-all-langpacks: Do not delete locale archive during update (#1717347)
077c9d
- Do not mark /usr/lib/locale/locale-archive as a configuration file
077c9d
  because it is always automatically overwritten by build-locale-archive.
077c9d
077c9d
* Mon Jun 10 2019 DJ Delorie <dj@redhat.com> - 2.28-64
077c9d
- Avoid ABI exposure of the NSS service_user type (#1710894)
077c9d
077c9d
* Thu Jun  6 2019 Patsy Griffin Franklin <patsy@redhat.com> - 2.28-63
077c9d
- Enable full ICMP errors for UDP DNS sockets. (#1670043)
077c9d
077c9d
* Mon Jun  3 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-62
077c9d
- Convert post-install binary to rpm lua scriptlet (#1639346)
077c9d
077c9d
* Mon Jun  3 2019 Florian Weimer <fweimer@redhat.com> - 2.28-61
077c9d
- Fix crash during wide stream buffer flush (#1710478)
077c9d
077c9d
* Fri May 31 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-60
077c9d
- Add PF_XDP, AF_XDP and SOL_XDP from Linux 4.18 (#1706777)
077c9d
077c9d
* Wed May 22 2019 DJ Delorie <dj@redhat.com> - 2.28-59
077c9d
- Add .gdb_index to debug information (#1612448)
077c9d
077c9d
* Wed May 22 2019 DJ Delorie 
077c9d
- iconv, localedef: avoid floating point rounding differences (#1691528)
077c9d
077c9d
* Wed May 22 2019 Arjun Shankar <arjun@redhat.com> - 2.28-57
077c9d
- locale: Add LOCPATH diagnostics to the locale program (#1701605)
077c9d
077c9d
* Fri May 17 2019 Patsy Griffin Franklin <patsy@redhat.com> - 2.28-56
077c9d
- Fix hang in pldd.  (#1702539)
077c9d
077c9d
* Mon May 13 2019 Florian Weimer <fweimer@redhat.com> - 2.28-55
077c9d
- s390x string function improvements (#1659438)
077c9d
077c9d
* Thu May  2 2019 Patsy Griffin Franklin <patsy@redhat.com> - 2.28-54
077c9d
- Fix test suite failures due to race conditions in posix/tst-spawn
077c9d
  spawned processes. (#1659512)
077c9d
077c9d
* Wed May  1 2019 DJ Delorie <dj@redhat.com> - 2.28-53
077c9d
- Add missing CFI data to __mpn_* functions on ppc64le (#1658901)
077c9d
077c9d
* Fri Apr 26 2019 Arjun Shankar <arjun@redhat.com> - 2.28-52
077c9d
- intl: Do not return NULL on asprintf failure in gettext (#1663035)
077c9d
077c9d
* Fri Apr 26 2019 Florian Weimer <fweimer@redhat.com> - 2.28-51
077c9d
- Increase BIND_NOW coverage (#1639343)
077c9d
077c9d
* Tue Apr 23 2019 Carlos O'Donell <carlos@redhat.com> - 2.28-50
077c9d
- Fix pthread_rwlock_trywrlock and pthread_rwlock_tryrdlock stalls (#1659293)
077c9d
077c9d
* Tue Apr 23 2019 Arjun Shankar <arjun@redhat.com> - 2.28-49
077c9d
- malloc: Improve bad chunk detection (#1651283)
077c9d
077c9d
* Mon Apr 22 2019 Patsy Griffin Franklin <patsy@redhat.com> - 2.28-48
077c9d
- Add compiler barriers around modifications of the robust mutex list
077c9d
  for pthread_mutex_trylock. (#1672773)
077c9d
077c9d
* Tue Apr 16 2019 DJ Delorie <dj@redhat.com> - 2.28-47
077c9d
- powerpc: Only enable HTM if kernel supports PPC_FEATURE2_HTM_NOSC (#1651742)
077c9d
077c9d
* Fri Apr 12 2019 Florian Weimer <fweimer@redhat.com> - 2.28-46
077c9d
- Only build libm with -fno-math-errno (#1664408)
077c9d
077c9d
* Tue Apr  2 2019 Florian Weimer <fweimer@redhat.com> - 2.28-45
077c9d
- ja_JP: Add new Japanese Era name (#1577438)
077c9d
077c9d
* Wed Mar  6 2019 Florian Weimer <fweimer@redhat.com> - 2.28-44
077c9d
- math: Add XFAILs for some IBM 128-bit long double fma tests (#1623537)
077c9d
077c9d
* Fri Mar  1 2019 Florian Weimer <fweimer@redhat.com> - 2.28-43
077c9d
- malloc: realloc ncopies integer overflow (#1662843)
077c9d
077c9d
* Fri Dec 14 2018 Florian Weimer <fweimer@redhat.com> - 2.28-42
077c9d
- Fix rdlock stall with PREFER_WRITER_NONRECURSIVE_NP (#1654872)
077c9d
077c9d
* Fri Dec 14 2018 Florian Weimer <fweimer@redhat.com> - 2.28-41
077c9d
- malloc: Implement double-free check for the thread cache (#1642094)
077c9d
077c9d
* Thu Dec 13 2018 Florian Weimer <fweimer@redhat.com> - 2.28-40
077c9d
- Add upstream test case for CVE-2018-19591 (#1654010)
077c9d
077c9d
* Thu Dec 13 2018 Florian Weimer <fweimer@redhat.com> - 2.28-39
077c9d
- Add GCC dependency for new inline string functions on ppc64le (#1652932)
077c9d
077c9d
* Sat Dec 01 2018 Carlos O'Donell <carlos@redhat.com> - 2.28-38
077c9d
- Add requires on explicit glibc version for glibc-nss-devel (#1649890)
077c9d
077c9d
* Fri Nov 30 2018 Carlos O'Donell <carlos@redhat.com> - 2.28-37
077c9d
- Fix data race in dynamic loader when using LD_AUDIT (#1635779)
077c9d
077c9d
* Wed Nov 28 2018 Florian Weimer <fweimer@redhat.com> - 2.28-36
077c9d
- CVE-2018-19591: File descriptor leak in if_nametoindex (#1654010)
077c9d
077c9d
* Mon Nov 26 2018 Florian Weimer <fweimer@redhat.com> - 2.28-35
077c9d
- Do not use parallel make for building locales (#1652229)
077c9d
077c9d
* Tue Nov 20 2018 Florian Weimer <fweimer@redhat.com> - 2.28-34
077c9d
- support: Print timestamps in timeout handler (#1651274)
077c9d
077c9d
* Tue Nov 20 2018 Florian Weimer <fweimer@redhat.com> - 2.28-33
077c9d
- Increase test timeout for  libio/tst-readline (#1638520)
077c9d
077c9d
* Tue Nov 20 2018 Florian Weimer <fweimer@redhat.com> - 2.28-32
077c9d
- Fix tzfile low-memory assertion failure (#1650571)
077c9d
077c9d
* Tue Nov 20 2018 Florian Weimer <fweimer@redhat.com> - 2.28-31
077c9d
- Add newlines in __libc_fatal calls (#1650566)
077c9d
077c9d
* Tue Nov 20 2018 Florian Weimer <fweimer@redhat.com> - 2.28-30
077c9d
- nscd: Fix use-after-free in addgetnetgrentX (#1650563)
077c9d
077c9d
* Tue Nov 20 2018 Florian Weimer <fweimer@redhat.com> - 2.28-29
077c9d
- Update syscall names to Linux 4.19 (#1650560)
077c9d
077c9d
* Tue Nov 13 2018 Florian Weimer <fweimer@redhat.com> - 2.28-28
077c9d
- kl_GL: Fix spelling of Sunday, should be "sapaat" (#1645597)
077c9d
077c9d
* Tue Nov 13 2018 Florian Weimer <fweimer@redhat.com> - 2.28-27
077c9d
- Fix x86 CPU flags analysis for string function selection (#1641982)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-26
077c9d
- Reduce RAM requirements for stdlib/test-bz22786 (#1638523)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-25
077c9d
- x86: Improve enablement for 32-bit code using CET (#1645601)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-24
077c9d
- Fix crash in getaddrinfo_a when thread creation fails (#1646379)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-23
077c9d
- Fix race in pthread_mutex_lock related to PTHREAD_MUTEX_ELISION_NP (#1645604)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-22
077c9d
- Fix misreported errno on preadv2/pwritev2 (#1645596)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-21
077c9d
- Fix posix/tst-spawn4-compat test case (#1645593)
077c9d
077c9d
* Fri Nov  9 2018 Florian Weimer <fweimer@redhat.com> - 2.28-20
077c9d
- Disable CET for binaries created by older link editors (#1614979)
077c9d
077c9d
* Fri Nov  2 2018 Mike FABIAN <mfabian@redhat.com> - 2.28-19
077c9d
- Include Esperanto (eo) in glibc-all-langpacks (#1644303)
077c9d
077c9d
* Thu Sep 27 2018 Florian Weimer <fweimer@redhat.com> - 2.28-18
077c9d
- stdlib/tst-setcontext9 test suite failure on ppc64le (#1623536)
077c9d
077c9d
* Wed Sep 26 2018 Florian Weimer <fweimer@redhat.com> - 2.28-17
077c9d
- Add missing ENDBR32 in start.S (#1631730)
077c9d
077c9d
* Wed Sep 26 2018 Florian Weimer <fweimer@redhat.com> - 2.28-16
077c9d
- Fix bug in generic strstr with large needles (#1631722)
077c9d
077c9d
* Wed Sep 26 2018 Florian Weimer <fweimer@redhat.com> - 2.28-15
077c9d
- stdlib/tst-setcontext9 test suite failure (#1623536)
077c9d
077c9d
* Wed Sep 26 2018 Florian Weimer <fweimer@redhat.com> - 2.28-14
077c9d
- gethostid: Missing NULL check for gethostbyname_r (#1631293)
077c9d
077c9d
* Wed Sep  5 2018 Carlos O'Donell <carlos@redhat.com> - 2.28-13
077c9d
- Provide compatibility support for linking against libpthread_nonshared.a
077c9d
  (#1614439)
077c9d
077c9d
* Wed Sep  5 2018 Florian Weimer <fweimer@redhat.com> - 2.28-12
077c9d
- Add python3-devel build dependency (#1625592)
077c9d
077c9d
* Wed Aug 29 2018 Florian Weimer <fweimer@redhat.com> - 2.28-11
077c9d
- Drop glibc-ldflags.patch and valgrind bug workaround (#1623456)
077c9d
077c9d
* Wed Aug 29 2018 Florian Weimer <fweimer@redhat.com> - 2.28-10
077c9d
- regex: Fix memory overread when pattern contains NUL byte (#1622678)
077c9d
077c9d
* Wed Aug 29 2018 Florian Weimer <fweimer@redhat.com> - 2.28-9
077c9d
- nptl: Fix waiters-after-spinning case in pthread_cond_broadcast (#1622675)
077c9d
077c9d
* Tue Aug 14 2018 Florian Weimer <fweimer@redhat.com> - 2.28-8
077c9d
- nss_files aliases database file stream leak (#1615790)
077c9d
077c9d
* Tue Aug 14 2018 Florian Weimer <fweimer@redhat.com> - 2.28-7
077c9d
- Fix static analysis warning in nscd user name allocation (#1615784)
077c9d
077c9d
* Tue Aug 14 2018 Florian Weimer <fweimer@redhat.com> - 2.28-6
077c9d
- error, error_at_line: Add missing va_end calls (#1615781)
077c9d
077c9d
* Mon Aug 13 2018 Carlos O'Donell <carlos@redhat.com> - 2.28-5
077c9d
- Remove abort() warning in manual (#1577365)
077c9d
077c9d
* Fri Aug 10 2018 Florian Weimer <fweimer@redhat.com> - 2.28-4
077c9d
- Fix regression in readdir64@GLIBC_2.1 compat symbol (#1614253)
077c9d
077c9d
* Thu Aug  2 2018 Florian Weimer <fweimer@redhat.com> - 2.28-3
077c9d
- Log /proc/sysinfo if available (on s390x)
077c9d
077c9d
* Thu Aug  2 2018 Florian Weimer <fweimer@redhat.com> - 2.28-2
077c9d
- Honor %%{valgrind_arches}
077c9d
077c9d
* Wed Aug 01 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-43
077c9d
- Update to glibc 2.28 release tarball:
077c9d
- Translation updates
077c9d
- x86/CET: Fix property note parser (swbz#23467)
077c9d
- x86: Add tst-get-cpu-features-static to $(tests) (swbz#23458)
077c9d
077c9d
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-42
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit af86087f02a5522d8801a11d8381e04f95e33162:
077c9d
- x86/CET: Don't parse beyond the note end
077c9d
- Fix Linux fcntl OFD locks tests on unsupported kernels
077c9d
- x86: Populate COMMON_CPUID_INDEX_80000001 for Intel CPUs (swbz#23459)
077c9d
- x86: Correct index_cpu_LZCNT (swbz#23456)
077c9d
- Fix string/tst-xbzero-opt if build with gcc head
077c9d
077c9d
* Thu Jul 26 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-41
077c9d
- Build with --enable-cet on x86_64, i686
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit cfba5dbb10cc3abde632b46c60c10b2843917035:
077c9d
- Keep expected behaviour for [a-z] and [A-z] (#1607286)
077c9d
- Additional ucontext tests
077c9d
- Intel CET enhancements
077c9d
- ISO C11 threads support
077c9d
- Fix out-of-bounds access in IBM-1390 converter (swbz#23448)
077c9d
- New locale Yakut (Sakha) for Russia (sah_RU) (swbz#22241)
077c9d
- os_RU: Add alternative month names (swbz#23140)
077c9d
- powerpc64: Always restore TOC on longjmp (swbz#21895)
077c9d
- dsb_DE locale: Fix syntax error and add tests (swbz#23208)
077c9d
- Improve performance of the generic strstr implementation
077c9d
- regcomp: Fix off-by-one bug in build_equiv_class (swbz#23396)
077c9d
- Fix out of bounds access in findidxwc (swbz#23442)
077c9d
077c9d
* Fri Jul 13 2018 Carlos O'Donell <carlos@redhat.com> - 2.27.9000-40
077c9d
- Fix file list for glibc RPM packaging (#1601011).
077c9d
077c9d
* Wed Jul 11 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-39
077c9d
- Add POWER9 multilib (downstream only)
077c9d
077c9d
* Wed Jul 11 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-38
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 93304f5f7a32f73b551266c5a181db51d97a71e4:
077c9d
- Install <bits/statx.h> header
077c9d
- Put the correct Unicode version number 11.0.0 into the generated files
077c9d
077c9d
* Wed Jul 11 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-37
077c9d
- Work around valgrind issue on i686 (#1600034)
077c9d
077c9d
* Tue Jul 10 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-36
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit fd70af45528d59a00eb3190ef6706cb299488fcd:
077c9d
- Add the statx function
077c9d
- regexec: Fix off-by-one bug in weight comparison (#1582229)
077c9d
- nss_files: Fix re-reading of long lines (swbz#18991)
077c9d
- aarch64: add HWCAP_ATOMICS to HWCAP_IMPORTANT
077c9d
- aarch64: Remove HWCAP_CPUID from HWCAP_IMPORTANT
077c9d
- conform/conformtest.pl: Escape literal braces in regular expressions
077c9d
- x86: Use AVX_Fast_Unaligned_Load from Zen onwards.
077c9d
077c9d
* Fri Jul  6 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-35
077c9d
- Remove ppc64 multilibs
077c9d
077c9d
* Fri Jul 06 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-34
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 3a885c1f51b18852869a91cf59a1b39da1595c7a.
077c9d
077c9d
* Thu Jul  5 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-33
077c9d
- Enable build flags inheritance for nonshared flags
077c9d
077c9d
* Wed Jul  4 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-32
077c9d
- Add annobin annotations to assembler code (#1548438)
077c9d
077c9d
* Wed Jul  4 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-31
077c9d
- Enable -D_FORTIFY_SOURCE=2 for nonshared code
077c9d
077c9d
* Mon Jul 02 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-30
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit b7b88cea4151d85eafd7ababc2e4b7ae1daeedf5:
077c9d
- New locale: dsb_DE (Lower Sorbian)
077c9d
077c9d
* Fri Jun 29 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-29
077c9d
- Drop glibc-deprecate_libcrypt.patch.  Variant applied upstream. (#1566464)
077c9d
- Drop glibc-linux-timespec-header-compat.patch.  Upstreamed.
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit e69d994a63afc2d367f286a2a7df28cbf710f0fe.
077c9d
077c9d
* Thu Jun 28 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-28
077c9d
- Drop glibc-rh1315108.patch.  extend_alloca was removed upstream. (#1315108)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit c49e18222e4c40f21586dabced8a49732d946917.
077c9d
077c9d
* Thu Jun 21 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-27
077c9d
- Compatibility fix for <sys/stat.h> and <linux/time.h>
077c9d
077c9d
* Thu Jun 21 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-26
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit f496b28e61d0342f579bf794c71b80e9c7d0b1b5.
077c9d
077c9d
* Mon Jun 18 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-25
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit f2857da7cdb65bfad75ee30981f5b2fde5bbb1dc.
077c9d
077c9d
* Mon Jun 18 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-24
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 14beef7575099f6373f9a45b4656f1e3675f7372:
077c9d
- iconv: Make IBM273 equivalent to ISO-8859-1 (#1592270)
077c9d
077c9d
* Mon Jun 18 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-23
077c9d
- Inherit the -msse2 build flag as well (#1592212)
077c9d
077c9d
* Fri Jun 01 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-22
077c9d
- Modernise nsswitch.conf defaults (#1581809)
077c9d
- Adjust build flags inheritence from redhat-rpm-config
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 104502102c6fa322515ba0bb3c95c05c3185da7a.
077c9d
077c9d
* Fri May 25 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-21
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit c1dc1e1b34873db79dfbfa8f2f0a2abbe28c0514.
077c9d
077c9d
* Wed May 23 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-20
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 7f9f1ecb710eac4d65bb02785ddf288cac098323:
077c9d
- CVE-2018-11237: Buffer overflow in __mempcpy_avx512_no_vzeroupper (#1581275)
077c9d
- Drop glibc-rh1452750-allocate_once.patch,
077c9d
  glibc-rh1452750-libidn2.patch.  Applied upstream.
077c9d
077c9d
* Wed May 23 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-19
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 8f145c77123a565b816f918969e0e35ee5b89153.
077c9d
077c9d
* Thu May 17 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-18
077c9d
- Do not run telinit u on upgrades (#1579225)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 632a6cbe44cdd41dba7242887992cdca7b42922a.
077c9d
077c9d
* Fri May 11 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-17
077c9d
- Avoid exporting some Sun RPC symbols with default versions (#1577210)
077c9d
- Inherit the -mstackrealign flag if it is set
077c9d
- Inherit compiler flags in the original order
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 89aacb513eb77549a29df2638913a0f8178cf3f5:
077c9d
- CVE-2018-11236: realpath: Fix path length overflow (#1581270, swbz#22786)
077c9d
077c9d
* Fri May 11 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-16
077c9d
- Use /usr/bin/python3 for benchmarks scripts (#1577223)
077c9d
077c9d
* Thu Apr 19 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-15
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 0085be1415a38b40a5a1a12e49368498f1687380.
077c9d
077c9d
* Mon Apr 09 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-14
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 583a27d525ae189bdfaa6784021b92a9a1dae12e.
077c9d
077c9d
* Thu Mar 29 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-13
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit d39c0a459ef32a41daac4840859bf304d931adab:
077c9d
- CVE-2017-18269: memory corruption in i386 memmove (#1580934)
077c9d
077c9d
* Mon Mar 19 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-12
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit fbce6f7260c3847f14dfa38f60c9111978fb33a5.
077c9d
077c9d
* Fri Mar 16 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-11
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 700593fdd7aef1e36cfa8bad969faab76a6facda.
077c9d
077c9d
* Wed Mar 14 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-10
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 7108f1f944792ac68332967015d5e6418c5ccc88.
077c9d
077c9d
* Mon Mar 12 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-9
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit da6d4404ecfd7eacba8c096b0761a5758a59da4b.
077c9d
077c9d
* Tue Mar  6 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-8
077c9d
- Enable annobin annotations (#1548438)
077c9d
077c9d
* Thu Mar 01 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-7
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 1a2f44a848663036c8a14671fe0faa3fed0b2a25:
077c9d
- Remove spurios reference to libpthread_nonshared.a
077c9d
077c9d
* Thu Mar 01 2018 Florian Weimer <fweimer@redhat.com> - 2.27.9000-6
077c9d
- Switch back to upstream master branch
077c9d
- Drop glibc-rh1013801.patch, applied upstream.
077c9d
- Drop glibc-fedora-nptl-linklibc.patch, no longer needed.
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit bd60ce86520b781ca24b99b2555e2ad389bbfeaa.
077c9d
077c9d
* Wed Feb 28 2018 Florian Weimer <fweimer@redhat.com> - 2.27-5
077c9d
- Inherit as many flags as possible from redhat-rpm-config (#1550914)
077c9d
077c9d
* Mon Feb 19 2018 Richard W.M. Jones <rjones@redhat.com> - 2.27-4
077c9d
- riscv64: Add symlink from /usr/lib64/lp64d -> /usr/lib64 for ABI compat.
077c9d
- riscv64: Disable valgrind smoke test on this architecture.
077c9d
077c9d
* Wed Feb 14 2018 Florian Weimer <fweimer@redhat.com> - 2.27-3
077c9d
- Spec file cleanups:
077c9d
  - Remove %%defattr(-,root,root)
077c9d
  - Use shell to run ldconfig %%transfiletrigger
077c9d
  - Move %%transfiletrigger* to the glibc-common subpackage
077c9d
  - Trim changelog
077c9d
  - Include ChangeLog.old in the source RPM
077c9d
077c9d
* Wed Feb  7 2018 Florian Weimer <fweimer@redhat.com> - 2.27-2.1
077c9d
- Linux: use reserved name __key in pkey_get (#1542643)
077c9d
- Auto-sync with upstream branch release/2.27/master,
077c9d
  commit 56170e064e2b21ce204f0817733e92f1730541ea.
077c9d
077c9d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org>
077c9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
077c9d
077c9d
* Mon Feb 05 2018 Carlos O'Donell <carlos@redhat.com> - 2.27-1
077c9d
- Update to released glibc 2.27.
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 23158b08a0908f381459f273a984c6fd328363cb.
077c9d
077c9d
* Tue Jan 30 2018 Richard W.M. Jones <rjones@redhat.com> - 2.26.9000-52
077c9d
- Disable -fstack-clash-protection on riscv64:
077c9d
  not supported even by GCC 7.3.1 on this architecture.
077c9d
077c9d
* Mon Jan 29 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-51
077c9d
- Explicitly run ldconfig in the buildroot
077c9d
- Do not run ldconfig from scriptlets
077c9d
- Put triggers into the glibc-common package, do not pass arguments to ldconfig
077c9d
077c9d
* Mon Jan 29 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-50
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit cdd14619a713ab41e26ba700add4880604324dbb:
077c9d
- libnsl: Turn remaining symbols into compat symbols (swbz#22701)
077c9d
- be_BY, be_BY@latin, lt_LT, el_CY, el_GR, ru_RU, ru_UA, uk_UA:
077c9d
  Add alternative month names (swbz#10871)
077c9d
- x86: Revert Intel CET changes to __jmp_buf_tag (swbz#22743)
077c9d
- aarch64: Revert the change of the __reserved member of mcontext_t
077c9d
077c9d
* Mon Jan 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.26.9000-49
077c9d
- Add file triggers to do ldconfig calls automatically
077c9d
077c9d
* Mon Jan 22 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-48
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 21c0696cdef617517de6e25711958c40455c554f:
077c9d
- locale: Implement alternative month names (swbz#10871)
077c9d
- locale: Change month names for pl_PL (swbz#10871)
077c9d
077c9d
* Mon Jan 22 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-47
077c9d
- Unconditionally build without libcrypt
077c9d
077c9d
* Fri Jan 19 2018 Björn Esser <besser82@fedoraproject.org> - 2.26.9000-46
077c9d
- Remove deprecated libcrypt, gets replaced by libxcrypt
077c9d
- Add applicable Requires on libxcrypt
077c9d
077c9d
* Fri Jan 19 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-45
077c9d
- Drop static PIE support on aarch64.  It leads to crashes at run time.
077c9d
- Remove glibc-rpcgen subpackage.  See rpcsvc-proto.  (#1531540)
077c9d
077c9d
* Fri Jan 19 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-44
077c9d
- Correct the list of static PIE architectures (#1247050)
077c9d
- glibc_post_upgrade: Remove process restart logic
077c9d
- glibc_post_upgrade: Integrate into the build process
077c9d
- glibc_post_upgrade: Do not clean up tls subdirectories
077c9d
- glibc_post_upgrade: Drop ia64 support
077c9d
- Remove architecture-specific symbolic link for iconvconfig
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 4612268a0ad8e3409d8ce2314dd2dd8ee0af5269:
077c9d
- powerpc: Fix syscalls during early process initialization (swbz#22685)
077c9d
077c9d
* Fri Jan 19 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-43
077c9d
- Enable static PIE support on i386, x86_64 (#1247050)
077c9d
- Remove add-on support (already gone upstream)
077c9d
- Rework test suite status reporting
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 64f63cb4583ecc1ba16c7253aacc192b6d088511:
077c9d
- malloc: Fix integer overflows in memalign and malloc functions (swbz#22343)
077c9d
- x86-64: Properly align La_x86_64_retval to VEC_SIZE (swbz#22715)
077c9d
- aarch64: Update bits/hwcap.h for Linux 4.15
077c9d
- Add NT_ARM_SVE to elf.h
077c9d
077c9d
* Wed Jan 17 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-42
077c9d
- CVE-2017-14062, CVE-2016-6261, CVE-2016-6263:
077c9d
  Use libidn2 for IDNA support (#1452750)
077c9d
077c9d
* Mon Jan 15 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-41
077c9d
- CVE-2018-1000001: Make getcwd fail if it cannot obtain an absolute path
077c9d
  (#1533837)
077c9d
- elf: Synchronize DF_1_* flags with binutils (#1439328)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 860b0240a5645edd6490161de3f8d1d1f2786025:
077c9d
- aarch64: fix static pie enabled libc when main is in a shared library
077c9d
- malloc: Ensure that the consolidated fast chunk has a sane size
077c9d
077c9d
* Fri Jan 12 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-40
077c9d
- libnsl: Do not install libnsl.so, libnsl.a (#1531540)
077c9d
- Use unversioned Supplements: for langpacks (#1490725)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 9a08a366a7e7ddffe62113a9ffe5e50605ea0924:
077c9d
- hu_HU locale: Avoid double space (swbz#22657)
077c9d
- math: Make default libc_feholdsetround_noex_ctx use __feholdexcept
077c9d
  (swbz#22702)
077c9d
077c9d
* Thu Jan 11 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-39
077c9d
- nptl: Open libgcc.so with RTLD_NOW during pthread_cancel (#1527887)
077c9d
- Introduce libnsl subpackage and remove NIS headers (#1531540)
077c9d
- Use versioned Obsoletes: for libcrypt-nss.
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 08c6e95234c60a5c2f37532d1111acf084f39345:
077c9d
- nptl: Add tst-minstack-cancel, tst-minstack-exit (swbz#22636)
077c9d
- math: ldbl-128ibm log1pl (-qNaN) spurious "invalid" exception (swbz#22693)
077c9d
077c9d
* Wed Jan 10 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-38
077c9d
- nptl: Fix stack guard size accounting (#1527887)
077c9d
- Remove invalid Obsoletes: on glibc-header provides
077c9d
- Require python3 instead of python during builds
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 09085ede12fb9650f286bdcd805609ae69f80618:
077c9d
- math: ldbl-128ibm lrintl/lroundl missing "invalid" exceptions (swbz#22690)
077c9d
- x86-64: Add sincosf with vector FMA
077c9d
077c9d
* Mon Jan  8 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-37
077c9d
- Add glibc-rpcgen subpackage, until the replacement is packaged (#1531540)
077c9d
077c9d
* Mon Jan 08 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-36
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 579396ee082565ab5f42ff166a264891223b7b82:
077c9d
- nptl: Add test for callee-saved register restore in pthread_exit
077c9d
- getrlimit64: fix for 32-bit configurations with default version >= 2.2
077c9d
- elf: Add linux-4.15 VDSO hash for RISC-V
077c9d
- elf: Add RISC-V dynamic relocations to elf.h
077c9d
- powerpc: Fix error message during relocation overflow
077c9d
- prlimit: Replace old_rlimit RLIM64_INFINITY with RLIM_INFINITY (swbz#22678)
077c9d
077c9d
* Fri Jan 05 2018 Florian Weimer <fweimer@redhat.com> - 2.26.9000-35
077c9d
- Remove sln (#1531546)
077c9d
- Remove Sun RPC interfaces (#1531540)
077c9d
- Rebuild with newer GCC to fix pthread_exit stack unwinding issue (#1529549)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit f1a844ac6389ea4e111afc019323ca982b5b027d:
077c9d
- CVE-2017-16997: elf: Check for empty tokens before DST expansion (#1526866)
077c9d
- i386: In makecontext, align the stack before calling exit (swbz#22667)
077c9d
- x86, armhfp: sync sys/ptrace.h with Linux 4.15 (swbz#22433)
077c9d
- elf: check for rpath emptiness before making a copy of it
077c9d
- elf: remove redundant is_path argument
077c9d
- elf: remove redundant code from is_dst
077c9d
- elf: remove redundant code from _dl_dst_substitute
077c9d
- scandir: fix wrong assumption about errno (swbz#17804)
077c9d
- Deprecate external use of libio.h and _G_config.h
077c9d
077c9d
* Fri Dec 22 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-34
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f:
077c9d
- copy_file_range: New function to copy file data
077c9d
- nptl: Consolidate pthread_{timed,try}join{_np}
077c9d
- nptl: Implement pthread_self in libc.so (swbz#22635)
077c9d
- math: Provide a C++ version of iseqsig (swbz#22377)
077c9d
- elf: remove redundant __libc_enable_secure check from fillin_rpath
077c9d
- math: Avoid signed shift overflow in pow (swbz#21309)
077c9d
- x86: Add feature_1 to tcbhead_t (swbz#22563)
077c9d
- x86: Update cancel_jmp_buf to match __jmp_buf_tag (swbz#22563)
077c9d
- ld.so: Examine GLRO to detect inactive loader (swbz#20204)
077c9d
- nscd: Fix nscd readlink argument aliasing (swbz#22446)
077c9d
- elf: do not substitute dst in $LD_LIBRARY_PATH twice (swbz#22627)
077c9d
- ldconfig: set LC_COLLATE to C (swbz#22505)
077c9d
- math: New generic sincosf
077c9d
- powerpc: st{r,p}cpy optimization for aligned strings
077c9d
- CVE-2017-1000409: Count in expanded path in _dl_init_path (#1524867)
077c9d
- CVE-2017-1000408: Compute correct array size in _dl_init_paths (#1524867)
077c9d
- x86-64: Remove sysdeps/x86_64/fpu/s_cosf.S
077c9d
- aarch64: Improve strcmp unaligned performance
077c9d
077c9d
* Wed Dec 13 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-33
077c9d
- Remove power6 platform directory (#1522675)
077c9d
077c9d
* Wed Dec 13 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-32
077c9d
- Obsolete the libcrypt-nss subpackage (#1525396)
077c9d
- armhfp: Disable -fstack-clash-protection due to GCC bug (#1522678)
077c9d
- ppc64: Disable power6 multilib due to GCC bug (#1522675)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 243b63337c2c02f30ec3a988ecc44bc0f6ffa0ad:
077c9d
- libio: Free backup area when it not required (swbz#22415)
077c9d
- math: Fix nextafter and nexttoward declaration (swbz#22593)
077c9d
- math: New generic cosf
077c9d
- powerpc: POWER8 memcpy optimization for cached memory
077c9d
- x86-64: Add sinf with FMA
077c9d
- x86-64: Remove sysdeps/x86_64/fpu/s_sinf.S
077c9d
- math: Fix ctanh (0 + i NaN), ctanh (0 + i Inf) (swbz#22568)
077c9d
- lt_LT locale: Base collation on copy "iso14651_t1" (swbz#22524)
077c9d
- math: Add _Float32 function aliases
077c9d
- math: Make cacosh (0 + iNaN) return NaN + i pi/2 (swbz#22561)
077c9d
- hsb_DE locale: Base collation on copy "iso14651_t1" (swbz#22515)
077c9d
077c9d
* Wed Dec 06 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-31
077c9d
- Add elision tunables.  Drop related configure flag.  (#1383986)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 37ac8e635a29810318f6d79902102e2e96b2b5bf:
077c9d
- Linux: Implement interfaces for memory protection keys
077c9d
- math: Add _Float64, _Float32x function aliases
077c9d
- math: Use sign as double for reduced case in sinf
077c9d
- math: fix sinf(NAN)
077c9d
- math: s_sinf.c: Replace floor with simple casts
077c9d
- et_EE locale: Base collation on iso14651_t1 (swbz#22517)
077c9d
- tr_TR locale: Base collation on iso14651_t1 (swbz#22527)
077c9d
- hr_HR locale: Avoid single code points for digraphs in LC_TIME (swbz#10580)
077c9d
- S390: Fix backtrace in vdso functions
077c9d
077c9d
* Mon Dec 04 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-30
077c9d
- Add build dependency on bison
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 7863a7118112fe502e8020a0db0fa74fef281f29:
077c9d
- math: New generic sinf (swbz#5997)
077c9d
- is_IS locale: Base collation on iso14651_t1 (swbz#22519)
077c9d
- intl: Improve reproducibility by using bison (swbz#22432)
077c9d
- sr_RS, bs_BA locales: make collation rules the same as for hr_HR (wbz#22534)
077c9d
- hr_HR locale: various updates (swbz#10580)
077c9d
- x86: Make a space in jmpbuf for shadow stack pointer
077c9d
- CVE-2017-17426: malloc: Fix integer overflow in tcache (swbz#22375)
077c9d
- locale: make forward accent sorting the default in collating (swbz#17750)
077c9d
077c9d
* Wed Nov 29 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-29
077c9d
- Enable -fstack-clash-protection (#1512531)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit a55430cb0e261834ce7a4e118dd9e0f2b7fb14bc:
077c9d
- elf: Properly compute offsets of note descriptor and next note (swbz#22370)
077c9d
- cs_CZ locale: Base collation on iso14651_t1 (swbz#22336)
077c9d
- Implement the mlock2 function
077c9d
- Add _Float64x function aliases
077c9d
- elf: Consolidate link map sorting
077c9d
- pl_PL locale: Base collation on iso14651_t1 (swbz#22469)
077c9d
- nss: Export nscd hash function as __nss_hash (swbz#22459)
077c9d
077c9d
* Thu Nov 23 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-28
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit cccb6d4e87053ed63c74aee063fa84eb63ebf7b8:
077c9d
- sigwait can fail with EINTR (#1516394)
077c9d
- Add memfd_create function
077c9d
- resolv: Fix p_secstodate overflow handling (swbz#22463)
077c9d
- resolv: Obsolete p_secstodate
077c9d
- Avoid use of strlen in getlogin_r (swbz#22447)
077c9d
- lv_LV locale: fix collation (swbz#15537)
077c9d
- S390: Add cfi information for start routines in order to stop unwinding
077c9d
- aarch64: Optimized memset for falkor
077c9d
077c9d
* Sun Nov 19 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-27
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit f6e965ee94b37289f64ecd3253021541f7c214c3:
077c9d
- powerpc: AT_HWCAP2 bit PPC_FEATURE2_HTM_NO_SUSPEND
077c9d
- aarch64: Add HWCAP_DCPOP bit
077c9d
- ttyname, ttyname_r: Don't bail prematurely (swbz#22145)
077c9d
- signal: Optimize sigrelse implementation
077c9d
- inet: Check length of ifname in if_nametoindex (swbz#22442)
077c9d
- malloc: Account for all heaps in an arena in malloc_info (swbz#22439)
077c9d
- malloc: Add missing arena lock in malloc_info (swbz#22408)
077c9d
- malloc: Use __builtin_tgmath in tgmath.h with GCC 8 (swbz#21660)
077c9d
- locale: Replaced unicode sequences in the ASCII printable range
077c9d
- resolv: More precise checks in res_hnok, res_dnok (swbz#22409, swbz#22412)
077c9d
- resolv: ns_name_pton should report trailing \ as error (swbz#22413)
077c9d
- locale: mfe_MU, miq_NI, an_ES, kab_DZ, om_ET: Escape / in d_fmt (swbz#22403)
077c9d
077c9d
* Tue Nov 07 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-26
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 6b86036452b9ac47b4ee7789a50f2f37df7ecc4f:
077c9d
- CVE-2017-15804: glob: Fix buffer overflow during GLOB_TILDE unescaping
077c9d
- powerpc: Use latest string function optimization for internal function calls
077c9d
- math: No _Float128 support for ppc64le -mlong-double-64 (swbz#22402)
077c9d
- tpi_PG locale: Fix wrong d_fmt
077c9d
- aarch64: Disable lazy symbol binding of TLSDESC
077c9d
- tpi_PG locale: fix syntax error (swbz#22382)
077c9d
- i586: Use conditional branches in strcpy.S (swbz#22353)
077c9d
- ffsl, ffsll: Declare under __USE_MISC, not just __USE_GNU
077c9d
- csb_PL locale: Fix abmon/mon for March (swbz#19485)
077c9d
- locale: Various yesstr/nostr/yesexpr/noexpr fixes (swbz#15260, swbz#15261)
077c9d
- localedef: Add --no-warnings/--warnings option
077c9d
- powerpc: Replace lxvd2x/stxvd2x with lvx/stvx in P7's memcpy/memmove
077c9d
- locale: Use ASCII as much as possible in LC_MESSAGES
077c9d
- Add new locale yuw_PG (swbz#20952)
077c9d
- malloc: Add single-threaded path to malloc/realloc/calloc/memalloc
077c9d
- i386: Replace assembly versions of e_powf with generic e_powf.c
077c9d
- i386: Replace assembly versions of e_log2f with generic e_log2f.c
077c9d
- x86-64: Add powf with FMA
077c9d
- x86-64: Add logf with FMA
077c9d
- i386: Replace assembly versions of e_logf with generic e_logf.c
077c9d
- i386: Replace assembly versions of e_exp2f with generic e_exp2f.c
077c9d
- x86-64: Add exp2f with FMA
077c9d
- i386: Replace assembly versions of e_expf with generic e_expf.c
077c9d
077c9d
* Sat Oct 21 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-25
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 797ba44ba27521261f94cc521f1c2ca74f650147:
077c9d
- math: Add bits/floatn.h defines for more _FloatN / _FloatNx types
077c9d
- posix: Fix improper assert in Linux posix_spawn (swbz#22273)
077c9d
- x86-64: Use fxsave/xsave/xsavec in _dl_runtime_resolve (swbz#21265)
077c9d
- CVE-2017-15670: glob: Fix one-byte overflow (#1504807)
077c9d
- malloc: Add single-threaded path to _int_free
077c9d
- locale: Add new locale kab_DZ (swbz#18812)
077c9d
- locale: Add new locale shn_MM (swbz#13605)
077c9d
077c9d
* Fri Oct 20 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-24
077c9d
- Use make -O to serialize make output
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 63b4baa44e8d22501c433c4093aa3310f91b6aa2:
077c9d
- sysconf: Fix missing definition of UIO_MAXIOV on Linux (#1504165)
077c9d
- Install correct bits/long-double.h for MIPS64 (swbz#22322)
077c9d
- malloc: Fix deadlock in _int_free consistency check
077c9d
- x86-64: Don't set GLRO(dl_platform) to NULL (swbz#22299)
077c9d
- math: Add _Float128 function aliases
077c9d
- locale: Add new locale mjw_IN (swbz#13994)
077c9d
- aarch64: Rewrite elf_machine_load_address using _DYNAMIC symbol
077c9d
- powerpc: fix check-before-set in SET_RESTORE_ROUND
077c9d
- locale: Use U+202F as thousands separators in pl_PL locale (swbz#16777)
077c9d
- math: Use __f128 to define FLT128_* constants in include/float.h for old GCC
077c9d
- malloc: Improve malloc initialization sequence (swbz#22159)
077c9d
- malloc: Use relaxed atomics for malloc have_fastchunks
077c9d
- locale: New locale ca_ES@valencia (swbz#2522)
077c9d
- math: Let signbit use the builtin in C++ mode with gcc < 6.x (swbz#22296)
077c9d
- locale: Place monetary symbol in el_GR, el_CY after the amount (swbz#22019)
077c9d
077c9d
* Tue Oct 17 2017 Florian Weimer <fweimer@redhat.com> - 2.26.9000-23
077c9d
- Switch to .9000 version numbers during development
077c9d
077c9d
* Tue Oct 17 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-22
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit c38a4bfd596db2be2b9c1f96715bdc833eab760a:
077c9d
- malloc: Use compat_symbol_reference in libmcheck (swbz#22050)
077c9d
077c9d
* Mon Oct 16 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-21
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 596f70134a8f11967c65c1d55a94a3a2718c731d:
077c9d
- Silence -O3 -Wall warning in malloc/hooks.c with GCC 7 (swbz#22052)
077c9d
- locale: No warning for non-symbolic character (swbz#22295)
077c9d
- locale: Allow "" int_curr_Symbol (swbz#22294)
077c9d
- locale: Fix localedef exit code (swbz#22292)
077c9d
- nptl: Preserve error in setxid thread broadcast in coredumps (swbz#22153)
077c9d
- powerpc: Avoid putting floating point values in memory (swbz#22189)
077c9d
- powerpc: Fix the carry bit on mpn_[add|sub]_n on POWER7 (swbz#22142)
077c9d
- Support profiling PIE (swbz#22284)
077c9d
077c9d
* Wed Oct 11 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-20
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit d8425e116cdd954fea0c04c0f406179b5daebbb3:
077c9d
- nss_files performance issue in multi mode (swbz#22078)
077c9d
- Ensure C99 and C11 interfaces are available for C++ (swbz#21326)
077c9d
077c9d
* Mon Oct 09 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-19
077c9d
- Move /var/db/Makefile to nss_db (#1498900)
077c9d
- Auto-sync with upstream branch master,
077c9d
  commit 645ac9aaf89e3311949828546df6334322f48933:
077c9d
- openpty: use TIOCGPTPEER to open slave side fd
077c9d
077c9d
* Fri Oct 06 2017 Carlos O'Donell <carlos@systemhalted.org> - 2.26.90-18
077c9d
- Auto-sync with upstream master,
077c9d
  commit 1e26d35193efbb29239c710a4c46a64708643320.
077c9d
- malloc: Fix tcache leak after thread destruction (swbz#22111)
077c9d
- powerpc:  Fix IFUNC for memrchr.
077c9d
- aarch64: Optimized implementation of memmove for Qualcomm Falkor
077c9d
- Always do locking when iterating over list of streams (swbz#15142)
077c9d
- abort: Do not flush stdio streams (swbz#15436)
077c9d
077c9d
* Wed Oct 04 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-17
077c9d
- Move nss_compat to the main glibc package (#1400538)
077c9d
- Auto-sync with upstream master,
077c9d
  commit 11c4f5010c58029e73e656d5df4f8f42c9b8e877:
077c9d
- crypt: Use NSPR header files in addition to NSS header files (#1489339)
077c9d
- math: Fix yn(n,0) without SVID wrapper (swbz#22244)
077c9d
- math: Fix log2(0) and log(10) in downward rounding (swbz#22243)
077c9d
- math: Add C++ versions of iscanonical for ldbl-96, ldbl-128ibm (swbz#22235)
077c9d
- powerpc: Optimize memrchr for power8
077c9d
- Hide various internal functions (swbz#18822)
077c9d
077c9d
* Sat Sep 30 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-16
077c9d
- Auto-sync with upstream master,
077c9d
  commit 1e2bffd05c36a9be30d7092d6593a9e9aa009ada:
077c9d
- Add IBM858 charset (#1416405)
077c9d
- Update kernel version in syscall-names.list to 4.13
077c9d
- Add Linux 4.13 constants to bits/fcntl-linux.h
077c9d
- Add fcntl sealing interfaces from Linux 3.17 to bits/fcntl-linux.h
077c9d
- math: New generic powf, log2f, logf
077c9d
- Fix nearbyint arithmetic moved before feholdexcept (swbz#22225)
077c9d
- Mark __dso_handle as hidden (swbz#18822)
077c9d
- Skip PT_DYNAMIC segment with p_filesz == 0 (swbz#22101)
077c9d
- glob now matches dangling symbolic links (swbz#866, swbz#22183)
077c9d
- nscd: Release read lock after resetting timeout (swbz#22161)
077c9d
- Avoid __MATH_TG in C++ mode with -Os for fpclassify (swbz#22146)
077c9d
- Fix dlclose/exit race (swbz#22180)
077c9d
- x86: Add SSE4.1 trunc, truncf (swbz#20142)
077c9d
- Fix atexit/exit race (swbz#14333)
077c9d
- Use execveat syscall in fexecve (swbz#22134)
077c9d
- Enable unwind info in libc-start.c and backtrace.c
077c9d
- powerpc: Avoid misaligned stores in memset
077c9d
- powerpc: build some IFUNC math functions for libc and libm (swbz#21745)
077c9d
- Removed redundant data (LC_TIME and LC_MESSAGES) for niu_NZ (swbz#22023)
077c9d
- Fix LC_TELEPHONE for az_AZ (swbz#22112)
077c9d
- x86: Add MathVec_Prefer_No_AVX512 to cpu-features (swbz#21967)
077c9d
- x86: Add x86_64 to x86-64 HWCAP (swbz#22093)
077c9d
- Finish change from “Bengali” to “Bangla” (swbz#14925)
077c9d
- posix: fix glob bugs with long login names (swbz#1062)
077c9d
- posix: Fix getpwnam_r usage (swbz#1062)
077c9d
- posix: accept inode 0 is a valid inode number (swbz#19971)
077c9d
- Remove redundant LC_TIME data in om_KE (swbz#22100)
077c9d
- Remove remaining _HAVE_STRING_ARCH_* definitions (swbz#18858)
077c9d
- resolv: Fix memory leak with OOM during resolv.conf parsing (swbz#22095)
077c9d
- Add miq_NI locale for Miskito (swbz#20498)
077c9d
- Fix bits/math-finite.h exp10 condition (swbz#22082)
077c9d
077c9d
* Mon Sep 04 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-15
077c9d
- Auto-sync with upstream master,
077c9d
  commit b38042f51430974642616a60afbbf96fd0b98659:
077c9d
- Implement tmpfile with O_TMPFILE (swbz#21530)
077c9d
- Obsolete pow10 functions
077c9d
- math.h: Warn about an already-defined log macro
077c9d
077c9d
* Fri Sep 01 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-14
077c9d
- Build glibc with -O2 (following the upstream default).
077c9d
- Auto-sync with upstream master,
077c9d
  commit f4a6be2582b8dfe8adfa68da3dd8decf566b3983:
077c9d
- malloc: Abort on heap corruption, without a backtrace (swbz#21754)
077c9d
- getaddrinfo: Return EAI_NODATA for gethostbyname2_r with NO_DATA (swbz#21922)
077c9d
- getaddrinfo: Fix error handling in gethosts (swbz#21915) (swbz#21922)
077c9d
- Place $(elf-objpfx)sofini.os last (swbz#22051)
077c9d
- Various locale fixes (swbz#15332, swbz#22044)
077c9d
077c9d
* Wed Aug 30 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-13
077c9d
- Drop glibc-rh952799.patch, applied upstream (#952799, swbz#22025)
077c9d
- Auto-sync with upstream master,
077c9d
  commit 5f9409b787c5758fc277f8d1baf7478b752b775d:
077c9d
- Various locale fixes (swbz#22022, swbz#22038, swbz#21951, swbz#13805,
077c9d
  swbz#21971, swbz#21959)
077c9d
- MIPS/o32: Fix internal_syscall5/6/7 (swbz#21956)
077c9d
- AArch64: Fix procfs.h not to expose stdint.h types
077c9d
- iconv_open: Fix heap corruption on gconv_init failure (swbz#22026)
077c9d
- iconv: Mangle __btowc_fct even without __init_fct (swbz#22025)
077c9d
- Fix bits/math-finite.h _MSUF_ expansion namespace (swbz#22028)
077c9d
- Provide a C++ version of iszero that does not use __MATH_TG (swbz#21930)
077c9d
077c9d
* Mon Aug 28 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-12
077c9d
- Auto-sync with upstream master,
077c9d
  commit 2dba5ce7b8115d6a2789bf279892263621088e74.
077c9d
077c9d
* Fri Aug 25 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-11
077c9d
- Auto-sync with upstream master,
077c9d
  commit 3d7b66f66cb223e899a7ebc0f4c20f13e711c9e0:
077c9d
- string/stratcliff.c: Replace int with size_t (swbz#21982)
077c9d
- Fix tgmath.h handling of complex integers (swbz#21684)
077c9d
077c9d
* Thu Aug 24 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-10
077c9d
- Use an architecture-independent system call list (#1484729)
077c9d
- Drop glibc-fedora-include-bits-ldbl.patch (#1482105)
077c9d
077c9d
* Tue Aug 22 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-9
077c9d
- Auto-sync with upstream master,
077c9d
  commit 80f91666fed71fa3dd5eb5618739147cc731bc89.
077c9d
077c9d
* Mon Aug 21 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-8
077c9d
- Auto-sync with upstream master,
077c9d
  commit a8410a5fc9305c316633a5a3033f3927b759be35:
077c9d
- Obsolete matherr, _LIB_VERSION, libieee.a.
077c9d
077c9d
* Mon Aug 21 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-7
077c9d
- Auto-sync with upstream master,
077c9d
  commit 4504783c0f65b7074204c6126c6255ed89d6594e.
077c9d
077c9d
* Mon Aug 21 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-6
077c9d
- Auto-sync with upstream master,
077c9d
  commit b5889d25e9bf944a89fdd7bcabf3b6c6f6bb6f7c:
077c9d
- assert: Support types without operator== (int) (#1483005)
077c9d
077c9d
* Mon Aug 21 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-5
077c9d
- Auto-sync with upstream master,
077c9d
  commit 2585d7b839559e665d5723734862fbe62264b25d:
077c9d
- Do not use generic selection in C++ mode
077c9d
- Do not use __builtin_types_compatible_p in C++ mode (#1481205)
077c9d
- x86-64: Check FMA_Usable in ifunc-mathvec-avx2.h (swbz#21966)
077c9d
- Various locale fixes (swbz#21750, swbz#21960, swbz#21959, swbz#19852)
077c9d
- Fix sigval namespace (swbz#21944)
077c9d
- x86-64: Optimize e_expf with FMA (swbz#21912)
077c9d
- Adjust glibc-rh827510.patch.
077c9d
077c9d
* Wed Aug 16 2017 Tomasz Kłoczko <kloczek@fedoraproject.org> - 2.26-4
077c9d
- Remove 'Buildroot' tag, 'Group' tag, and '%%clean' section, and don't
077c9d
  remove the buildroot in '%%install', all per Fedora Packaging Guidelines
077c9d
  (#1476839)
077c9d
077c9d
* Wed Aug 16 2017 Florian Weimer <fweimer@redhat.com> - 2.26.90-3
077c9d
- Auto-sync with upstream master,
077c9d
  commit 403143e1df85dadd374f304bd891be0cd7573e3b:
077c9d
- x86-64: Align L(SP_RANGE)/L(SP_INF_0) to 8 bytes (swbz#21955)
077c9d
- powerpc: Add values from Linux 4.8 to <elf.h>
077c9d
- S390: Add new s390 platform z14.
077c9d
- Various locale fixes (swbz#14925, swbz#20008, swbz#20482, swbz#12349
077c9d
  swbz#19982, swbz#20756, swbz#20756, swbz#21836, swbz#17563, swbz#16905,
077c9d
  swbz#21920, swbz#21854)
077c9d
- NSS: Replace exported NSS lookup functions with stubs (swbz#21962)
077c9d
- i386: Do not set internal_function
077c9d
- assert: Suppress pedantic warning caused by statement expression (swbz#21242)
077c9d
- powerpc: Restrict xssqrtqp operands to Vector Registers (swbz#21941)
077c9d
- sys/ptrace.h: remove obsolete PTRACE_SEIZE_DEVEL constant (swbz#21928)
077c9d
- Remove __qaddr_t, __long_double_t
077c9d
- Fix uc_* namespace (swbz#21457)
077c9d
- nss: Call __resolv_context_put before early return in get*_r (swbz#21932)
077c9d
- aarch64: Optimized memcpy for Qualcomm Falkor processor
077c9d
- manual: Document getcontext uc_stack value on Linux (swbz#759)
077c9d
- i386: Add <startup.h> (swbz#21913)
077c9d
- Don't use IFUNC resolver for longjmp or system in libpthread (swbz#21041)
077c9d
- Fix XPG4.2 bits/sigaction.h namespace (swbz#21899)
077c9d
- x86-64: Add FMA multiarch functions to libm
077c9d
- i386: Support static PIE in start.S
077c9d
- Compile tst-prelink.c without PIE (swbz#21815)
077c9d
- x86-64: Use _dl_runtime_resolve_opt only with AVX512F (swbz#21871)
077c9d
- x86: Remove __memset_zero_constant_len_parameter (swbz#21790)
077c9d
077c9d
* Wed Aug 16 2017 Florian Weimer <fweimer@redhat.com> - 2.26-2
077c9d
- Disable multi-arch (IFUNC string functions) on i686 (#1471427)
077c9d
- Remove nosegneg 32-bit Xen PV support libraries (#1482027)
077c9d
- Adjust spec file to RPM changes
077c9d
077c9d
* Thu Aug 03 2017 Carlos O'Donell <carlos@systemhalted.org> - 2.26-1
077c9d
- Update to released glibc 2.26.
077c9d
- Auto-sync with upstream master,
077c9d
  commit 2aad4b04ad7b17a2e6b0e66d2cb4bc559376617b.
077c9d
- getaddrinfo: Release resolver context on error in gethosts (swbz#21885)