From e5d12ccdd5105a7defe160ba1acf9f52b7a9cc88 Mon Sep 17 00:00:00 2001 From: "chromebrew-actions[bot]" <220035932+chromebrew-actions[bot]@users.noreply.github.com> Date: Wed, 26 Nov 2025 20:44:50 -0600 Subject: [PATCH] =?UTF-8?q?bandits=20=E2=80=94=20chruby:=200.3.9-1=20?= =?UTF-8?q?=E2=86=92=200.3.9=20(#13645)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Rebuild chruby * bandits: Package File Update Run on linux/386 container. --------- Co-authored-by: Zopolis4 Co-authored-by: chromebrew-actions[bot] --- packages/chruby.rb | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/chruby.rb b/packages/chruby.rb index 81684a4b2..7558429e1 100644 --- a/packages/chruby.rb +++ b/packages/chruby.rb @@ -3,32 +3,39 @@ require 'package' class Chruby < Package description 'Changes the current Ruby' homepage 'https://github.com/postmodern/chruby' - version '0.3.9-1' + version '0.3.9' license 'MIT' compatibility 'all' - source_url 'https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz' - source_sha256 '7220a96e355b8a613929881c091ca85ec809153988d7d691299e0a16806b42fd' - binary_compression 'tar.xz' + source_url 'https://github.com/postmodern/chruby.git' + git_hashtag "v#{version}" + binary_compression 'tar.zst' binary_sha256({ - aarch64: '7815a4b47a82634d0a68f89d1bfe8b66f413ce68665696101032f1fb81531ee3', - armv7l: '7815a4b47a82634d0a68f89d1bfe8b66f413ce68665696101032f1fb81531ee3', - i686: '9196e553c0592330237bf487ac31688b759262f4900afdd96daed804b2041972', - x86_64: 'e8b096839ebbcfb351367aef74d53d3c1aeae6c8b166024971b6cdcac178d62b' + aarch64: '4e6a622e15f48a5353882b960e9f7d5e1a31302eff337cc3172f0deb23a48d64', + armv7l: '4e6a622e15f48a5353882b960e9f7d5e1a31302eff337cc3172f0deb23a48d64', + i686: '1ea85177b7795cefaad7aa7ccdc135b4842c8c59921e137c7dd514f2972a6c84', + x86_64: 'f3ca77a21c312d9451c23738a75449b66a3072befcd0f16d3eae7e2942238baf' }) def self.build system 'make' end + # Tests fail with "!!! Could not detect system name" + # This is because the test setup script requires that it identifies the distribution it is running on, and does not have a check for ChromeOS. + # In the current upstrem tree, this behaviour has been removed, and presumably tests will work once 0.4.0 is released. + # def self.check + # system 'make', 'test' + # end + + # TODO: 0.3.9 has a weird way of handling PREFIX, swap to normal ('make', "PREFIX=#{CREW_PREFIX}", "DESTDIR=#{CREW_DEST_DIR}", 'install') when 0.4.0 releases. def self.install system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d/" - @chrubyenv = <<~CHRUBYEOF + File.write "#{CREW_DEST_PREFIX}/etc/env.d/chruby", <<~CHRUBYEOF # chruby configuration source #{CREW_PREFIX}/share/chruby/chruby.sh CHRUBYEOF - File.write("#{CREW_DEST_PREFIX}/etc/env.d/chruby", @chrubyenv) end end