summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eapi8-dosym.eclass: Fix another corner case of strange inputUlrich Müller2023-06-071-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eapi8-dosym.eclass: Don't add a spurious newline to the pathUlrich Müller2023-06-071-1/+1
| | | | | | | | | | Bash's <<< operator will append a newline to the string, therefore use echo -n instead. Add a couple of test cases that would have caught this. Fixes: d5638e49ee79c0f7e4672d5537e97a4ccc7f2eb2 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eapi8-dosym.eclass: Prevent globbing of argument in _dosym8_canonicalizeUlrich Müller2023-06-061-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eapi8-dosym.eclass: remove EAPI 5, 6David Seifert2023-03-171-4/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* eapi8-dosym.eclass: New eclass.Ulrich Müller2020-11-231-0/+108
This implements the dosym command proposed for EAPI 8 (called dosym8 because we cannot use the same name as the package-manager builtin). "dosym -r <target> <link>" will expand the (apparent) path of <target> relative to the (apparent) path of the directory containing <link>. The main aim of this is to allow for an absolute path to be specified as the link target, and the function will count path components and convert it into a relative path. Since we're inside ED at this point but the image will finally be installed in EROOT, we don't try to resolve any pre-existing symlinks in <target> or <link>. In other words, path expansion only looks at the specified apparent paths, without touching any actual files in ED or EROOT. Signed-off-by: Ulrich Müller <ulm@gentoo.org>