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