Skip to contentSkip to conversation

strace: download release tarballs from GitHub

PATCH Superseded Ross Burton 2 participants 3 messages Oct 3, 2024

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 strace: download release tarballs from GitHub

Switch to downloading the release tarballs from GitHub. Their CDN is rock solid, and strace.io is hosted inside Russia which some networks are blocking.

meta/recipes-devtools/strace/strace_6.11.bb +2 -2
index d98b5fdec9a..a8f11ea8093 100644
@@ -5,7 +5,7 @@ SECTION = "console/utils"
 LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304"
 
-SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
            file://update-gawk-paths.patch \
            file://Makefile-ptest.patch \
            file://run-ptest \
@@ -17,7 +17,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
            "
 SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5"
 
-inherit autotools ptest
+inherit autotools github-releases ptest
 
 # Not yet ported to rv32
 COMPATIBLE_HOST:riscv32 = "null"
---
 meta/recipes-devtools/strace/strace_6.11.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/strace/strace_6.11.bb +2 -2
index d98b5fdec9a..a8f11ea8093 100644
@@ -5,7 +5,7 @@ SECTION = "console/utils"
 LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304"
 
-SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
            file://update-gawk-paths.patch \
            file://Makefile-ptest.patch \
            file://run-ptest \
@@ -17,7 +17,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
            "
 SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5"
 
-inherit autotools ptest
+inherit autotools github-releases ptest
 
 # Not yet ported to rv32
 COMPATIBLE_HOST:riscv32 = "null"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 26 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ross Burton
Sent: den 3 oktober 2024 17:34
To: [email protected]
Subject: [OE-core] [PATCH] strace: download release tarballs from GitHub

Switch to downloading the release tarballs from GitHub. Their CDN is rock solid, and strace.io is hosted inside Russia which some networks are blocking.

meta/recipes-devtools/strace/strace_6.11.bb +1 -1
index d98b5fdec9a..a8f11ea8093 100644
@@ -5,7 +5,7 @@ SECTION = "console/utils"
 LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304"
 
-SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
            file://update-gawk-paths.patch \
            file://Makefile-ptest.patch \
            file://run-ptest \

meta/recipes-devtools/strace/strace_6.11.bb SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \

Quoted 9 lines
meta/recipes-devtools/strace/strace_6.11.bb +1 -2
@@ -17,7 +17,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
            "
 SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5"
 
-inherit autotools ptest
+inherit autotools github-releases ptest
 
 # Not yet ported to rv32
 COMPATIBLE_HOST:riscv32 = "null"
---

Not sure how you did it, but I assume you did not intent to include the patch in the commit message (above)...

Quoted 26 lines
 meta/recipes-devtools/strace/strace_6.11.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/strace/strace_6.11.bb +2 -3
index d98b5fdec9a..a8f11ea8093 100644
@@ -5,7 +5,7 @@ SECTION = "console/utils"
 LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304"
 
-SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
            file://update-gawk-paths.patch \
            file://Makefile-ptest.patch \
            file://run-ptest \
@@ -17,7 +17,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
            "
 SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5"
 
-inherit autotools ptest
+inherit autotools github-releases ptest
 
 # Not yet ported to rv32
 COMPATIBLE_HOST:riscv32 = "null"
--
Quoted 1 line

2.34.1

//Peter

#2 lore raw

Now that’s interesting… I’ll try again.

Ross

Quoted 70 lines · Peter Kjellerstedt
Quoted 33 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ross Burton
Sent: den 3 oktober 2024 17:34
To: [email protected]
Subject: [OE-core] [PATCH] strace: download release tarballs from GitHub

Switch to downloading the release tarballs from GitHub. Their CDN is rock solid, and strace.io is hosted inside Russia which some networks are blocking.

meta/recipes-devtools/strace/strace_6.11.bb +0 -0
index d98b5fdec9a..a8f11ea8093 100644
@@ -5,7 +5,7 @@ SECTION = "console/utils"

LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304"

meta/recipes-devtools/strace/strace_6.11.bb +1 -1
-SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
           file://update-gawk-paths.patch \
           file://Makefile-ptest.patch \
           file://run-ptest \
@@ -17,7 +17,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
           "

SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5"

meta/recipes-devtools/strace/strace_6.11.bb +1 -1
-inherit autotools ptest
+inherit autotools github-releases ptest
Quoted 3 lines

# Not yet ported to rv32
COMPATIBLE_HOST:riscv32 = "null"
---

Not sure how you did it, but I assume you did not intent to include the patch in the commit message (above)...

Quoted 23 lines

meta/recipes-devtools/strace/strace_6.11.bb | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/strace/strace_6.11.bb +0 -0
index d98b5fdec9a..a8f11ea8093 100644
@@ -5,7 +5,7 @@ SECTION = "console/utils"

LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=2433d82e1432a76dc3eadd9002bfe304"

meta/recipes-devtools/strace/strace_6.11.bb +1 -1
-SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
           file://update-gawk-paths.patch \
           file://Makefile-ptest.patch \
           file://run-ptest \
@@ -17,7 +17,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
           "

SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5"

meta/recipes-devtools/strace/strace_6.11.bb +1 -1
-inherit autotools ptest
+inherit autotools github-releases ptest
Quoted 4 lines

# Not yet ported to rv32
COMPATIBLE_HOST:riscv32 = "null"
--
2.34.1

//Peter