Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 01 Feb 2022 00:00:22
Message-Id: 1643673598.9d673238b37622d80ea52de2aa512c6c50e7fa16.sam@gentoo
1 commit: 9d673238b37622d80ea52de2aa512c6c50e7fa16
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 31 05:33:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 31 23:59:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d673238
7
8 texlive-common.eclass: respect EPREFIX in symlink creation
9
10 Closes: https://bugs.gentoo.org/832408
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 eclass/texlive-common.eclass | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16 diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
17 index 1fe33444f1e5..40e2c3530510 100644
18 --- a/eclass/texlive-common.eclass
19 +++ b/eclass/texlive-common.eclass
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2022 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 # @ECLASS: texlive-common.eclass
26 @@ -19,7 +19,7 @@ _TEXLIVE_COMMON_ECLASS=1
27
28 case ${EAPI:-0} in
29 [0-6]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
30 - 7) ;;
31 + 7) inherit eapi8-dosym ;;
32 *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
33 esac
34
35 @@ -46,7 +46,7 @@ texlive-common_handle_config_files() {
36 dodir /etc/texmf/$(dirname ${f}).d
37 einfo "Moving (and symlinking) ${EPREFIX}${TEXMF_PATH}/${f} to ${EPREFIX}/etc/texmf/$(dirname ${f}).d"
38 mv "${ED}/${TEXMF_PATH}/${f}" "${ED}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed."
39 - dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
40 + dosym8 -r /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
41 done < <(find -name '*.cnf' -type f -o -name '*.cfg' -type f | sed -e "s:\./::g")
42 }