Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: tex@g.o, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH v2] texlive-common.eclass: respect EPREFIX in symlink creation
Date: Mon, 31 Jan 2022 22:56:18
Message-Id: 20220131225553.3503564-1-sam@gentoo.org
1 Closes: https://bugs.gentoo.org/832408
2 Signed-off-by: Sam James <sam@g.o>
3 ---
4 eclass/texlive-common.eclass | 6 +++---
5 1 file changed, 3 insertions(+), 3 deletions(-)
6
7 diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
8 index 1fe33444f1e56..40e2c3530510b 100644
9 --- a/eclass/texlive-common.eclass
10 +++ b/eclass/texlive-common.eclass
11 @@ -1,4 +1,4 @@
12 -# Copyright 1999-2020 Gentoo Authors
13 +# Copyright 1999-2022 Gentoo Authors
14 # Distributed under the terms of the GNU General Public License v2
15
16 # @ECLASS: texlive-common.eclass
17 @@ -19,7 +19,7 @@ _TEXLIVE_COMMON_ECLASS=1
18
19 case ${EAPI:-0} in
20 [0-6]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
21 - 7) ;;
22 + 7) inherit eapi8-dosym ;;
23 *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
24 esac
25
26 @@ -46,7 +46,7 @@ texlive-common_handle_config_files() {
27 dodir /etc/texmf/$(dirname ${f}).d
28 einfo "Moving (and symlinking) ${EPREFIX}${TEXMF_PATH}/${f} to ${EPREFIX}/etc/texmf/$(dirname ${f}).d"
29 mv "${ED}/${TEXMF_PATH}/${f}" "${ED}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed."
30 - dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
31 + dosym8 -r /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
32 done < <(find -name '*.cnf' -type f -o -name '*.cfg' -type f | sed -e "s:\./::g")
33 }
34
35 --
36 2.35.1

Replies