Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/glibc/
Date: Tue, 11 Sep 2018 14:44:32
Message-Id: 1536677047.a96bbde56cc77bbdc23ffbe54d4fc113f4febf98.dilfridge@gentoo
1 commit: a96bbde56cc77bbdc23ffbe54d4fc113f4febf98
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 11 14:39:19 2018 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 11 14:44:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a96bbde5
7
8 sys-libs/glibc: Remove old
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 sys-libs/glibc/Manifest | 1 -
13 sys-libs/glibc/glibc-2.19-r1.ebuild | 164 ------------------------------------
14 2 files changed, 165 deletions(-)
15
16 diff --git a/sys-libs/glibc/Manifest b/sys-libs/glibc/Manifest
17 index 69619572243..d42a719a158 100644
18 --- a/sys-libs/glibc/Manifest
19 +++ b/sys-libs/glibc/Manifest
20 @@ -1,6 +1,5 @@
21 DIST gcc-4.7.3-r1-multilib-bootstrap.tar.bz2 8064097 BLAKE2B 3cc5c82cd57d0fbd26d9a376ee8ca02f119fe9d653311cbe4d2b7b93aec2290adac3be271be19a7fdedae2e11e4b6e32360184e557204e100ad64357f5575d4b SHA512 40b93e194ad41a75d649d84d1c49070680f253a13f0617803243bc61c44fed1ca2d0a7572a97ebb79353f312b58b5f6360be916dd7435928cc53935082e15269
22 DIST gcc-multilib-bootstrap-20180511.tar.xz 2392908 BLAKE2B f3cf614399368acd8908f60d894c6344a2fa09383b30c1633a0682bc668367c8a2f8c6fec2d41b6e2178d709a2bd8db57e8b2ab56ba263c7d56f819c15acd061 SHA512 98c766e913693ab42ff790557acde2a36a8001e2648046a685b21964200df8d4d52d8452d499c0068c6648284d086ce062c2d36e2c6c2fd8aacd232d193f2853
23 -DIST glibc-2.19-patches-3.tar.bz2 80664 BLAKE2B fb348c711941c1bd4dadd905e172dc4f239d8b63af1a1d14dcf4ec45c504bd47e10e9b24b38f9e01796016f2e97caeeb693213ae08147274ed0a4d9501293be0 SHA512 d281d6a2757920124cf8a3f02b97e75192598b08d96ae48840df34c7ffdcb212952d171f233e6f12a429b19437d0a296212fe1f2eae164d6a1c6793cb3cb69f0
24 DIST glibc-2.19-patches-9.tar.bz2 24584 BLAKE2B a96e930a5bd20fa75d9f259cc2117fa5ce98072274a24a5823bf877e3739fa4c001a94d7865e065ee0527f3974430d27da8038e042340a451ad2052c62724f26 SHA512 a95b3063ade974a3556480b798b317d33c7423a8cb9e69f67249ffb8b3d3c671d70d2d5f782c1efadc0bec4cc49a96d4fe89911f3dfcd85b459f69f3b4f38f0e
25 DIST glibc-2.19.tar.xz 12083312 BLAKE2B 9dc03346e0f0df4bf009a92d894b0a9f964ff92b7f4c9663cedf1cb6cf90435f28a15539d33791ecf43ee578fa4e26f916af0367651312ef8f9c1c38ce0dafa2 SHA512 9e021fcb3afbb9ace2a0e37fded231a62de861bd766e29d47163a03182e37add718b7acc3963d1c525f9556773e842297725715acde48dcfbaab6e756af1a23d
26 DIST glibc-2.20-patches-5.tar.bz2 55986 BLAKE2B bad714bd088fb8759ee84d33f22c0bba01a78a401c54828dc413c7ac2a08ae53fba9b07280996e54091f2c918658bb502aeb45f734022c1ab36e1be215381324 SHA512 409f59a028127e02f0c9f91107715b540d8d234475830adc17108a02664be232098d119b43bcc8df9b328ab50c1fffb0868d510e6487ce1c34ec2c7c7a78375b
27
28 diff --git a/sys-libs/glibc/glibc-2.19-r1.ebuild b/sys-libs/glibc/glibc-2.19-r1.ebuild
29 deleted file mode 100644
30 index d036a728e44..00000000000
31 --- a/sys-libs/glibc/glibc-2.19-r1.ebuild
32 +++ /dev/null
33 @@ -1,164 +0,0 @@
34 -# Copyright 1999-2018 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=0
38 -
39 -inherit toolchain-glibc
40 -
41 -DESCRIPTION="GNU libc6 (also called glibc2) C library"
42 -HOMEPAGE="https://www.gnu.org/software/libc/libc.html"
43 -
44 -LICENSE="LGPL-2.1+ BSD HPND ISC inner-net rc PCRE"
45 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
46 -RESTRICT="strip" # strip ourself #46186
47 -EMULTILIB_PKG="true"
48 -
49 -# Configuration variables
50 -RELEASE_VER=""
51 -case ${PV} in
52 -9999*)
53 - EGIT_REPO_URIS="git://sourceware.org/git/glibc.git"
54 - inherit git-r3
55 - ;;
56 -*)
57 - RELEASE_VER=${PV}
58 - ;;
59 -esac
60 -GCC_BOOTSTRAP_VER="4.7.3-r1"
61 -PATCH_VER="3" # Gentoo patchset
62 -NPTL_KERN_VER=${NPTL_KERN_VER:-"2.6.16"} # min kernel version nptl requires
63 -
64 -IUSE="debug gd hardened multilib nscd selinux systemtap profile suid vanilla headers-only"
65 -
66 -# Here's how the cross-compile logic breaks down ...
67 -# CTARGET - machine that will target the binaries
68 -# CHOST - machine that will host the binaries
69 -# CBUILD - machine that will build the binaries
70 -# If CTARGET != CHOST, it means you want a libc for cross-compiling.
71 -# If CHOST != CBUILD, it means you want to cross-compile the libc.
72 -# CBUILD = CHOST = CTARGET - native build/install
73 -# CBUILD != (CHOST = CTARGET) - cross-compile a native build
74 -# (CBUILD = CHOST) != CTARGET - libc for cross-compiler
75 -# CBUILD != CHOST != CTARGET - cross-compile a libc for a cross-compiler
76 -# For install paths:
77 -# CHOST = CTARGET - install into /
78 -# CHOST != CTARGET - install into /usr/CTARGET/
79 -
80 -export CBUILD=${CBUILD:-${CHOST}}
81 -export CTARGET=${CTARGET:-${CHOST}}
82 -if [[ ${CTARGET} == ${CHOST} ]] ; then
83 - if [[ ${CATEGORY} == cross-* ]] ; then
84 - export CTARGET=${CATEGORY#cross-}
85 - fi
86 -fi
87 -
88 -[[ ${CTARGET} == hppa* ]] && NPTL_KERN_VER=${NPTL_KERN_VER/2.6.16/2.6.20}
89 -
90 -is_crosscompile() {
91 - [[ ${CHOST} != ${CTARGET} ]]
92 -}
93 -
94 -# Why SLOT 2.2 you ask yourself while sippin your tea ?
95 -# Everyone knows 2.2 > 0, duh.
96 -SLOT="2.2"
97 -
98 -# General: We need a new-enough binutils/gcc to match upstream baseline.
99 -# arch: we need to make sure our binutils/gcc supports TLS.
100 -DEPEND=">=app-misc/pax-utils-0.1.10
101 - !<sys-apps/sandbox-1.6
102 - !<sys-apps/portage-2.1.2
103 - selinux? ( sys-libs/libselinux )"
104 -RDEPEND="!sys-kernel/ps3-sources
105 - selinux? ( sys-libs/libselinux )
106 - !sys-libs/nss-db"
107 -
108 -if [[ ${CATEGORY} == cross-* ]] ; then
109 - DEPEND+=" !headers-only? (
110 - >=${CATEGORY}/binutils-2.20
111 - >=${CATEGORY}/gcc-4.3
112 - )"
113 - [[ ${CATEGORY} == *-linux* ]] && DEPEND+=" ${CATEGORY}/linux-headers"
114 -else
115 - DEPEND+="
116 - >=sys-devel/binutils-2.20
117 - >=sys-devel/gcc-4.3
118 - virtual/os-headers
119 - !vanilla? ( >=sys-libs/timezone-data-2012c )"
120 - RDEPEND+="
121 - vanilla? ( !sys-libs/timezone-data )
122 - !vanilla? ( sys-libs/timezone-data )"
123 -fi
124 -
125 -upstream_uris() {
126 - echo mirror://gnu/glibc/$1 ftp://sourceware.org/pub/glibc/{releases,snapshots}/$1 mirror://gentoo/$1
127 -}
128 -gentoo_uris() {
129 - local devspace="HTTP~vapier/dist/URI HTTP~azarah/glibc/URI"
130 - devspace=${devspace//HTTP/https://dev.gentoo.org/}
131 - echo mirror://gentoo/$1 ${devspace//URI/$1}
132 -}
133 -SRC_URI=$(
134 - [[ -z ${EGIT_REPO_URIS} ]] && upstream_uris ${P}.tar.xz
135 - [[ -n ${PATCH_VER} ]] && gentoo_uris ${P}-patches-${PATCH_VER}.tar.bz2
136 -)
137 -SRC_URI+=" ${GCC_BOOTSTRAP_VER:+multilib? ( $(gentoo_uris gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2) )}"
138 -
139 -src_unpack() {
140 - [[ -n ${GCC_BOOTSTRAP_VER} ]] && use multilib && unpack gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2
141 - toolchain-glibc_src_unpack
142 -
143 - cd "${S}"
144 -
145 - epatch "${FILESDIR}"/2.19/${PN}-2.19-ia64-gcc-4.8-reloc-hack.patch #503838
146 -
147 - if use hardened ; then
148 - einfo "Patching to get working PIE binaries on PIE (hardened) platforms"
149 - tc-enables-pie && epatch "${FILESDIR}"/2.17/glibc-2.17-hardened-pie.patch
150 - epatch "${FILESDIR}"/2.19/glibc-2.19-hardened-configure-picdefault.patch
151 - epatch "${FILESDIR}"/2.18/glibc-2.18-hardened-inittls-nosysenter.patch
152 -
153 - einfo "Installing Hardened Gentoo SSP and FORTIFY_SOURCE handler"
154 - cp -f "${FILESDIR}"/2.18/glibc-2.18-gentoo-stack_chk_fail.c \
155 - debug/stack_chk_fail.c || die
156 - cp -f "${FILESDIR}"/2.18/glibc-2.18-gentoo-chk_fail.c \
157 - debug/chk_fail.c || die
158 -
159 - if use debug ; then
160 - # When using Hardened Gentoo stack handler, have smashes dump core for
161 - # analysis - debug only, as core could be an information leak
162 - # (paranoia).
163 - sed -i \
164 - -e '/^CFLAGS-backtrace.c/ iCFLAGS-stack_chk_fail.c = -DSSP_SMASH_DUMPS_CORE' \
165 - debug/Makefile \
166 - || die "Failed to modify debug/Makefile for debug stack handler"
167 - sed -i \
168 - -e '/^CFLAGS-backtrace.c/ iCFLAGS-chk_fail.c = -DSSP_SMASH_DUMPS_CORE' \
169 - debug/Makefile \
170 - || die "Failed to modify debug/Makefile for debug fortify handler"
171 - fi
172 -
173 - # Build nscd with ssp-all
174 - sed -i \
175 - -e 's:-fstack-protector$:-fstack-protector-all:' \
176 - nscd/Makefile \
177 - || die "Failed to ensure nscd builds with ssp-all"
178 - fi
179 -}
180 -
181 -pkg_preinst() {
182 - toolchain-glibc_pkg_preinst
183 -
184 - if [[ ${CTARGET} == arm* ]] ; then
185 - # Backwards compat support for renaming hardfp ldsos #417287
186 - local oldso='/lib/ld-linux.so.3'
187 - local nldso='/lib/ld-linux-armhf.so.3'
188 - if [[ -e ${D}${nldso} ]] ; then
189 - if scanelf -qRyi "${ROOT}$(alt_prefix)"/*bin/ | grep -s "^${oldso}" ; then
190 - ewarn "Symlinking old ldso (${oldso}) to new ldso (${nldso})."
191 - ewarn "Please rebuild all packages using this old ldso as compat"
192 - ewarn "support will be dropped in the future."
193 - ln -s "${nldso##*/}" "${D}$(alt_prefix)${oldso}"
194 - fi
195 - fi
196 - fi
197 -}