Skip to contentSkip to conversation

Building logrotate for older releases is broken (was: RE: [PATCH 1/1] logrotate: set downloadfilename)

DISCUSSION Peter Kjellerstedt 3 participants 4 messages Apr 20, 2017 – Apr 21, 2017

lore
Share & tools
lore
#0 lore raw
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Robert Yang
Sent: den 17 april 2017 11:49
To: [email protected]
Subject: [OE-core] [PATCH 1/1] logrotate: set downloadfilename

Otherwise, the filename is r3-9-1.tar.gz which isn't straightforward.

---
 meta/recipes-extended/logrotate/logrotate_3.9.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/logrotate/logrotate_3.9.1.bb +1 -2
index c938d9f..3773170 100644
@@ -19,7 +19,7 @@ S = "${WORKDIR}/${BPN}-r3-9-1"
 
 UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
 
-SRC_URI = "https://github.com/${BPN}/${BPN}/archive/r3-9-1.tar.gz \
+SRC_URI = "https://github.com/${BPN}/${BPN}/archive/r3-9-1.tar.gz;downloadfilename=${BP}.tar.gz\
            file://act-as-mv-when-rotate.patch \
            file://update-the-manual.patch \
            file://disable-check-different-filesystems.patch \
--
Quoted 1 line

2.10.2

The integration of this patch into OE-Core has broken building old releases that rely on fetching the logrotate-3.9.1.tar.gz tar ball with MD5 checksum 4492b145b6d542e4a2f41e77fa199ab0 from the mirror at http://downloads.yoctoproject.org/mirror/sources/. Can you please change the recipe to not call the downloaded tar ball the same name as it had in Jethro, Krogoth and Morty (given that the checksums do not match), and then restore the original tar ball in the mirror?

Without this correction, it is impossible to recreate old builds based on either of the Jethro, Krogoth and Morty releases without doing manual fixes.

//Peter

#1 lore raw
Quoted 8 lines · Peter Kjellerstedt

The integration of this patch into OE-Core has broken building old releases that rely on fetching the logrotate-3.9.1.tar.gz tar ball with MD5 checksum 4492b145b6d542e4a2f41e77fa199ab0 from the mirror at http://downloads.yoctoproject.org/mirror/sources/. Can you please change the recipe to not call the downloaded tar ball the same name as it had in Jethro, Krogoth and Morty (given that the checksums do not match), and then restore the original tar ball in the mirror?

Eek, of course. :(

Staged a revert locally for pyro/master.

Michael, would it be possible to restore this older logrotate tarball to the mirror? We might need donations of a tarball...

Ross

#2 lore raw

Re: Building logrotate for older releases is broken

Quoted 14 lines · Ross

On 20 April 2017 at 13:51, Peter Kjellerstedt <[email protected] <mailto:[email protected]>> wrote:

The integration of this patch into OE-Core has broken building old releases that rely on fetching the logrotate-3.9.1.tar.gz tar ball with MD5 checksum 4492b145b6d542e4a2f41e77fa199ab0 from the mirror at http://downloads.yoctoproject.org/mirror/sources/
<http://downloads.yoctoproject.org/mirror/sources/>. Can you please change the recipe to not call the downloaded tar ball the same name as it had in Jethro, Krogoth and Morty (given that the checksums do not match), and then restore the original tar ball in the mirror?

Quoted 7 lines

Eek, of course. :(

Staged a revert locally for pyro/master.

Michael, would it be possible to restore this older logrotate tarball to the mirror? We might need donations of a tarball...

I've restored "4492b145b6d542e4a2f41e77fa199ab0 logrotate-3.9.1.tar.gz" on downloads.yoctoproject.org and set it so it can't be overwritten.

Please let me know if anything else is required.

Quoted 1 line

Ross

Signature · 2 lines
Michael Halstead
Linux Foundation / SysAdmin
#3 lore raw

Re: Building logrotate for older releases is broken

Quoted 5 lines · Michael Halstead

I've restored "4492b145b6d542e4a2f41e77fa199ab0 logrotate-3.9.1.tar.gz" on downloads.yoctoproject.org and set it so it can't be overwritten.

Please let me know if anything else is required.

Thanks Michael!

Ross