fix(rubygems)

closes #4022
This commit is contained in:
Jacob Heider 2023-11-13 13:44:01 -05:00
parent bd209587c6
commit 9439495304
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6
3 changed files with 17 additions and 9 deletions

View file

@ -0,0 +1,13 @@
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
index b186375..de168c4 100644
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
@@ -137,7 +129,7 @@ def self.config_file
# The path to standard location of the user's state file.
def self.state_file
- @state_file ||= File.join(Gem.state_home, "gem", "last_update_check").tap(&Gem::UNTAINT)
+ @state_file ||= File.join(Gem.state_home, "last_update_check").tap(&Gem::UNTAINT)
end
##

View file

@ -77,15 +77,6 @@ index b186375..de168c4 100644
end end
end end
@@ -137,7 +129,7 @@ def self.config_file
# The path to standard location of the user's state file.
def self.state_file
- @state_file ||= File.join(Gem.state_home, "gem", "last_update_check").tap(&Gem::UNTAINT)
+ @state_file ||= File.join(Gem.state_home, "last_update_check").tap(&Gem::UNTAINT)
end
##
@@ -151,7 +143,11 @@ def self.cache_home @@ -151,7 +143,11 @@ def self.cache_home
# The path to standard location of the user's data directory. # The path to standard location of the user's data directory.

View file

@ -30,6 +30,10 @@ build:
patch -p1 < "$SRCROOT"/props/fit-n-finish.patch patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
patch -p1 < "$SRCROOT"/props/fit-n-finish.2.patch patch -p1 < "$SRCROOT"/props/fit-n-finish.2.patch
working-directory: ${{prefix}} working-directory: ${{prefix}}
- run: |
patch -p1 < "$SRCROOT"/props/fit-n-finish.3.patch
working-directory: ${{prefix}}
if: '>=3.4'
- run: | - run: |
sed -i.bak -e 's/Dir\.mkdir dir, \*\[options\[:dir_mode\].*/FileUtils.mkdir_p dir, *[options[:dir_mode] \&\& 0o755].compact/' installer.rb sed -i.bak -e 's/Dir\.mkdir dir, \*\[options\[:dir_mode\].*/FileUtils.mkdir_p dir, *[options[:dir_mode] \&\& 0o755].compact/' installer.rb
rm installer.rb.bak rm installer.rb.bak