summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMarco Sirabella <marco@sirabella.org>2021-03-21 01:41:38 -0700
committerUlrich Müller <ulm@gentoo.org>2021-03-26 18:51:59 +0100
commit45ec1802c236d755e8438b92b25f5d6e5705e1d3 (patch)
tree1ea691186306a8eb307c0c340817dfc857fd2b2d /eclass
parentsys-boot/grub: export BUILD_PKG_CONFIG (diff)
downloadgentoo-45ec1802c236d755e8438b92b25f5d6e5705e1d3.tar.gz
gentoo-45ec1802c236d755e8438b92b25f5d6e5705e1d3.tar.bz2
gentoo-45ec1802c236d755e8438b92b25f5d6e5705e1d3.zip
eclass/common-lisp-3: Fix asd suffix substitution
Filenames containing the string "asd" such as `iolib.asdf.asd` are improperly modified by the bash substitution (/) -> `iolibf.asd` Replacing it with suffix remove (%) fixes this: `iolib.asdf Closes: https://github.com/gentoo/gentoo/pull/20025 Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/common-lisp-3.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass
index 5d5b68e6f105..334444e16326 100644
--- a/eclass/common-lisp-3.eclass
+++ b/eclass/common-lisp-3.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: common-lisp-3.eclass
@@ -136,7 +136,7 @@ common-lisp-install-one-asdf() {
[[ $# != 1 ]] && die "${FUNCNAME[0]} must receive exactly one argument"
# the suffix «.asd» is optional
- local source=${1/.asd}.asd
+ local source=${1%.asd}.asd
common-lisp-install-one-source true "${source}" "$(dirname "${source}")"
local target="${CLSOURCEROOT%/}/${CLPACKAGE}/${source}"
dosym "${target}" "${CLSYSTEMROOT%/}/$(basename ${target})"