meta-arago: remove old deprecated long-SDKPATH hack
PATCH 1/1 meta-arago: remove old deprecated long-SDKPATH hack
From: Denys Dmytriyenko <[email protected]>
The long-SDKPATH hack was used for pre-allocating large enough fields in the ELF headers of nativesdk binaries, so when they are relocated the new path to the dynamic loader and libraries would fit. This is no longer necessary for some time, so time to remove the hack.
Change the default SDKPATHINSTALL to include the SDK/distro version. Also drop all workarounds that were needed due to the unusual SDKPATH.
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/conf/distro/arago.conf | 6 +----- .../recipes-devtools/perl/perl_%.bbappend | 12 ------------ .../recipes-devtools/python/python3_%.bbappend | 12 ------------ .../recipes-core/meta/meta-toolchain-arago.bb | 2 +- 4 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 meta-arago-distro/recipes-devtools/perl/perl_%.bbappend delete mode 100644 meta-arago-distro/recipes-devtools/python/python3_%.bbappend
meta-arago-distro/conf/distro/arago.conf +1 -5
@@ -28,8 +28,7 @@ SDK_NAME_PREFIX = "arago" SDK_VERSION = "${DISTRO_VERSION}" SDK_VENDOR = "-${SDK_NAME_PREFIX}" SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_VERSION}" -SDKPATH_REAL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_VERSION}" -SDKPATH = "${@"/tmp/"+"x"*96+"/"+"y"*96}" +SDKPATHINSTALL = "/opt/${SDK_NAME}" IMAGE_FSTYPES += "tar.xz.md5sum"
@@ -214,6 +213,3 @@ LICENSE_FLAGS_ACCEPTED = "commercial_gst-ffmpeg commercial_gstreamer1.0-libav co # Do not package own copy of perl into devkit, rely on host one ASSUME_PROVIDED += "nativesdk-perl" - -# Disable empty-dirs QA check, which trips on our devkit default SDKPATH -ERROR_QA:remove = "empty-dirs"
meta-arago-distro/recipes-devtools/perl/perl_%.bbappend deleted +0 -12
@@ -1,12 +0,0 @@ -# In arago.conf, we pre-allocate SDK path very long to reserve enough space in ELF headers -# and then it gets replaced with a short real path at the time of SDK creation: -# SDKPATH_REAL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_VERSION}" -# SDKPATH = "${@"/tmp/"+"x"*96+"/"+"y"*96}" -# Unfortunately, that triggers the new shebang-size QA check in nativesdk-perl packages - -python() { - if d.getVar('CLASSOVERRIDE') == "class-nativesdk": - pkgs = d.getVar("PACKAGES").split() - for p in pkgs: - d.appendVar('INSANE_SKIP:%s' % (p), ' shebang-size') -}
meta-arago-distro/recipes-devtools/python/python3_%.bbappend deleted +0 -12
@@ -1,12 +0,0 @@ -# In arago.conf, we pre-allocate SDK path very long to reserve enough space in ELF headers -# and then it gets replaced with a short real path at the time of SDK creation: -# SDKPATH_REAL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_VERSION}" -# SDKPATH = "${@"/tmp/"+"x"*96+"/"+"y"*96}" -# Unfortunately, that triggers the new shebang-size QA check in nativesdk-python3 packages - -python() { - if d.getVar('CLASSOVERRIDE') == "class-nativesdk": - pkgs = d.getVar("PACKAGES").split() - for p in pkgs: - d.appendVar('INSANE_SKIP:%s' % (p), ' shebang-size') -}
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +1 -1
@@ -178,7 +178,7 @@ if [ "$INST_ARCH" != "$SDK_ARCH" ]; then fi fi -DEFAULT_INSTALL_DIR="${SDKPATH_REAL}" +DEFAULT_INSTALL_DIR="${SDKPATHINSTALL}" TMPSDKPATH="${SDKPATH}" SUDO_EXEC="" target_sdk_dir=""
Signature · 1 line
2.25.1