public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: changqing.li@windriver.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] ruby: upgrade from 3.4.7 to 4.0.1
Date: Mon, 02 Mar 2026 15:07:40 +0000	[thread overview]
Message-ID: <b29f349d58b2f2286e404c258d1c865e10ba5e5c.camel@linuxfoundation.org> (raw)
In-Reply-To: <20260224015117.3338374-1-changqing.li@windriver.com>

On Tue, 2026-02-24 at 09:51 +0800, Changqing Li via lists.openembedded.org wrote:
> License-Update: Add license BSL-1.0 and Apache-2.0
> 
> COPYING - Add Cross-links between Japanese and English pages
> LEGAL - Update LEGAL for JSON vendored sources
> 
> Refer:
> [1] https://github.com/ruby/ruby/commit/e652af18816ffe0b85109b8de0827349bf03f16d
> [2] https://github.com/ruby/ruby/commit/d5fbff50c7ff880ae71b8a8ae9aad976c69bea73
> 
> Signed-off-by: Changqing Li <changqing.li@windriver.com>
> ---
>  ...doc-build-reproducible-documentation.patch | 30 ++++++-----
>  .../0006-Make-gemspecs-reproducible.patch     | 52 +++++++++++--------
>  .../ruby/{ruby_3.4.7.bb => ruby_4.0.1.bb}     | 11 ++--
>  3 files changed, 51 insertions(+), 42 deletions(-)
>  rename meta/recipes-devtools/ruby/{ruby_3.4.7.bb => ruby_4.0.1.bb} (93%)
> 
> diff --git a/meta/recipes-devtools/ruby/ruby/0003-rdoc-build-reproducible-documentation.patch b/meta/recipes-devtools/ruby/ruby/0003-rdoc-build-reproducible-documentation.patch
> index 90b2aee7ea..f0be3e4af6 100644
> --- a/meta/recipes-devtools/ruby/ruby/0003-rdoc-build-reproducible-documentation.patch
> +++ b/meta/recipes-devtools/ruby/ruby/0003-rdoc-build-reproducible-documentation.patch
> @@ -1,4 +1,4 @@
> -From 2e140fea6c275f3258893d2da2480027b16efb92 Mon Sep 17 00:00:00 2001
> +From 278d02b08f513b288f31648bc5ec5c47ecb61686 Mon Sep 17 00:00:00 2001
>  From: Christian Hofstaedtler <zeha@debian.org>
>  Date: Tue, 10 Oct 2017 15:04:34 -0300
>  Subject: [PATCH] rdoc: build reproducible documentation
> @@ -9,29 +9,33 @@ Upstream-Status: Backport [debian]
>  
>  Signed-off-by: Antonio Terceiro <terceiro@debian.org>
>  Signed-off-by: Christian Hofstaedtler <zeha@debian.org>
> +
> +rebase to version 4.0.1
> +Signed-off-by: Changqing Li <changqing.li@windriver.com>
>  ---
> - lib/rdoc/generator/json_index.rb | 4 ++--
> - 1 file changed, 2 insertions(+), 2 deletions(-)
> + .bundle/gems/rdoc-7.0.3/lib/rdoc/generator/json_index.rb | 2 ++
> + 1 file changed, 2 insertions(+)
>  
> -diff --git a/lib/rdoc/generator/json_index.rb b/lib/rdoc/generator/json_index.rb
> -index 065caa4..cfa1f33 100644
> ---- a/lib/rdoc/generator/json_index.rb
> -+++ b/lib/rdoc/generator/json_index.rb
> -@@ -176,7 +176,7 @@ class RDoc::Generator::JsonIndex
> -     debug_msg "Writing gzipped search index to %s" % outfile
> +diff --git a/.bundle/gems/rdoc-7.0.3/lib/rdoc/generator/json_index.rb b/.bundle/gems/rdoc-7.0.3/lib/rdoc/generator/json_index.rb
> +index 065caa4..a76c202 100644
> +--- a/.bundle/gems/rdoc-7.0.3/lib/rdoc/generator/json_index.rb
> ++++ b/.bundle/gems/rdoc-7.0.3/lib/rdoc/generator/json_index.rb
> +@@ -177,6 +177,7 @@ class RDoc::Generator::JsonIndex
>   
>       Zlib::GzipWriter.open(outfile) do |gz|
> --      gz.mtime = File.mtime(search_index_file)
> +       gz.mtime = File.mtime(search_index_file)
>  +      gz.mtime = -1
>         gz.orig_name = search_index_file.basename.to_s
>         gz.write search_index
>         gz.close
> -@@ -194,7 +194,7 @@ class RDoc::Generator::JsonIndex
> -         debug_msg "Writing gzipped file to %s" % outfile
> +@@ -195,6 +196,7 @@ class RDoc::Generator::JsonIndex
>   
>           Zlib::GzipWriter.open(outfile) do |gz|
> --          gz.mtime = File.mtime(dest)
> +           gz.mtime = File.mtime(dest)
>  +          gz.mtime = -1
>             gz.orig_name = dest.basename.to_s
>             gz.write data
>             gz.close


This does not look like it is updating the patch correctly.

gz.mtime = File.mtime(search_index_file)

should be replaced with:

gz.mtime = -1

but both lines are left after this change.

That will probably 'work' but isn't a correct update. Please can you
send a fix for this.

The reproducibility issue also recurred in master:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/3490
https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20260302-t9zp1mo6/packages/diff-html/

so this makes it more urgent we get the other changes in v2 (I note
that v1 was merged by mistake). Thanks!

Cheers,

Richard



  parent reply	other threads:[~2026-03-02 15:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24  1:51 [PATCH] ruby: upgrade from 3.4.7 to 4.0.1 Changqing Li
2026-02-26 13:45 ` [OE-core] " Mathieu Dubois-Briand
2026-02-27 10:01   ` Changqing Li
2026-02-27 10:07   ` [PATCH V2] " Changqing Li
2026-02-27 13:39     ` [OE-core] " Mathieu Dubois-Briand
2026-02-28  2:37       ` Changqing Li
2026-03-02 15:07 ` Richard Purdie [this message]
2026-03-03  5:16   ` [OE-core] [PATCH] " Changqing Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b29f349d58b2f2286e404c258d1c865e10ba5e5c.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=changqing.li@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox