Backport #8878

contents of test-unit.gemspec not reproducible

Added by Antonio Terceiro 8 months ago. Updated 7 months ago.

[ruby-core:57072]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga

Description

Because the input gemspec does not contain a date, the generated gemspec will have a different date depending on when Ruby was
compiled.

On Debian we want to support multiarch, and that requires architecture-independent files to be byte-by-byte identical.

The attached patch fixes this by adding an explicit date to the gemspec.

0001-test-unit.gemspec-include-date-explicitly.patch Magnifier (1013 Bytes) Antonio Terceiro, 09/08/2013 11:52 PM


Related issues

Duplicated by Backport200 - Backport #9085: contents of io-console.gemspec not reproducible Closed 11/06/2013

Associated revisions

Revision 42946
Added by Tomoyuki Chikanaga 7 months ago

merge revision(s) 42890: [Backport #8878]

* tool/rbinstall.rb (Gem::Specification#initialize): default date to
  RUBY_RELEASE_DATE.   [Bug #8878]

* tool/rbinstall.rb (Gem::Specification#to_ruby): add date.

Revision 43654
Added by Tomoyuki Chikanaga 5 months ago

merge revision(s) 42862(partially),42910,43093: [Backport #8878] [Backport #9085]

* common.mk: use RUNRUBY instead of MINIRUBY because MINIRUBY can't
  require extension libraries. The patch is from nobu
  (Nobuyoshi Nakada).

* configure.in (RUNRUBY): append -- only after runruby.rb, not
  cross-compiling baseruby, so that $(RUN_OPT) can be command line
  options.   [Bug #8893]

Revision 43655
Added by Tomoyuki Chikanaga 5 months ago

merge revision(s) 43609,43617: [Backport #8878] [Backport #9085]

vcs.rb: split

* tool/vcs.rb: split from file2lastrev.rb.
* tool/rbinstall.rb (Gem::Specification.load): obtain spec date from
  VCS for the case using git, RUBY_RELEASE_DATE is the last resort.
  probably fixes [Bug #9085].

History

#2 Updated by Shota Fukumori 8 months ago

  • Category changed from build to lib
  • Status changed from Open to Assigned
  • Assignee changed from Nobuyoshi Nakada to Shota Fukumori

#3 Updated by Nobuyoshi Nakada 8 months ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r42890.
Antonio, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


rbinstall.rb: add date

  • tool/rbinstall.rb (Gem::Specification#initialize): default date to RUBYRELEASEDATE. [Bug #8878]
  • tool/rbinstall.rb (Gem::Specification#to_ruby): add date.

#4 Updated by Antonio Terceiro 7 months ago

Hi, thanks! Can you please backport this to Ruby 2.0?

#5 Updated by Nobuyoshi Nakada 7 months ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED

#6 Updated by Tomoyuki Chikanaga 7 months ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (lib)
  • Status changed from Closed to Assigned
  • Assignee changed from Shota Fukumori to Tomoyuki Chikanaga

Ah, I've overlooked this. Thank you for your notice.

#7 Updated by Tomoyuki Chikanaga 7 months ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r42946.
Antonio, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 42890: [Backport #8878]

* tool/rbinstall.rb (Gem::Specification#initialize): default date to
  RUBY_RELEASE_DATE.   [Bug #8878]

* tool/rbinstall.rb (Gem::Specification#to_ruby): add date.

Also available in: Atom PDF