diff --git a/recipes-extended/upx/upx_git.bb b/recipes-extended/upx/upx_git.bb index 870f0883..14a986e2 100644 --- a/recipes-extended/upx/upx_git.bb +++ b/recipes-extended/upx/upx_git.bb @@ -2,12 +2,36 @@ SUMMARY = "Ultimate executable compressor." HOMEPAGE = "https://upx.github.io/" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=353753597aa110e0ded3508408c6374a" -SRCREV_upx = "03c4184067d8f6cf7a9f7bffd3b92d0035f64eda" -PV = "4.2.4+git${SRCPV}" # Note: DO NOT use released tarball in favor of the git repository with submodules. # it makes maintenance easier for CVEs or other issues. -SRC_URI = "gitsm://github.com/upx/upx;protocol=https;;name=upx;branch=devel" + +SRCREV_upx = "44e4bd0b5454ff8aee1ff3376974dfe6014300d9" +PV = "4.2.4+git${SRCPV}" + +# SRCREVs are from: +# git submodule status | awk '{ commit_hash = $1; sub(/vendor\//, "", $2); gsub("-", "_", $2); printf "SRCREV_vendor_%s = \"%s\"\n", $2, commit_hash }' +# +# with two substitions for invalid SRCREVs (hence why the gitsm fetcher +# has issues) +SRCREV_vendor_doctest = "d5a5b267ecb2f45cdb83d569b24fb920f90e91ca" +SRCREV_vendor_lzma_sdk = "f9637f9f563d17b6ecf33ae2212dcd44866bfb25" +SRCREV_vendor_ucl = "a60611d342b0b7d2924c495ebaa1910e4c3c3fe6" +SRCREV_vendor_valgrind = "b054e44ea1b6d630853ed74d33e0934ef4642efc" +SRCREV_vendor_zlib = "0a41a7d0a974d0b43afe4afe4b8025c8f144474e" + +# This is broken for commits newer than 4.2.4 with invalid SRCREVs being reported +# by the git submodules. We switch back to individual fetches while this is +# investigated. +# SRC_URI = "gitsm://github.com/upx/upx;protocol=https;;name=upx;branch=devel" +SRCREV_FORMAT = "upx" +SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https \ + git://github.com/upx/upx-vendor-doctest;name=vendor_doctest;subdir=git/vendor/doctest;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-lzma-sdk;name=vendor_lzma_sdk;subdir=git/vendor/lzma-sdk;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-ucl;name=vendor_ucl;subdir=git/vendor/ucl;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-zlib;name=vendor_zlib;subdir=git/vendor/zlib;branch=upx-vendor;protocol=https \ + git://github.com/upx/upx-vendor-valgrind;name=vendor_valgrind;subdir=git/vendor/valgrind;branch=upx-vendor;protocol=https \ + " S = "${WORKDIR}/git"