Skip to contentSkip to conversation

upx: Bump to v3.99

PATCH In review Joakim Roubert 4 participants 6 messages Mar 29, 2023 – Apr 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 upx: Bump to v3.99

It seems there has been recent changes to the UPX repo that make the current 3.96 setup here fail now. This patch mitigates that and also bumps UPX to version 3.99.

Change-Id I9fb718c9e98340a85997fde6c9d7c3fa1472d263
---
 recipes-extended/upx/upx_git.bb | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
recipes-extended/upx/upx_git.bb +8 -8
index bb8004c6..3cf82065 100644
@@ -1,13 +1,13 @@
 HOMEPAGE = "http://upx.sourceforge.net"
 SUMMARY = "Ultimate executable compressor."
 
-SRCREV_upx = "8d1a98e03bf281b2cee459b6c27347e56d13c6a8"
-SRCREV_vendor_doctest = "666e648b68fda2deb141a1fe93e3fd1e2795dd0f"
-SRCREV_vendor_lzma_sdk = "9ebf8f468c689d83504e6c08c6bc26c4a1cf180f"
-SRCREV_vendor_ucl = "4b58d592199dc1e5db691e1a54fb0e5e9af0ecaf"
-SRCREV_vendor_zlib = "2a5b338eb173a701ed179e951d4c390e75e8d4c7"
+SRCREV_upx = "feef2e38cfe7660c6d9e22b36defad4cfbf563a9"
+SRCREV_vendor_doctest = "${AUTOREV}"
+SRCREV_vendor_lzma_sdk = "${AUTOREV}"
+SRCREV_vendor_ucl = "${AUTOREV}"
+SRCREV_vendor_zlib = "${AUTOREV}"
 SRCREV_FORMAT = "upx"
-SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https \
+SRC_URI = "git://github.com/upx/upx;name=upx;branch=master;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 \
@@ -17,13 +17,13 @@ SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https \
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=353753597aa110e0ded3508408c6374a"
 
-DEPENDS = "zlib libucl xz cmake-native"
+DEPENDS = "cmake-native"
 
 # inherit cmake
 
 S = "${WORKDIR}/git"
 
-PV = "3.96+${SRCPV}"
+PV = "3.99+${SRCPV}"
 
 EXTRA_OEMAKE += " \
     UPX_UCLDIR=${STAGING_DIR_TARGET} \
Signature · 1 line
2.30.2
#1 lore raw

Hi Joakim,

Joakim Roubert <[email protected]> escreveu no dia quarta, 29/03/2023 à(s) 15:19:

Quoted 20 lines

It seems there has been recent changes to the UPX repo that make the current 3.96 setup here fail now. This patch mitigates that and also bumps UPX to version 3.99.

Change-Id I9fb718c9e98340a85997fde6c9d7c3fa1472d263
---
 recipes-extended/upx/upx_git.bb | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
recipes-extended/upx/ renamed from recipes-extended/upx/upx_git.bb +0 -0

upx_git.bb
index bb8004c6..3cf82065 100644

recipes-extended/upx/upx_git.bb +0 -1
@@ -1,13 +1,13 @@
 HOMEPAGE = "http://upx.sourceforge.net"
 SUMMARY = "Ultimate executable compressor."
 
-SRCREV_upx = "8d1a98e03bf281b2cee459b6c27347e56d13c6a8"

recipes-extended/upx/upx_git.bb line 9

Quoted 10 lines
recipes-extended/upx/upx_git.bb +5 -4
-SRCREV_vendor_doctest = "666e648b68fda2deb141a1fe93e3fd1e2795dd0f"
-SRCREV_vendor_lzma_sdk = "9ebf8f468c689d83504e6c08c6bc26c4a1cf180f"
-SRCREV_vendor_ucl = "4b58d592199dc1e5db691e1a54fb0e5e9af0ecaf"
-SRCREV_vendor_zlib = "2a5b338eb173a701ed179e951d4c390e75e8d4c7"
+SRCREV_upx = "feef2e38cfe7660c6d9e22b36defad4cfbf563a9"
+SRCREV_vendor_doctest = "${AUTOREV}"
+SRCREV_vendor_lzma_sdk = "${AUTOREV}"
+SRCREV_vendor_ucl = "${AUTOREV}"
+SRCREV_vendor_zlib = "${AUTOREV}"
 

The AUTOREV will break the reproducibility of this package.

Jose

Quoted 46 lines
recipes-extended/upx/upx_git.bb +1 -1
 SRCREV_FORMAT = "upx"
-SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https
 \
+SRC_URI = "git://github.com/upx/upx;name=upx;branch=master;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 \

recipes-extended/upx/upx_git.bb +2 -2
@@ -17,13 +17,13 @@ SRC_URI = "git://
 github.com/upx/upx;name=upx;branch=devel;protocol=https \
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=353753597aa110e0ded3508408c6374a"
 
-DEPENDS = "zlib libucl xz cmake-native"
+DEPENDS = "cmake-native"
 
 # inherit cmake
 
 S = "${WORKDIR}/git"
 
-PV = "3.96+${SRCPV}"
+PV = "3.99+${SRCPV}"
 
 EXTRA_OEMAKE += " \
     UPX_UCLDIR=${STAGING_DIR_TARGET} \

--
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#7963):
https://lists.yoctoproject.org/g/meta-virtualization/message/7963
Mute This Topic: https://lists.yoctoproject.org/mt/97929374/5052612
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Best regards,

José Quaresma
#2 lore raw
Quoted 23 lines · Jose Quaresma

Hi Joakim,

Joakim Roubert <[email protected]> escreveu no dia quarta, 29/03/2023 à(s) 15:19:

Quoted 19 lines

It seems there has been recent changes to the UPX repo that make the current 3.96 setup here fail now. This patch mitigates that and also bumps UPX to version 3.99.

Change-Id I9fb718c9e98340a85997fde6c9d7c3fa1472d263
---
 recipes-extended/upx/upx_git.bb | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
recipes-extended/upx/upx_git.bb +0 -0
index bb8004c6..3cf82065 100644
@@ -1,13 +1,13 @@
 HOMEPAGE = "http://upx.sourceforge.net"
 SUMMARY = "Ultimate executable compressor."
 
Quoted 14 lines

recipes-extended/upx/upx_git.bb line 8

Quoted 10 lines
recipes-extended/upx/upx_git.bb +5 -5
-SRCREV_upx = "8d1a98e03bf281b2cee459b6c27347e56d13c6a8"
-SRCREV_vendor_doctest = "666e648b68fda2deb141a1fe93e3fd1e2795dd0f"
-SRCREV_vendor_lzma_sdk = "9ebf8f468c689d83504e6c08c6bc26c4a1cf180f"
-SRCREV_vendor_ucl = "4b58d592199dc1e5db691e1a54fb0e5e9af0ecaf"
-SRCREV_vendor_zlib = "2a5b338eb173a701ed179e951d4c390e75e8d4c7"
+SRCREV_upx = "feef2e38cfe7660c6d9e22b36defad4cfbf563a9"
+SRCREV_vendor_doctest = "${AUTOREV}"
+SRCREV_vendor_lzma_sdk = "${AUTOREV}"
+SRCREV_vendor_ucl = "${AUTOREV}"
+SRCREV_vendor_zlib = "${AUTOREV}"

The AUTOREV will break the reproducibility of this package.

Right, we can't have AUTOREV in non special "development" packages.

Bruce

Quoted 46 lines

Jose

Quoted 24 lines
recipes-extended/upx/upx_git.bb +3 -4
 SRCREV_FORMAT = "upx"
-SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https \
+SRC_URI = "git://github.com/upx/upx;name=upx;branch=master;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 \
@@ -17,13 +17,13 @@ SRC_URI = "git://github.com/upx/upx;name=upx;branch=devel;protocol=https \
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=353753597aa110e0ded3508408c6374a"
 
-DEPENDS = "zlib libucl xz cmake-native"
+DEPENDS = "cmake-native"
 
 # inherit cmake
 
 S = "${WORKDIR}/git"
 
-PV = "3.96+${SRCPV}"
+PV = "3.99+${SRCPV}"
 
 EXTRA_OEMAKE += " \
     UPX_UCLDIR=${STAGING_DIR_TARGET} \
--
Quoted 5 lines

2.30.2

--
Best regards,

José Quaresma

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7964): https://lists.yoctoproject.org/g/meta-virtualization/message/7964
Mute This Topic: https://lists.yoctoproject.org/mt/97929374/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#3 lore raw
In reply to Jose Quaresma
Quoted 2 lines · Jose Quaresma

The AUTOREV will break the reproducibility of this package.

How should we do here? If I checkout the tag v3.99 in for the UPX repo and carry out the update submodules, I will end up with a different commit ID for the submodules every time. How can we pinpoint one that sticks and actually is the one that corresponds to the v3.99?

https://github.com/upx/upx/blob/devel/.gitmodules#L9

Or should we just go with the single commit (with the commit message "Automatically created from git devel branch 4cbdb055db52") in upx-vendor?

I believe that is what we had with v3.96, but now those commits seem to have vanished from the git repos so 3.96 fails to download the sources.

BR,

/Joakim

Signature · 7 lines
Joakim Roubert
Senior Engineer

Axis Communications AB
Emdalavägen 14, SE-223 69 Lund, Sweden
Tel: +46 46 272 18 00, Tel (direct): +46 46 272 27 48
Fax: +46 46 13 61 30, www.axis.com
#4 lore raw
Quoted 9 lines · Joakim Roubert
Quoted 2 lines · Jose Quaresma

The AUTOREV will break the reproducibility of this package.

How should we do here? If I checkout the tag v3.99 in for the UPX repo and carry out the update submodules, I will end up with a different commit ID for the submodules every time. How can we pinpoint one that sticks and actually is the one that corresponds to the v3.99?

The submodules shouldn't be changing when you check out the same tag.

i.e. git submodule status

Should always return the same commit IDs when you check out the same tag, since those hashes are recorded in the git repository.

It would obviously still be better if we could use the gitsm fetcher, but the way the repository is layed out was causing problems, so we've switched to this. It might be worth double checking if gitsm on master can handle the layout now, or if there's a way to fix things up to work.

But assuming that the hashes aren't changing, you can just capture the hashes reported by git submodule status, put those in the recipe and that will get us the same results as the gitsm fetches for that upstream project tag.

Bruce

Quoted 22 lines

https://github.com/upx/upx/blob/devel/.gitmodules#L9

Or should we just go with the single commit (with the commit message "Automatically created from git devel branch 4cbdb055db52") in upx-vendor?

I believe that is what we had with v3.96, but now those commits seem to have vanished from the git repos so 3.96 fails to download the sources.

BR,

/Joakim
--
Joakim Roubert
Senior Engineer

Axis Communications AB
Emdalavägen 14, SE-223 69 Lund, Sweden
Tel: +46 46 272 18 00, Tel (direct): +46 46 272 27 48
Fax: +46 46 13 61 30, www.axis.com

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7974): https://lists.yoctoproject.org/g/meta-virtualization/message/7974
Mute This Topic: https://lists.yoctoproject.org/mt/97929374/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

#5 lore raw
Quoted 7 lines · Bruce Ashfield

The submodules shouldn't be changing when you check out the same tag.

i.e. git submodule status

Should always return the same commit IDs when you check out the same tag, since those hashes are recorded in the git repository.

That makes total sense, but I can't really wrap my head around this:
If I (manually) clone the upx repo and the run

git submodule update --init --recursive

the commit IDs that get checked out for the submodules are not found by bitbake. Same thing if I manually clone the submodule and try to check out that commit ID, it is not valid.

git log

for the checked out submodule will give output like this (from doctest):

===============
commit a2b8de69f610dfdc91e915af735138fe8654ff6c (HEAD)

Author: upx-vendor-bot <none@none>
Date:   Tue Sep 13 17:09:52 2022 +0000

Automatically created from git devel branch 0c77f0f027af
===============

So I'm wondering what is happening with that bot.

BR,

/Joakim

Signature · 7 lines
Joakim Roubert
Senior Engineer

Axis Communications AB
Emdalavägen 14, SE-223 69 Lund, Sweden
Tel: +46 46 272 18 00, Tel (direct): +46 46 272 27 48
Fax: +46 46 13 61 30, www.axis.com