]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
sdk: Fix path length limit to match reserved size
authorRobert Kovacsics <robert.kovacsics@carallon.com>
Thu, 9 May 2024 13:28:17 +0000 (14:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 May 2024 11:42:54 +0000 (12:42 +0100)
There were two different interpreter lengths in use, make them match.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-extract.sh
meta/recipes-core/meta/uninative-tarball.bb

index 4386b985bb068cefff8cbe0963df05408451fe8d..89d30005fd42d28eaeb71aa4b8842734a2b49157 100644 (file)
@@ -164,7 +164,9 @@ else
 fi
 
 # limit the length for target_sdk_dir, ensure the relocation behaviour in relocate_sdk.py has right result.
-if [ ${#target_sdk_dir} -gt 2048 ]; then
+# This is due to ELF interpreter being set to 'a'*1024 in
+# meta/recipes-core/meta/uninative-tarball.bb
+if [ ${#target_sdk_dir} -gt 1024 ]; then
        echo "Error: The target directory path is too long!!!"
        exit 1
 fi
index 7eebcaf11a439698721c2c0cd2ebd44e72ada020..0fd01fdb646aebff3feeec5a4f63c2f7dfc1a0a5 100644 (file)
@@ -58,6 +58,8 @@ fakeroot archive_sdk() {
        DEST="./${SDK_ARCH}-${SDK_OS}"
        mv sysroots/${SDK_SYS} $DEST
        rm sysroots -rf
+       # There is a check in meta/files/toolchain-shar-extract.sh -- make sure to
+       # keep that check up to date if changing the `1024`
        patchelf --set-interpreter ${@''.join('a' for n in range(1024))} $DEST/usr/bin/patchelf
        mv $DEST/usr/bin/patchelf $DEST/usr/bin/patchelf-uninative
        ${SDK_ARCHIVE_CMD}