fix(main/pkg-config): use symlinks instead of hardlinks
To fix error when building on device. The file that is hardlinked/softlinked is removed through TERMUX_PKG_RM_AFTER_INSTALL so we could have also just removed the Makefile target that runs ln.
This commit is contained in:
parent
7565ac8bf0
commit
52eff4a81c
|
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Helper tool used when compiling applications and librari
|
||||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=0.29.2
|
TERMUX_PKG_VERSION=0.29.2
|
||||||
TERMUX_PKG_REVISION=1
|
TERMUX_PKG_REVISION=2
|
||||||
TERMUX_PKG_SRCURL=https://pkgconfig.freedesktop.org/releases/pkg-config-${TERMUX_PKG_VERSION}.tar.gz
|
TERMUX_PKG_SRCURL=https://pkgconfig.freedesktop.org/releases/pkg-config-${TERMUX_PKG_VERSION}.tar.gz
|
||||||
TERMUX_PKG_SHA256=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
|
TERMUX_PKG_SHA256=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
|
||||||
TERMUX_PKG_DEPENDS="glib"
|
TERMUX_PKG_DEPENDS="glib"
|
||||||
|
@ -11,11 +11,7 @@ TERMUX_PKG_RM_AFTER_INSTALL="bin/*-pkg-config"
|
||||||
TERMUX_PKG_GROUPS="base-devel"
|
TERMUX_PKG_GROUPS="base-devel"
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
# Certain packages are not safe to build on device because their
|
# Use ln -s instead of ln to avoid attempt at hardlinking on
|
||||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
# device
|
||||||
if $TERMUX_ON_DEVICE_BUILD; then
|
export ac_cv_prog_LN='ln -s'
|
||||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -Rf $TERMUX_PREFIX/bin/*pkg-config
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue