Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/timezone-data/
Date: Fri, 23 Sep 2022 01:56:19
Message-Id: 1663898163.30e150ffeb01a8013bf90ade81795b58e919d2cf.sam@gentoo
1 commit: 30e150ffeb01a8013bf90ade81795b58e919d2cf
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 01:56:03 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 01:56:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30e150ff
7
8 sys-libs/timezone-data: drop 2021e, 2022a
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-libs/timezone-data/Manifest | 4 -
13 sys-libs/timezone-data/timezone-data-2021e.ebuild | 196 ----------------------
14 sys-libs/timezone-data/timezone-data-2022a.ebuild | 196 ----------------------
15 3 files changed, 396 deletions(-)
16
17 diff --git a/sys-libs/timezone-data/Manifest b/sys-libs/timezone-data/Manifest
18 index 65941e002ac5..3fb362f00a02 100644
19 --- a/sys-libs/timezone-data/Manifest
20 +++ b/sys-libs/timezone-data/Manifest
21 @@ -1,6 +1,2 @@
22 -DIST tzcode2021e.tar.gz 273644 BLAKE2B 3331477d8107fb30b2c37d3a3afb212dda7ecf53aa553ea5070537bd1a4a01bf62e70adb2fb14c025e22d272d96ee51e9e5089c5c9790682d3c43cda0ded8680 SHA512 87b0335129ea41c5f42f687f548712e5da892baa8494cecf5d34851beceecf6ae52f22104696ed187713cf9e502570eb2041e277dfd3c043c11d0253bfde685a
23 -DIST tzcode2022a.tar.gz 275632 BLAKE2B f9b3bb5eedc51896c2a1dd77fe8118518c8a1f35152325fa6c4163e11dd34aeb0c88b16b17a27ad022feb2f6818996ec0e40e06a7e1edd454187f586c3739070 SHA512 3f047a6f414ae3df4a3d6bb9b39a1790833d191ae48e6320ab9438cd326dc455475186a02c44e4cde96b48101ab000880919b1e0e8092aed7254443ed2c831ed
24 DIST tzcode2022c.tar.gz 280190 BLAKE2B 4c66b84da8b1e535b92f8be8f0a1fa32f3b050f3e7676370e3094b5098e7670455e506160f364c61cfba1a919b769da8864a5347f240107c750c723fcc5caa2f SHA512 3373fa16a12007415c3dc3a75c4a0d61d6ae54968eeecedcdf4bcfd7f554020a15c4687dde107b90462b75d848eebe1e200c33322ebe0d3f1ad11bc769cade06
25 -DIST tzdata2021e.tar.gz 422509 BLAKE2B e0e1189a1bbfb2ee641b9c4c8d00775372638d46d7aea72ff0c4bcb02b38a65eedaf89e6b272e054245c940369a50c2573e6fc720414e4ab3d45adeda8ed9c75 SHA512 c1e8d04e049157ed5d4af0868855bbd75517e3d7e1db9c41d5283ff260109de46b6fac6be94828201d093e163d868044ac2a9db2bf0aeab800e264d0c73a9119
26 -DIST tzdata2022a.tar.gz 425833 BLAKE2B 0af5b785a6f5d871b017237ad58d3d9bedd0de38cf18ac51b32cd8df9811215af7af913d8cd3966de695ce65df3f49f52e239196e93b953094763814cc56ecd0 SHA512 542e4559beac8fd8c4af7d08d816fd12cfe7ffcb6f20bba4ff1c20eba717749ef96e5cf599b2fe03b5b8469c0467f8cb1c893008160da281055a123dd9e810d9
27 DIST tzdata2022c.tar.gz 432721 BLAKE2B 087a0e728c6052f91142ef11ad2092e573de99d787ed1e8ff62476b870ff2e3d222a19df01ad624cf06e543aa7e40df89dcd888b9e5fd12f8b5af90bdffc9ac9 SHA512 e2ae92abac6d87ce4ab4ba9012e868e1791b842e083293489debc0c671b9cf135b5b70426dacb6dbebbf6eba24463205225ae45bb7df891a086b25475f85ee0b
28
29 diff --git a/sys-libs/timezone-data/timezone-data-2021e.ebuild b/sys-libs/timezone-data/timezone-data-2021e.ebuild
30 deleted file mode 100644
31 index 0569f80588bc..000000000000
32 --- a/sys-libs/timezone-data/timezone-data-2021e.ebuild
33 +++ /dev/null
34 @@ -1,196 +0,0 @@
35 -# Copyright 1999-2022 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI="7"
39 -
40 -inherit toolchain-funcs flag-o-matic
41 -
42 -code_ver=${PV}
43 -data_ver=${PV}
44 -DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
45 -HOMEPAGE="https://www.iana.org/time-zones"
46 -SRC_URI="https://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
47 - https://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
48 -
49 -LICENSE="BSD public-domain"
50 -SLOT="0"
51 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 -IUSE="nls leaps-timezone zic-slim"
53 -
54 -DEPEND="nls? ( virtual/libintl )"
55 -RDEPEND="${DEPEND}
56 - !sys-libs/glibc[vanilla(+)]"
57 -
58 -src_unpack() {
59 - mkdir -p "${S}" && cd "${S}" || die
60 - default
61 -}
62 -
63 -src_prepare() {
64 - default
65 -
66 - # check_web contacts validator.w3.org
67 - sed -i -e 's/check_tables check_web/check_tables/g' \
68 - Makefile || die "Failed to disable check_web"
69 -
70 - tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
71 -}
72 -
73 -src_configure() {
74 - tc-export CC
75 -
76 - append-lfs-flags #471102
77 -
78 - if use elibc_Darwin ; then
79 - append-cppflags -DSTD_INSPIRED #138251
80 - fi
81 -
82 - append-cppflags -DHAVE_GETTEXT=$(usex nls 1 0) -DTZ_DOMAIN='\"libc\"'
83 -
84 - # Upstream default is 'slim', but it breaks quite a few programs
85 - # that parse /etc/localtime directly: bug# 747538.
86 - append-cppflags -DZIC_BLOAT_DEFAULT='\"'$(usex zic-slim slim fat)'\"'
87 -
88 - LDLIBS=""
89 - if use nls ; then
90 - # See if an external libintl is available. #154181 #578424
91 - local c="${T}/test"
92 - echo 'main(){}' > "${c}.c"
93 - if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} "${c}.c" -o "${c}" -lintl 2>/dev/null ; then
94 - LDLIBS+=" -lintl"
95 - fi
96 - fi
97 -}
98 -
99 -_emake() {
100 - emake \
101 - REDO=$(usex leaps-timezone posix_right posix_only) \
102 - TOPDIR="${EPREFIX}" \
103 - ZICDIR='$(TOPDIR)/usr/bin' \
104 - "$@"
105 -}
106 -
107 -src_compile() {
108 - _emake \
109 - AR="$(tc-getAR)" \
110 - cc="$(tc-getCC)" \
111 - RANLIB="$(tc-getRANLIB)" \
112 - CFLAGS="${CFLAGS} -std=gnu99 ${CPPFLAGS}" \
113 - LDFLAGS="${LDFLAGS}" \
114 - LDLIBS="${LDLIBS}"
115 - if tc-is-cross-compiler ; then
116 - _emake -C "${S}"-native \
117 - AR="$(tc-getBUILD_AR)" \
118 - cc="$(tc-getBUILD_CC)" \
119 - RANLIB="$(tc-getBUILD_RANLIB)" \
120 - CFLAGS="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}" \
121 - LDFLAGS="${BUILD_LDFLAGS}" \
122 - LDLIBS="${LDLIBS}" \
123 - zic
124 - fi
125 -}
126 -
127 -src_test() {
128 - # VALIDATE_ENV is used for extended/web based tests. Punt on them.
129 - emake check VALIDATE_ENV=true
130 -}
131 -
132 -src_install() {
133 - local zic=""
134 - tc-is-cross-compiler && zic="zic=${S}-native/zic"
135 - _emake install ${zic} DESTDIR="${D}" LIBDIR="/nukeit"
136 - rm -rf "${D}/nukeit" "${ED}/etc" || die
137 -
138 - insinto /usr/share/zoneinfo
139 - doins "${S}"/leap-seconds.list
140 -
141 - # Delete man pages installed by man-pages package.
142 - rm "${ED}"/usr/share/man/man5/tzfile.5* "${ED}"/usr/share/man/man8/{tzselect,zdump,zic}.8 || die
143 - dodoc CONTRIBUTING README NEWS *.html
144 -}
145 -
146 -get_TIMEZONE() {
147 - local tz src="${EROOT}/etc/timezone"
148 - if [[ -e ${src} ]] ; then
149 - tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
150 - else
151 - tz="FOOKABLOIE"
152 - fi
153 - [[ -z ${tz} ]] && return 1 || echo "${tz}"
154 -}
155 -
156 -pkg_preinst() {
157 - local tz=$(get_TIMEZONE)
158 - if [[ ${tz} == right/* || ${tz} == posix/* ]] ; then
159 - eerror "The right & posix subdirs are no longer installed as subdirs -- they have been"
160 - eerror "relocated to match upstream paths as sibling paths. Further, posix/xxx is the"
161 - eerror "same as xxx, so you should simply drop the posix/ prefix. You also should not"
162 - eerror "be using right/xxx for the system timezone as it breaks programs."
163 - die "Please fix your timezone setting"
164 - fi
165 -
166 - # Trim the symlink by hand to avoid portage's automatic protection checks.
167 - rm -f "${EROOT}"/usr/share/zoneinfo/posix
168 -
169 - if has_version "<=${CATEGORY}/${PN}-2015c" ; then
170 - elog "Support for accessing posix/ and right/ directly has been dropped to match"
171 - elog "upstream. There is no need to set TZ=posix/xxx as it is the same as TZ=xxx."
172 - elog "For TZ=right/, you can use TZ=../zoneinfo-leaps/xxx instead. See this post"
173 - elog "for details: https://mm.icann.org/pipermail/tz/2015-February/022024.html"
174 - fi
175 -}
176 -
177 -configure_tz_data() {
178 - # make sure the /etc/localtime file does not get stale #127899
179 - local tz src="${EROOT}/etc/timezone" etc_lt="${EROOT}/etc/localtime"
180 -
181 - # If it's a symlink, assume the user knows what they're doing and
182 - # they're managing it themselves. #511474
183 - if [[ -L "${etc_lt}" ]] ; then
184 - einfo "Assuming your ${etc_lt} symlink is what you want; skipping update."
185 - return 0
186 - fi
187 -
188 - if ! tz=$(get_TIMEZONE) ; then
189 - einfo "Assuming your empty ${src} file is what you want; skipping update."
190 - return 0
191 - fi
192 -
193 - if [[ "${tz}" == "FOOKABLOIE" ]] ; then
194 - einfo "You do not have a timezone set in ${src}; skipping update."
195 - return 0
196 - fi
197 -
198 - local tzpath="${EROOT}/usr/share/zoneinfo/${tz}"
199 -
200 - if [[ ! -e ${tzpath} ]]; then
201 - ewarn "The timezone specified in ${src} is not valid."
202 - return 1
203 - fi
204 -
205 - if [[ -f ${etc_lt} ]]; then
206 - # If a regular file already exists, copy over it.
207 - ewarn "Found a regular file at ${etc_lt}."
208 - ewarn "Some software may expect a symlink instead."
209 - ewarn "You may convert it to a symlink by removing the file and running:"
210 - ewarn " emerge --config sys-libs/timezone-data"
211 - einfo "Copying ${tzpath} to ${etc_lt}."
212 - cp -f "${tzpath}" "${etc_lt}"
213 - else
214 - # Otherwise, create a symlink and remove the timezone file.
215 - tzpath="../usr/share/zoneinfo/${tz}"
216 - einfo "Linking ${tzpath} at ${etc_lt}."
217 - if ln -snf "${tzpath}" "${etc_lt}"; then
218 - einfo "Removing ${src}."
219 - rm -f "${src}"
220 - fi
221 - fi
222 -}
223 -
224 -pkg_config() {
225 - configure_tz_data
226 -}
227 -
228 -pkg_postinst() {
229 - configure_tz_data
230 -}
231
232 diff --git a/sys-libs/timezone-data/timezone-data-2022a.ebuild b/sys-libs/timezone-data/timezone-data-2022a.ebuild
233 deleted file mode 100644
234 index 7a4135560885..000000000000
235 --- a/sys-libs/timezone-data/timezone-data-2022a.ebuild
236 +++ /dev/null
237 @@ -1,196 +0,0 @@
238 -# Copyright 1999-2022 Gentoo Authors
239 -# Distributed under the terms of the GNU General Public License v2
240 -
241 -EAPI="7"
242 -
243 -inherit toolchain-funcs flag-o-matic
244 -
245 -code_ver=${PV}
246 -data_ver=${PV}
247 -DESCRIPTION="Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)"
248 -HOMEPAGE="https://www.iana.org/time-zones"
249 -SRC_URI="https://www.iana.org/time-zones/repository/releases/tzdata${data_ver}.tar.gz
250 - https://www.iana.org/time-zones/repository/releases/tzcode${code_ver}.tar.gz"
251 -
252 -LICENSE="BSD public-domain"
253 -SLOT="0"
254 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
255 -IUSE="nls leaps-timezone zic-slim"
256 -
257 -DEPEND="nls? ( virtual/libintl )"
258 -RDEPEND="${DEPEND}
259 - !sys-libs/glibc[vanilla(+)]"
260 -
261 -src_unpack() {
262 - mkdir -p "${S}" && cd "${S}" || die
263 - default
264 -}
265 -
266 -src_prepare() {
267 - default
268 -
269 - # check_web contacts validator.w3.org
270 - sed -i -e 's/check_tables check_web/check_tables/g' \
271 - Makefile || die "Failed to disable check_web"
272 -
273 - tc-is-cross-compiler && cp -pR "${S}" "${S}"-native
274 -}
275 -
276 -src_configure() {
277 - tc-export CC
278 -
279 - append-lfs-flags #471102
280 -
281 - if use elibc_Darwin ; then
282 - append-cppflags -DSTD_INSPIRED #138251
283 - fi
284 -
285 - append-cppflags -DHAVE_GETTEXT=$(usex nls 1 0) -DTZ_DOMAIN='\"libc\"'
286 -
287 - # Upstream default is 'slim', but it breaks quite a few programs
288 - # that parse /etc/localtime directly: bug# 747538.
289 - append-cppflags -DZIC_BLOAT_DEFAULT='\"'$(usex zic-slim slim fat)'\"'
290 -
291 - LDLIBS=""
292 - if use nls ; then
293 - # See if an external libintl is available. #154181 #578424
294 - local c="${T}/test"
295 - echo 'main(){}' > "${c}.c"
296 - if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} "${c}.c" -o "${c}" -lintl 2>/dev/null ; then
297 - LDLIBS+=" -lintl"
298 - fi
299 - fi
300 -}
301 -
302 -_emake() {
303 - emake \
304 - REDO=$(usex leaps-timezone posix_right posix_only) \
305 - TOPDIR="${EPREFIX}" \
306 - ZICDIR='$(TOPDIR)/usr/bin' \
307 - "$@"
308 -}
309 -
310 -src_compile() {
311 - _emake \
312 - AR="$(tc-getAR)" \
313 - cc="$(tc-getCC)" \
314 - RANLIB="$(tc-getRANLIB)" \
315 - CFLAGS="${CFLAGS} -std=gnu99 ${CPPFLAGS}" \
316 - LDFLAGS="${LDFLAGS}" \
317 - LDLIBS="${LDLIBS}"
318 - if tc-is-cross-compiler ; then
319 - _emake -C "${S}"-native \
320 - AR="$(tc-getBUILD_AR)" \
321 - cc="$(tc-getBUILD_CC)" \
322 - RANLIB="$(tc-getBUILD_RANLIB)" \
323 - CFLAGS="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}" \
324 - LDFLAGS="${BUILD_LDFLAGS}" \
325 - LDLIBS="${LDLIBS}" \
326 - zic
327 - fi
328 -}
329 -
330 -src_test() {
331 - # VALIDATE_ENV is used for extended/web based tests. Punt on them.
332 - emake check VALIDATE_ENV=true
333 -}
334 -
335 -src_install() {
336 - local zic=""
337 - tc-is-cross-compiler && zic="zic=${S}-native/zic"
338 - _emake install ${zic} DESTDIR="${D}" LIBDIR="/nukeit"
339 - rm -rf "${D}/nukeit" "${ED}/etc" || die
340 -
341 - insinto /usr/share/zoneinfo
342 - doins "${S}"/leap-seconds.list
343 -
344 - # Delete man pages installed by man-pages package.
345 - rm "${ED}"/usr/share/man/man5/tzfile.5* "${ED}"/usr/share/man/man8/{tzselect,zdump,zic}.8 || die
346 - dodoc CONTRIBUTING README NEWS *.html
347 -}
348 -
349 -get_TIMEZONE() {
350 - local tz src="${EROOT}/etc/timezone"
351 - if [[ -e ${src} ]] ; then
352 - tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
353 - else
354 - tz="FOOKABLOIE"
355 - fi
356 - [[ -z ${tz} ]] && return 1 || echo "${tz}"
357 -}
358 -
359 -pkg_preinst() {
360 - local tz=$(get_TIMEZONE)
361 - if [[ ${tz} == right/* || ${tz} == posix/* ]] ; then
362 - eerror "The right & posix subdirs are no longer installed as subdirs -- they have been"
363 - eerror "relocated to match upstream paths as sibling paths. Further, posix/xxx is the"
364 - eerror "same as xxx, so you should simply drop the posix/ prefix. You also should not"
365 - eerror "be using right/xxx for the system timezone as it breaks programs."
366 - die "Please fix your timezone setting"
367 - fi
368 -
369 - # Trim the symlink by hand to avoid portage's automatic protection checks.
370 - rm -f "${EROOT}"/usr/share/zoneinfo/posix
371 -
372 - if has_version "<=${CATEGORY}/${PN}-2015c" ; then
373 - elog "Support for accessing posix/ and right/ directly has been dropped to match"
374 - elog "upstream. There is no need to set TZ=posix/xxx as it is the same as TZ=xxx."
375 - elog "For TZ=right/, you can use TZ=../zoneinfo-leaps/xxx instead. See this post"
376 - elog "for details: https://mm.icann.org/pipermail/tz/2015-February/022024.html"
377 - fi
378 -}
379 -
380 -configure_tz_data() {
381 - # make sure the /etc/localtime file does not get stale #127899
382 - local tz src="${EROOT}/etc/timezone" etc_lt="${EROOT}/etc/localtime"
383 -
384 - # If it's a symlink, assume the user knows what they're doing and
385 - # they're managing it themselves. #511474
386 - if [[ -L "${etc_lt}" ]] ; then
387 - einfo "Assuming your ${etc_lt} symlink is what you want; skipping update."
388 - return 0
389 - fi
390 -
391 - if ! tz=$(get_TIMEZONE) ; then
392 - einfo "Assuming your empty ${src} file is what you want; skipping update."
393 - return 0
394 - fi
395 -
396 - if [[ "${tz}" == "FOOKABLOIE" ]] ; then
397 - einfo "You do not have a timezone set in ${src}; skipping update."
398 - return 0
399 - fi
400 -
401 - local tzpath="${EROOT}/usr/share/zoneinfo/${tz}"
402 -
403 - if [[ ! -e ${tzpath} ]]; then
404 - ewarn "The timezone specified in ${src} is not valid."
405 - return 1
406 - fi
407 -
408 - if [[ -f ${etc_lt} ]]; then
409 - # If a regular file already exists, copy over it.
410 - ewarn "Found a regular file at ${etc_lt}."
411 - ewarn "Some software may expect a symlink instead."
412 - ewarn "You may convert it to a symlink by removing the file and running:"
413 - ewarn " emerge --config sys-libs/timezone-data"
414 - einfo "Copying ${tzpath} to ${etc_lt}."
415 - cp -f "${tzpath}" "${etc_lt}"
416 - else
417 - # Otherwise, create a symlink and remove the timezone file.
418 - tzpath="../usr/share/zoneinfo/${tz}"
419 - einfo "Linking ${tzpath} at ${etc_lt}."
420 - if ln -snf "${tzpath}" "${etc_lt}"; then
421 - einfo "Removing ${src}."
422 - rm -f "${src}"
423 - fi
424 - fi
425 -}
426 -
427 -pkg_config() {
428 - configure_tz_data
429 -}
430 -
431 -pkg_postinst() {
432 - configure_tz_data
433 -}