Revert "package/pseudo: provide better legacy handling for fakeroot"
This reverts commit 499f28fc7c
.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
01354e1a0f
commit
0f496d77db
@ -1,12 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "${0##*/}" = "fakeroot" ]; then
|
|
||||||
cat >&2 <<-_EOF_
|
|
||||||
WARNING: fakeroot has been replaced with pseudo.
|
|
||||||
WARNING: Update your script(s) to use pseudo or pseudo-wrapper instead.
|
|
||||||
_EOF_
|
|
||||||
fi
|
|
||||||
|
|
||||||
export PSEUDO_PREFIX="$(dirname "${0%/*}")"
|
export PSEUDO_PREFIX="$(dirname "${0%/*}")"
|
||||||
export PSEUDO_OPTS="-t0"
|
export PSEUDO_OPTS="-t0"
|
||||||
if [ -n "${TARGET_DIR}" ]; then
|
if [ -n "${TARGET_DIR}" ]; then
|
||||||
@ -16,4 +9,4 @@ if [ -n "${BASE_DIR}" ]; then
|
|||||||
export PSEUDO_LOCALSTATEDIR="${BASE_DIR}/build/.pseudodb"
|
export PSEUDO_LOCALSTATEDIR="${BASE_DIR}/build/.pseudodb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "${0%/*}/pseudo" "${@}"
|
exec "${0%-wrapper}" "${@}"
|
||||||
|
@ -33,7 +33,7 @@ endef
|
|||||||
HOST_PSEUDO_POST_INSTALL_HOOKS += HOST_PSEUDO_INSTALL_WRAPPER
|
HOST_PSEUDO_POST_INSTALL_HOOKS += HOST_PSEUDO_INSTALL_WRAPPER
|
||||||
|
|
||||||
define HOST_PSEUDO_FAKEROOT_SYMLINK
|
define HOST_PSEUDO_FAKEROOT_SYMLINK
|
||||||
ln -sf pseudo-wrapper $(HOST_DIR)/usr/bin/fakeroot
|
ln -sf pseudo $(HOST_DIR)/usr/bin/fakeroot
|
||||||
endef
|
endef
|
||||||
HOST_PSEUDO_POST_INSTALL_HOOKS += HOST_PSEUDO_FAKEROOT_SYMLINK
|
HOST_PSEUDO_POST_INSTALL_HOOKS += HOST_PSEUDO_FAKEROOT_SYMLINK
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user