net-print/hpuld: fix absolute symlinks into image dir

- Upstream install.sh embeds ${D} into symlink targets; strip it.
- Bump 1.00.39.15.00.23 to -r2.

Closes: https://bugs.gentoo.org/945529
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2026-05-18 17:16:50 +08:00
parent 75ea5aa7ae
commit dac5030748

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
@@ -87,6 +87,14 @@ src_install() {
else
sh ./install-printer.sh || die
fi
# upstream install.sh embeds ${D} into symlink targets; strip it.
local link target
while IFS= read -r -d '' link; do
target="$(readlink "${link}")"
[[ "${target}" == "${D}"* ]] || continue
ln -sfn "${target#${D}}" "${link}" || die
done < <(find "${D}" -type l -print0)
}
pkg_postinst() {