projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90262c6
)
prereq: add support for creating relative symlinks
author
Michael Pratt
<
[email protected]
>
Thu, 3 Oct 2024 04:49:10 +0000
(
00:49
-0400)
committer
Robert Marko
<
[email protected]
>
Sat, 26 Jul 2025 12:38:08 +0000
(14:38 +0200)
For targets that install symlinks, like coreutils,
if the links happen to be deleted, let prereq stage
be capable of creating them again with a relative path.
Tested-by: Georgi Valkov <
[email protected]
> # macOS
Signed-off-by: Michael Pratt <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <
[email protected]
>
include/prereq.mk
patch
|
blob
|
history
diff --git
a/include/prereq.mk
b/include/prereq.mk
index 1039c5540c6a01a17d61851a7aa2f334d8eb1df4..23287eade476c6d36a5f14762e3dfe0a846c2589 100644
(file)
--- a/
include/prereq.mk
+++ b/
include/prereq.mk
@@
-113,7
+113,7
@@
define SetupHostCommand
[ -x "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0 \
;; \
esac; \
- ln -sf "$$$$$$$$
bin
" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \
+ ln -sf "$$$$$$$$
{bin#$(STAGING_DIR_HOST)/bin/}
" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \
exit 1; \
fi; \
fi; \