mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
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:
@@ -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() {
|
||||
Reference in New Issue
Block a user