summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-07 09:41:52 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-07 09:41:52 +0100
commitbba809b22a050e394e6ce550572ee7f6c6e02a6e (patch)
tree123ac3c4e4e9e13431e2a29c3a6b5acb7a17e3b6 /eclass
parentb33ca82bae0c6cb7b025e77445b7f9c16b8c161c (diff)
gentoo auto-resync : 07:06:2023 - 09:41:52
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin37818 -> 37817 bytes
-rw-r--r--eclass/eapi8-dosym.eclass2
-rwxr-xr-xeclass/tests/eapi8-dosym.sh4
3 files changed, 4 insertions, 2 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index e3c462a9f162..39d8c00858bc 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/eapi8-dosym.eclass b/eclass/eapi8-dosym.eclass
index 93b11dda7fd6..e139b74cfea0 100644
--- a/eclass/eapi8-dosym.eclass
+++ b/eclass/eapi8-dosym.eclass
@@ -31,7 +31,7 @@ esac
_dosym8_canonicalize() {
local path slash i prev out IFS=/
- read -r -d '' -a path <<< "$1"
+ read -r -d '' -a path < <(echo -n "$1")
[[ $1 == /* ]] && slash=/
while true; do
diff --git a/eclass/tests/eapi8-dosym.sh b/eclass/tests/eapi8-dosym.sh
index 9290026a26de..cae66e3bb2ee 100755
--- a/eclass/tests/eapi8-dosym.sh
+++ b/eclass/tests/eapi8-dosym.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -50,8 +50,10 @@ done
teq . _dosym8_canonicalize .
teq foo _dosym8_canonicalize foo
teq foo _dosym8_canonicalize ./foo
+teq foo _dosym8_canonicalize foo/.
teq ../foo _dosym8_canonicalize ../foo
teq ../baz _dosym8_canonicalize foo/bar/../../../baz
+teq '*' _dosym8_canonicalize '*'
for f in ref_dosym_r "dosym8 -r"; do
teq ../../bin/foo ${f} /bin/foo /usr/bin/foo