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