All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] git: restore reproducibility on centos 7
@ 2022-02-07  9:16 Alexander Kanavin
  2022-02-07 10:03 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2022-02-07  9:16 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 ...-do-not-force-RHEL-7-specific-build-.patch | 30 +++++++++++++++++++
 meta/recipes-devtools/git/git_2.35.1.bb       |  3 +-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch

diff --git a/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
new file mode 100644
index 0000000000..e0f702f327
--- /dev/null
+++ b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
@@ -0,0 +1,30 @@
+From 3b2505435bc6f982226eff84bad6bf9a36381573 Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex@linutronix.de>
+Date: Mon, 7 Feb 2022 10:13:15 +0100
+Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings
+
+This breaks reproducibility as git builds on centos 7 use
+different flags than git builds on other host distros.
+
+Upstream-Status: Inappropriate [upstream needs to check compiler and component versions properly]
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+---
+ config.mak.uname | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/config.mak.uname b/config.mak.uname
+index c48db45..9b3e9bf 100644
+--- a/config.mak.uname
++++ b/config.mak.uname
+@@ -63,11 +63,6 @@ ifeq ($(uname_S),Linux)
+ 	PROCFS_EXECUTABLE_PATH = /proc/self/exe
+ 	HAVE_PLATFORM_PROCINFO = YesPlease
+ 	COMPAT_OBJS += compat/linux/procinfo.o
+-	# centos7/rhel7 provides gcc 4.8.5 and zlib 1.2.7.
+-	ifneq ($(findstring .el7.,$(uname_R)),)
+-		BASIC_CFLAGS += -std=c99
+-		NO_UNCOMPRESS2 = YesPlease
+-	endif
+ endif
+ ifeq ($(uname_S),GNU/kFreeBSD)
+ 	HAVE_ALLOCA_H = YesPlease
diff --git a/meta/recipes-devtools/git/git_2.35.1.bb b/meta/recipes-devtools/git/git_2.35.1.bb
index 62017b98ef..a333458d5f 100644
--- a/meta/recipes-devtools/git/git_2.35.1.bb
+++ b/meta/recipes-devtools/git/git_2.35.1.bb
@@ -9,7 +9,8 @@ PROVIDES:append:class-native = " git-replacement-native"
 
 SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \
            file://fixsort.patch \
-"
+           file://0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch \
+           "
 
 S = "${WORKDIR}/git-${PV}"
 
-- 
2.20.1



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

* Re: [OE-core] [PATCH] git: restore reproducibility on centos 7
  2022-02-07  9:16 [PATCH] git: restore reproducibility on centos 7 Alexander Kanavin
@ 2022-02-07 10:03 ` Richard Purdie
  2022-02-07 11:04   ` Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2022-02-07 10:03 UTC (permalink / raw)
  To: Alexander Kanavin, openembedded-core; +Cc: Alexander Kanavin

On Mon, 2022-02-07 at 10:16 +0100, Alexander Kanavin wrote:
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
>  ...-do-not-force-RHEL-7-specific-build-.patch | 30 +++++++++++++++++++
>  meta/recipes-devtools/git/git_2.35.1.bb       |  3 +-
>  2 files changed, 32 insertions(+), 1 deletion(-)
>  create mode 100644 meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
> 
> diff --git a/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
> new file mode 100644
> index 0000000000..e0f702f327
> --- /dev/null
> +++ b/meta/recipes-devtools/git/git/0001-config.mak.uname-do-not-force-RHEL-7-specific-build-.patch
> @@ -0,0 +1,30 @@
> +From 3b2505435bc6f982226eff84bad6bf9a36381573 Mon Sep 17 00:00:00 2001
> +From: Alexander Kanavin <alex@linutronix.de>
> +Date: Mon, 7 Feb 2022 10:13:15 +0100
> +Subject: [PATCH] config.mak.uname: do not force RHEL-7 specific build settings
> +
> +This breaks reproducibility as git builds on centos 7 use
> +different flags than git builds on other host distros.
> +
> +Upstream-Status: Inappropriate [upstream needs to check compiler and component versions properly]

I'm struggling a bit with the Inappropriate patch status. I can't help wonder if
we should have something like "NeedsRework" to illustrate something where the
patch itself isn't appropriate but the issue itself should be handled upstream?

Cheers,

Richard





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

* Re: [OE-core] [PATCH] git: restore reproducibility on centos 7
  2022-02-07 10:03 ` [OE-core] " Richard Purdie
@ 2022-02-07 11:04   ` Alexander Kanavin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2022-02-07 11:04 UTC (permalink / raw)
  To: Richard Purdie; +Cc: OE-core, Alexander Kanavin

[-- Attachment #1: Type: text/plain, Size: 957 bytes --]

On Mon, 7 Feb 2022 at 11:03, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> > +This breaks reproducibility as git builds on centos 7 use
> > +different flags than git builds on other host distros.
> > +
> > +Upstream-Status: Inappropriate [upstream needs to check compiler and
> component versions properly]
>
> I'm struggling a bit with the Inappropriate patch status. I can't help
> wonder if
> we should have something like "NeedsRework" to illustrate something where
> the
> patch itself isn't appropriate but the issue itself should be handled
> upstream?
>

I'm ok with that status if it also has a link to the upstream ticket. Git
upstream's way of bug reporting is "send a mail to our mailing list without
subscribing, and you'll be CCd in replies" which is not particularly
reassuring, but I'll do it now. Then we can do the corrections once I have
a link (which probably won't happen immediately due to list pre-moderation).

Alex

[-- Attachment #2: Type: text/html, Size: 1410 bytes --]

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

end of thread, other threads:[~2022-02-07 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07  9:16 [PATCH] git: restore reproducibility on centos 7 Alexander Kanavin
2022-02-07 10:03 ` [OE-core] " Richard Purdie
2022-02-07 11:04   ` Alexander Kanavin

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.