All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] xmlto: Remove the explicit PV setting
@ 2024-01-19 11:33 mingli.yu
  2024-01-19 11:33 ` [PATCH 2/3] gnupg: Make the version consistent mingli.yu
  2024-01-19 11:33 ` [PATCH 3/3] libgcrypt: " mingli.yu
  0 siblings, 2 replies; 6+ messages in thread
From: mingli.yu @ 2024-01-19 11:33 UTC (permalink / raw)
  To: openembedded-core

From: Mingli Yu <mingli.yu@windriver.com>

The latest release for xmlto is 0.0.28 [1], but the PV is set
individually [2] in terms of backport several patches to fix
builds with newer compilers after 0.0.28 was releases in 2015.

[1] https://releases.pagure.org/xmlto/
[2] https://git.openembedded.org/openembedded-core/commit/?id=27a5000724e4f4df274279bcd801d1dc2830208e

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-devtools/xmlto/xmlto_0.0.28.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
index d5a0e69849..69f989f5b8 100644
--- a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
@@ -11,8 +11,6 @@ UPSTREAM_CHECK_COMMITS = "1"
 SRC_URI = "git://pagure.io/xmlto.git;protocol=https;branch=master"
 S = "${WORKDIR}/git"
 
-PV .= "+0.0.29+git"
-
 inherit autotools
 
 CLEANBROKEN = "1"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] gnupg: Make the version consistent
  2024-01-19 11:33 [PATCH 1/3] xmlto: Remove the explicit PV setting mingli.yu
@ 2024-01-19 11:33 ` mingli.yu
  2024-01-19 11:43   ` [OE-core] " Richard Purdie
  2024-01-19 17:41   ` Ross Burton
  2024-01-19 11:33 ` [PATCH 3/3] libgcrypt: " mingli.yu
  1 sibling, 2 replies; 6+ messages in thread
From: mingli.yu @ 2024-01-19 11:33 UTC (permalink / raw)
  To: openembedded-core

From: Mingli Yu <mingli.yu@windriver.com>

The commit [b67e4e523 Improve the beta number generation.] [1]
extends the version to make it work well for no release version,
but it introduces the version inconsistency.

Considering we mainly use a release version in oe, so remove the
added suffix to keep consistent.

Before the patch:
 # rpm -qa | grep gnupg
 gnupg-gpg-2.4.3-r0.core2_64
 gnupg-2.4.3-r0.core2_64
 # gpgv --version
 gpgv (GnuPG) 2.4.3-unknown
 [snip]

After the patch:
 # rpm -qa | grep gnupg
 gnupg-gpg-2.4.3-r0.core2_64
 gnupg-2.4.3-r0.core2_64
 # gpgv --version
 gpgv (GnuPG) 2.4.3
 [snip]

[1] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blobdiff;f=autogen.sh;h=2b0a5dc51a7386ef90ff6c8358d26b9cc65c0c72;hp=471193c2af6a298fdde466950061dd890feb230e;hb=b67e4e523e6d19d384e23c5bb03010caebd150e7;hpb=518d835380a2ae01d6a9cc19de92684baade96a4

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 ...autogen.sh-Remove-the-unknown-suffix.patch | 43 +++++++++++++++++++
 meta/recipes-support/gnupg/gnupg_2.4.3.bb     |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 meta/recipes-support/gnupg/gnupg/0001-autogen.sh-Remove-the-unknown-suffix.patch

diff --git a/meta/recipes-support/gnupg/gnupg/0001-autogen.sh-Remove-the-unknown-suffix.patch b/meta/recipes-support/gnupg/gnupg/0001-autogen.sh-Remove-the-unknown-suffix.patch
new file mode 100644
index 0000000000..05614954e0
--- /dev/null
+++ b/meta/recipes-support/gnupg/gnupg/0001-autogen.sh-Remove-the-unknown-suffix.patch
@@ -0,0 +1,43 @@
+From 7bdc05ad7c2e196344565988dfc0225eeb86ec0a Mon Sep 17 00:00:00 2001
+From: Mingli Yu <mingli.yu@windriver.com>
+Date: Fri, 19 Jan 2024 16:29:06 +0800
+Subject: [PATCH] autogen.sh: Remove the unknown suffix
+
+The commit [b67e4e523 Improve the beta number generation.] [1]
+extends the version to make it work well for no release version
+and introduce the below version inconsistency as below:
+ # rpm -qa | grep gnupg
+ gnupg-gpg-2.4.3-r0.core2_64
+ gnupg-2.4.3-r0.core2_64
+ # gpgv --version
+ gpgv (GnuPG) 2.4.3-unknown
+ [snip]
+
+Considering we mainly use a release version in oe, so remove the added
+suffix to keep consistent.
+
+[1] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blobdiff;f=autogen.sh;h=2b0a5dc51a7386ef90ff6c8358d26b9cc65c0c72;hp=471193c2af6a298fdde466950061dd890feb230e;hb=b67e4e523e6d19d384e23c5bb03010caebd150e7;hpb=518d835380a2ae01d6a9cc19de92684baade96a4
+
+Upstream-Status: Inappropriate [OE-Specific as we use a release version in oe]
+
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ autogen.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/autogen.sh b/autogen.sh
+index 78753b5..fdaa0ad 100755
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -237,7 +237,7 @@ if [ "$myhost" = "find-version" ]; then
+       rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
+     else
+       ingit=no
+-      tmp="-unknown"
++      tmp=""
+       rev="0000000"
+       rvd="0"
+     fi
+-- 
+2.25.1
+
diff --git a/meta/recipes-support/gnupg/gnupg_2.4.3.bb b/meta/recipes-support/gnupg/gnupg_2.4.3.bb
index e91ef34b7d..f50bb7c391 100644
--- a/meta/recipes-support/gnupg/gnupg_2.4.3.bb
+++ b/meta/recipes-support/gnupg/gnupg_2.4.3.bb
@@ -19,6 +19,7 @@ SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
            file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \
            file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \
            file://fix-ldap.patch \
+           file://0001-autogen.sh-Remove-the-unknown-suffix.patch \
            "
 SRC_URI:append:class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \
                                 file://relocate.patch"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] libgcrypt: Make the version consistent
  2024-01-19 11:33 [PATCH 1/3] xmlto: Remove the explicit PV setting mingli.yu
  2024-01-19 11:33 ` [PATCH 2/3] gnupg: Make the version consistent mingli.yu
@ 2024-01-19 11:33 ` mingli.yu
  1 sibling, 0 replies; 6+ messages in thread
From: mingli.yu @ 2024-01-19 11:33 UTC (permalink / raw)
  To: openembedded-core

From: Mingli Yu <mingli.yu@windriver.com>

The change [1] extends a -unknown suffix to version and introduces
the version inconsistency.

Before the patch:
   # rpm -qa | grep libgcrypt
   libgcrypt-1.10.3-r0.core2_64
   libgcrypt-ptest-1.10.3-r0.core2_64
   # rpm -ql libgcrypt
   /usr
   /usr/bin
   /usr/bin/mpicalc
   /usr/lib64
   /usr/lib64/libgcrypt.so.20
   /usr/lib64/libgcrypt.so.20.4.3
   # mpicalc --help
   mpicalc 2.0
   libgcrypt 1.10.3-unknown
   [snip]

After the patch:
   # rpm -qa | grep libgcrypt
   libgcrypt-1.10.3-r0.core2_64
   libgcrypt-ptest-1.10.3-r0.core2_64
   # rpm -ql libgcrypt
   /usr
   /usr/bin
   /usr/bin/mpicalc
   /usr/lib64
   /usr/lib64/libgcrypt.so.20
   /usr/lib64/libgcrypt.so.20.4.3
   # mpicalc --help
   mpicalc 2.0
   libgcrypt 1.10.3
   [snip]

[1] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff;h=0f2c6ce2;hp=86e5e06a97ae13b8bbf6923ecc76e02b9c429b46

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 ...autogen.sh-Remove-the-unknown-suffix.patch | 50 +++++++++++++++++++
 .../libgcrypt/libgcrypt_1.10.3.bb             |  1 +
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-support/libgcrypt/files/0001-autogen.sh-Remove-the-unknown-suffix.patch

diff --git a/meta/recipes-support/libgcrypt/files/0001-autogen.sh-Remove-the-unknown-suffix.patch b/meta/recipes-support/libgcrypt/files/0001-autogen.sh-Remove-the-unknown-suffix.patch
new file mode 100644
index 0000000000..6023eb82b2
--- /dev/null
+++ b/meta/recipes-support/libgcrypt/files/0001-autogen.sh-Remove-the-unknown-suffix.patch
@@ -0,0 +1,50 @@
+From c951a588d63d0fdf8571112a04dec5d09b27bc3c Mon Sep 17 00:00:00 2001
+From: Mingli Yu <mingli.yu@windriver.com>
+Date: Thu, 18 Jan 2024 16:45:56 +0800
+Subject: [PATCH] autogen.sh: Remove the unknown suffix
+
+The commit [0f2c6ce2 build: Let configure create the VERSION file.] [1]
+extends the version to make the version inconsistent as below:
+   # rpm -qa | grep libgcrypt
+   libgcrypt-1.10.3-r0.core2_64
+   libgcrypt-ptest-1.10.3-r0.core2_64
+   # rpm -ql libgcrypt
+   /usr
+   /usr/bin
+   /usr/bin/mpicalc
+   /usr/lib64
+   /usr/lib64/libgcrypt.so.20
+   /usr/lib64/libgcrypt.so.20.4.3
+   # mpicalc --help
+   mpicalc 2.0
+   libgcrypt 1.10.3-unknown
+   [snip]
+
+Considering we mainly use a release version in oe, so remove the added
+suffix to keep consistent.
+
+[1] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff;h=0f2c6ce2;hp=86e5e06a97ae13b8bbf6923ecc76e02b9c429b46
+
+Upstream-Status: Inappropriate [OE-Specific as we use a release version in oe]
+
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ .../libgcrypt/1.10.3/libgcrypt-1.10.3/autogen.sh                | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/autogen.sh b/autogen.sh
+index 9b36158..d5cccd2 100755
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -266,7 +266,7 @@ if [ "$myhost" = "find-version" ]; then
+     else
+       ingit=no
+       beta=yes
+-      tmp="-unknown"
++      tmp=""
+       rev="0000000"
+       rvd="0"
+     fi
+-- 
+2.25.1
+
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb
index 1c4f4d6038..a2f97d08f0 100644
--- a/meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb
+++ b/meta/recipes-support/libgcrypt/libgcrypt_1.10.3.bb
@@ -25,6 +25,7 @@ SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \
            file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \
            file://no-native-gpg-error.patch \
            file://no-bench-slope.patch \
+           file://0001-autogen.sh-Remove-the-unknown-suffix.patch \
            file://run-ptest \
            "
 SRC_URI[sha256sum] = "8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH 2/3] gnupg: Make the version consistent
  2024-01-19 11:33 ` [PATCH 2/3] gnupg: Make the version consistent mingli.yu
@ 2024-01-19 11:43   ` Richard Purdie
  2024-01-19 17:41   ` Ross Burton
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2024-01-19 11:43 UTC (permalink / raw)
  To: Yu, Mingli, openembedded-core

On Fri, 2024-01-19 at 19:33 +0800, Yu, Mingli wrote:
> From: Mingli Yu <mingli.yu@windriver.com>
> 
> The commit [b67e4e523 Improve the beta number generation.] [1]
> extends the version to make it work well for no release version,
> but it introduces the version inconsistency.
> 
> Considering we mainly use a release version in oe, so remove the
> added suffix to keep consistent.
> 
> Before the patch:
>  # rpm -qa | grep gnupg
>  gnupg-gpg-2.4.3-r0.core2_64
>  gnupg-2.4.3-r0.core2_64
>  # gpgv --version
>  gpgv (GnuPG) 2.4.3-unknown
>  [snip]
> 
> After the patch:
>  # rpm -qa | grep gnupg
>  gnupg-gpg-2.4.3-r0.core2_64
>  gnupg-2.4.3-r0.core2_64
>  # gpgv --version
>  gpgv (GnuPG) 2.4.3
>  [snip]
> 
> [1] https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blobdiff;f=autogen.sh;h=2b0a5dc51a7386ef90ff6c8358d26b9cc65c0c72;hp=471193c2af6a298fdde466950061dd890feb230e;hb=b67e4e523e6d19d384e23c5bb03010caebd150e7;hpb=518d835380a2ae01d6a9cc19de92684baade96a4
> 
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
>  ...autogen.sh-Remove-the-unknown-suffix.patch | 43 +++++++++++++++++++
>  meta/recipes-support/gnupg/gnupg_2.4.3.bb     |  1 +
>  2 files changed, 44 insertions(+)
>  create mode 100644 meta/recipes-support/gnupg/gnupg/0001-autogen.sh-Remove-the-unknown-suffix.patch

We're not carrying a patch to do this, particularly one marked as not
suitable for upstream. Please work with upstream to fix the version
shown when you build a release tarball.

Same for the other patch, 3/3.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH 2/3] gnupg: Make the version consistent
  2024-01-19 11:33 ` [PATCH 2/3] gnupg: Make the version consistent mingli.yu
  2024-01-19 11:43   ` [OE-core] " Richard Purdie
@ 2024-01-19 17:41   ` Ross Burton
  2024-01-22  5:18     ` Yu, Mingli
  1 sibling, 1 reply; 6+ messages in thread
From: Ross Burton @ 2024-01-19 17:41 UTC (permalink / raw)
  To: mingli.yu; +Cc: openembedded-core



> On 19 Jan 2024, at 11:33, Yu, Mingli via lists.openembedded.org <mingli.yu=eng.windriver.com@lists.openembedded.org> wrote:
>            file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \
>            file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \
>            file://fix-ldap.patch \
> +           file://0001-autogen.sh-Remove-the-unknown-suffix.patch \

0004-autogen.sh-fix-find-version-for-beta-checking.patch already does something similar, so the patches should be merged instead of having a series of incremental fixes.

Also, as RP said, engaging with upstream here would be good.

Ross

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH 2/3] gnupg: Make the version consistent
  2024-01-19 17:41   ` Ross Burton
@ 2024-01-22  5:18     ` Yu, Mingli
  0 siblings, 0 replies; 6+ messages in thread
From: Yu, Mingli @ 2024-01-22  5:18 UTC (permalink / raw)
  To: Ross Burton, mingli.yu; +Cc: openembedded-core

Thanks Richard and Ross's comments!

I will try to send the patch to the upstream.

Thanks,

On 1/20/24 01:41, Ross Burton wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
> 
>> On 19 Jan 2024, at 11:33, Yu, Mingli via lists.openembedded.org <mingli.yu=eng.windriver.com@lists.openembedded.org> wrote:
>>             file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \
>>             file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \
>>             file://fix-ldap.patch \
>> +           file://0001-autogen.sh-Remove-the-unknown-suffix.patch \
> 
> 0004-autogen.sh-fix-find-version-for-beta-checking.patch already does something similar, so the patches should be merged instead of having a series of incremental fixes.
> 
> Also, as RP said, engaging with upstream here would be good.
> 
> Ross


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-22  5:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-19 11:33 [PATCH 1/3] xmlto: Remove the explicit PV setting mingli.yu
2024-01-19 11:33 ` [PATCH 2/3] gnupg: Make the version consistent mingli.yu
2024-01-19 11:43   ` [OE-core] " Richard Purdie
2024-01-19 17:41   ` Ross Burton
2024-01-22  5:18     ` Yu, Mingli
2024-01-19 11:33 ` [PATCH 3/3] libgcrypt: " mingli.yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.