mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Remove unintentional dependency on readlink by replacing the call to it
with a piece of sh+awk based on a recent post to freebsd-arch by Cyrille Lefevre <cyrille.lefevre@laposte.net>.
This commit is contained in:
parent
245d2fb7d2
commit
7b57f84935
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62964
@ -123,7 +123,7 @@ pre-patch:
|
||||
pre-build:
|
||||
@if [ "$${WRKDIRPREFIX}" -a \
|
||||
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
|
||||
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
|
||||
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
|
||||
then \
|
||||
echo "Please set WRKDIRPREFIX to something which doesn't"; \
|
||||
echo "have a matching symbolic link in /compat/linux."; \
|
||||
|
@ -123,7 +123,7 @@ pre-patch:
|
||||
pre-build:
|
||||
@if [ "$${WRKDIRPREFIX}" -a \
|
||||
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
|
||||
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
|
||||
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
|
||||
then \
|
||||
echo "Please set WRKDIRPREFIX to something which doesn't"; \
|
||||
echo "have a matching symbolic link in /compat/linux."; \
|
||||
|
@ -123,7 +123,7 @@ pre-patch:
|
||||
pre-build:
|
||||
@if [ "$${WRKDIRPREFIX}" -a \
|
||||
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
|
||||
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
|
||||
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
|
||||
then \
|
||||
echo "Please set WRKDIRPREFIX to something which doesn't"; \
|
||||
echo "have a matching symbolic link in /compat/linux."; \
|
||||
|
@ -123,7 +123,7 @@ pre-patch:
|
||||
pre-build:
|
||||
@if [ "$${WRKDIRPREFIX}" -a \
|
||||
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
|
||||
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
|
||||
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
|
||||
then \
|
||||
echo "Please set WRKDIRPREFIX to something which doesn't"; \
|
||||
echo "have a matching symbolic link in /compat/linux."; \
|
||||
|
Loading…
Reference in New Issue
Block a user