mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 02:42:33 +00:00
gnu-config: Only apply path transformations in the non-native/non-nativesdk case
The BUILD_ARCH != TARGET_ARCH check isn't a safe one to detect native builds and doesn't cover the nativesdk case. This converts the recipe to use PN instead which is more accurate and ensures the correct entries making it into the correct packages. (From OE-Core rev: 4a601314604e8428d9dace95c32a71a57eacaaf5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
7cffb5b8a8
commit
520f7b5b09
@ -28,7 +28,7 @@ do_install () {
|
||||
sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
|
||||
-e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
|
||||
# In the native case we want the system perl as perl-native can't have built yet
|
||||
if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then
|
||||
if [ "${PN}" != "gnu-config-native" -a "${PN}" != "gnu-config-nativesdk" ]; then
|
||||
sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
|
||||
fi
|
||||
chmod 755 ${D}${bindir}/gnu-configize
|
||||
|
||||
@ -29,7 +29,7 @@ do_install () {
|
||||
sed -e 's,@gnu-configdir@,${datadir}/gnu-config,g' \
|
||||
-e 's,@autom4te_perllibdir@,${datadir}/autoconf,g' > ${D}${bindir}/gnu-configize
|
||||
# In the native case we want the system perl as perl-native can't have built yet
|
||||
if [ "${BUILD_ARCH}" != "${TARGET_ARCH}" ]; then
|
||||
if [ "${PN}" != "gnu-config-native" -a "${PN}" != "gnu-config-nativesdk" ]; then
|
||||
sed -i -e 's,/usr/bin/env,${bindir}/env,g' ${D}${bindir}/gnu-configize
|
||||
fi
|
||||
chmod 755 ${D}${bindir}/gnu-configize
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user