All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc: Update to latest on release/gcc-11 branch
@ 2021-05-23 19:35 Khem Raj
  2021-06-08  3:44 ` [OE-core] " zangrc
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2021-05-23 19:35 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

There has been 150+ fixes made available after gcc 11.1.0
was released, details of these fixes is here

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;hp=releases/gcc-11.1.0;h=9ee61d2b51d

Instead of switching to use git fetcher for whole repo, just fetch the
delta as a patch, since it will be checksummed so it will ensure that
patch is not changing on the fly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/gcc/gcc-11.1.inc | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-11.1.inc b/meta/recipes-devtools/gcc/gcc-11.1.inc
index 713002266a..92d3a53fa6 100644
--- a/meta/recipes-devtools/gcc/gcc-11.1.inc
+++ b/meta/recipes-devtools/gcc/gcc-11.1.inc
@@ -6,7 +6,7 @@ PV = "11.1.0"
 
 # BINV should be incremented to a revision after a minor gcc release
 
-BINV = "11.1.0"
+BINV = "11.1.1"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
 
@@ -25,7 +25,13 @@ LIC_FILES_CHKSUM = "\
 
 #RELEASE ?= "5b2ac9b40c325e9209c0bd55955db84aad4a0cc5"
 #BASEURI ?= "https://github.com/gcc-mirror/gcc/archive/${RELEASE}.zip;downloadfilename=gcc-${PV}-${RELEASE}.zip"
-BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz"
+
+# This is latest commit on the release/gcc-11 branch
+# used to generate the backport patch w.r.t. latest minor release
+LATESTREV = "9ee61d2b51df012c659359873637cc2162ecccf3"
+BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz \
+            https://github.com/gcc-mirror/gcc/compare/releases/gcc-${PV}...${LATESTREV}.patch;downloadfilename=gcc-${PV}-${LATESTREV}.patch;apply=yes;name=backports \
+           "
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -67,6 +73,7 @@ SRC_URI = "\
            file://0037-libatomic-Do-not-enforce-march-on-aarch64.patch \
 "
 SRC_URI[sha256sum] = "4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf"
+SRC_URI[backports.sha256sum] = "69274bebd6c069a13443d4af61070e854740a639ec4d66eedf3e80070363587b"
 
 S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
 
-- 
2.31.1


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

* Re: [OE-core] [PATCH] gcc: Update to latest on release/gcc-11 branch
  2021-05-23 19:35 [PATCH] gcc: Update to latest on release/gcc-11 branch Khem Raj
@ 2021-06-08  3:44 ` zangrc
  0 siblings, 0 replies; 2+ messages in thread
From: zangrc @ 2021-06-08  3:44 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

Hello,
gcc-11.1.0-9ee61d2b51df012c659359873637cc2162ecccf3.patch
When using patch as PATCHTOOL, this patch will do_patch fail.

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org
> <openembedded-core@lists.openembedded.org> On Behalf Of Khem Raj
> Sent: Monday, May 24, 2021 3:36 AM
> To: openembedded-core@lists.openembedded.org
> Cc: Khem Raj <raj.khem@gmail.com>
> Subject: [OE-core] [PATCH] gcc: Update to latest on release/gcc-11 branch
> 
> There has been 150+ fixes made available after gcc 11.1.0 was released, details
> of these fixes is here
> 
> https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;hp=releases/gcc-11.1.0;
> h=9ee61d2b51d
> 
> Instead of switching to use git fetcher for whole repo, just fetch the delta as a
> patch, since it will be checksummed so it will ensure that patch is not changing
> on the fly
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-devtools/gcc/gcc-11.1.inc | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-11.1.inc
> b/meta/recipes-devtools/gcc/gcc-11.1.inc
> index 713002266a..92d3a53fa6 100644
> --- a/meta/recipes-devtools/gcc/gcc-11.1.inc
> +++ b/meta/recipes-devtools/gcc/gcc-11.1.inc
> @@ -6,7 +6,7 @@ PV = "11.1.0"
> 
>  # BINV should be incremented to a revision after a minor gcc release
> 
> -BINV = "11.1.0"
> +BINV = "11.1.1"
> 
>  FILESEXTRAPATHS =.
> "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
> 
> @@ -25,7 +25,13 @@ LIC_FILES_CHKSUM = "\
> 
>  #RELEASE ?= "5b2ac9b40c325e9209c0bd55955db84aad4a0cc5"
>  #BASEURI ?=
> "https://github.com/gcc-mirror/gcc/archive/${RELEASE}.zip;downloadfilename
> =gcc-${PV}-${RELEASE}.zip"
> -BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz"
> +
> +# This is latest commit on the release/gcc-11 branch # used to generate
> +the backport patch w.r.t. latest minor release LATESTREV =
> +"9ee61d2b51df012c659359873637cc2162ecccf3"
> +BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz \
> +
> https://github.com/gcc-mirror/gcc/compare/releases/gcc-${PV}...${LATESTREV}
> .patch;downloadfilename=gcc-${PV}-${LATESTREV}.patch;apply=yes;name=bac
> kports \
> +           "
>  SRC_URI = "\
>             ${BASEURI} \
>             file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ @@
> -67,6 +73,7 @@ SRC_URI = "\
>             file://0037-libatomic-Do-not-enforce-march-on-aarch64.patch \
> "
>  SRC_URI[sha256sum] =
> "4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf"
> +SRC_URI[backports.sha256sum] =
> "69274bebd6c069a13443d4af61070e854740a639ec4d66eedf3e80070363587b
> "
> 
>  S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
> 
> --
> 2.31.1


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

end of thread, other threads:[~2021-06-08  3:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 19:35 [PATCH] gcc: Update to latest on release/gcc-11 branch Khem Raj
2021-06-08  3:44 ` [OE-core] " zangrc

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.