Accepting request 913938 from home:coolo:branches:devel:languages:ruby
- Do not create links in /etc/alternatives at all - they are ghosts and rpm database will only be confused if we have some wrong information about them (the link target is defined at runtime) This aligns with ruby2.7 package to avoid file conflicts about bundler and other built in gems OBS-URL: https://build.opensuse.org/request/show/913938 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=113
This commit is contained in:
parent
abbc00ff16
commit
963f8606ee
@ -246,13 +246,9 @@ if options.symlinkbinaries && File.exists?(bindir)
|
|||||||
unversioned = map_executable(options, unversioned)
|
unversioned = map_executable(options, unversioned)
|
||||||
File.rename(default_path, full_versioned)
|
File.rename(default_path, full_versioned)
|
||||||
patchfile(full_versioned, />= 0(\.a)?/, "= #{options.gemversion}")
|
patchfile(full_versioned, />= 0(\.a)?/, "= #{options.gemversion}")
|
||||||
link_target = File.join(Gem.bindir, full_versioned)
|
|
||||||
# unversioned
|
# unversioned
|
||||||
[unversioned, ruby_versioned, gem_versioned].each do |linkname|
|
[unversioned, ruby_versioned, gem_versioned].each do |linkname|
|
||||||
full_path = File.join(br_ua_dir, linkname)
|
|
||||||
ua_path = File.join(options.ua_dir, linkname)
|
ua_path = File.join(options.ua_dir, linkname)
|
||||||
GILogger.info "Symlinking '#{full_path} -> '#{linkname}'"
|
|
||||||
File.symlink(link_target, full_path) unless File.symlink? full_path
|
|
||||||
GILogger.info "Symlinking '#{linkname}' -> '#{ua_path}'"
|
GILogger.info "Symlinking '#{linkname}' -> '#{ua_path}'"
|
||||||
File.symlink(ua_path, linkname) unless File.symlink? linkname
|
File.symlink(ua_path, linkname) unless File.symlink? linkname
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 24 06:46:07 UTC 2021 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- Do not create links in /etc/alternatives at all - they are ghosts
|
||||||
|
and rpm database will only be confused if we have some wrong
|
||||||
|
information about them (the link target is defined at runtime)
|
||||||
|
|
||||||
|
This aligns with ruby2.7 package to avoid file conflicts about
|
||||||
|
bundler and other built in gems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 8 12:10:25 UTC 2021 - Stephan Kulow <coolo@suse.com>
|
Thu Jul 8 12:10:25 UTC 2021 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user