Skip to contentSkip to conversation

build-compare: add date to PV

PATCH Superseded Joe Slater 4 participants 5 messages Mar 16, 2017 – Mar 17, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH v2 1/1 build-compare: add date to PV

We want PV values to be easily ordered, so use the latest entry in build-compare.changes which will also match the date of SRCREV.

---
 .../build-compare/build-compare_git.bb             |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/build-compare/build-compare_git.bb +3 -1
index eb12e40..bdbad03 100644
@@ -17,8 +17,10 @@ SRC_URI = "git://github.com/openSUSE/build-compare.git \
            file://functions.sh-improve-deb-and-ipk-checking.patch \
            "
 
+# Date matches entry in build-compare.changes and date of SRCREV.
+#
 SRCREV = "c5352c054c6ef15735da31b76d6d88620f4aff0a"
-PV = "git+${SRCPV}"
+PV = "2015.02.10+git${SRCPV}"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
1.7.9.5
#1 lore raw

Given that PV for *_git recipes should now be specified and start with a version, it would be nice to shorten (or eliminate) SRCPV. At least get rid of the AUTOINC. Perhaps shorten the amount of SRCREV included. The point is that as currently computed, PV will be far longer than the useful information it provides.

Also, should PE be defined given that the form of PV has changed? I know it hasn't been for any of the recipes modified so far.

Joe

Quoted 35 lines

-----Original Message-----
From: Joe Slater [mailto:[email protected]]
Sent: Thursday, March 16, 2017 10:19 AM
To: [email protected]
Cc: Slater, Joseph
Subject: [oe-core][v2][PATCH 1/1] build-compare: add date to PV

We want PV values to be easily ordered, so use the latest entry in build-compare.changes which will also match the date of SRCREV.

---
 .../build-compare/build-compare_git.bb             |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes- renamed from meta/recipes-devtools/build-compare/build-compare_git.bb +0 -0

devtools/build-compare/build-compare_git.bb index eb12e40..bdbad03 100644

meta/recipes-devtools/build-compare/build-compare_git.bb +3 -2
@@ -17,8 +17,10 @@ SRC_URI = "git://github.com/openSUSE/build-compare.git \
            file://functions.sh-improve-deb-and-ipk-checking.patch \
            "
 
+# Date matches entry in build-compare.changes and date of SRCREV.
+#
 SRCREV = "c5352c054c6ef15735da31b76d6d88620f4aff0a"
-PV = "git+${SRCPV}"
+PV = "2015.02.10+git${SRCPV}"
 
 S = "${WORKDIR}/git"
 
--

1.7.9.5

#2 lore raw
Quoted 3 lines · Joseph

Also, should PE be defined given that the form of PV has changed? I know it hasn't been for any of the recipes modified so far.

Depends on how it changed. Numbers sort before letters, so yes this needs a PE bump.

Ross

#3 lore raw
In reply to Slater, Joseph
Quoted 6 lines · Joseph

Given that PV for *_git recipes should now be specified and start with a version, it would be nice to shorten (or eliminate) SRCPV.  At least get rid of the AUTOINC.  Perhaps shorten the amount of SRCREV included.  The point is that as currently computed, PV will be far longer than the useful information it provides.

I thought we already did?

e.g. for the kernel you see packages like:

kernel-module-xt-u32-4.10.0-yocto-standard_4.10+git0+805ea440c7_b259a5d744-r0.30_qemux86_64.ipk

which has several shortened hashes in it.

Cheers,

Richard

#4 lore raw
Quoted 16 lines

-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Thursday, March 16, 2017 3:14 PM
To: Slater, Joseph; [email protected]
Subject: Re: [OE-core] [oe-core][v2][PATCH 1/1] build-compare: add date to PV

Quoted 6 lines · Joseph

Given that PV for *_git recipes should now be specified and start with a version, it would be nice to shorten (or eliminate) SRCPV.  At least get rid of the AUTOINC.  Perhaps shorten the amount of SRCREV included.  The point is that as currently computed, PV will be far longer than the useful information it provides.

Quoted 8 lines

I thought we already did?

e.g. for the kernel you see packages like:

kernel-module-xt-u32-4.10.0-yocto-standard_4.10+git0+805ea440c7_b259a5d744- r0.30_qemux86_64.ipk

which has several shortened hashes in it.

I guess it matters where you look. For things like rpm's you see "...+git0+...". For things like items generated by the archiver you see "...+gitAUTOINC+...". In either case, the characters appended to "git" do not seem to be useful. And, since the 805... and b25... hashes are just anecdotal because the <version>-yocto determines version sequence, they could be much shorter.

Joe

Quoted 4 lines

Cheers,

Richard