|
| 1 | +Description: Avoid multiarching bins and linking multiarch lib data to global dirs |
| 2 | + This reverts the effects of github.com/ruby/ruby/pull/10010 to remain in alignment with standard |
| 3 | + debian multiarch filesystem layout |
| 4 | +Origin: https://github.com/sorah-rbpkg/ruby/commit/f482d322a9490cee80ac6af4e08cdfb1f4b7abbc (cleaned up) |
| 5 | +Last-Update: 2025-02-10 |
| 6 | +--- |
| 7 | +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 8 | +--- a/tool/rbinstall.rb |
| 9 | ++++ b/tool/rbinstall.rb |
| 10 | +@@ -366,9 +366,7 @@ |
| 11 | + goruby_install_name = "go" + ruby_install_name |
| 12 | + |
| 13 | + bindir = CONFIG["bindir", true] |
| 14 | +-if CONFIG["libdirname"] == "archlibdir" |
| 15 | +- archbindir = bindir.sub(%r[/\K(?=[^/]+\z)]) {CONFIG["config_target"] + "/"} |
| 16 | +-end |
| 17 | ++archbindir = nil |
| 18 | + libdir = CONFIG[CONFIG.fetch("libdirname", "libdir"), true] |
| 19 | + rubyhdrdir = CONFIG["rubyhdrdir", true] |
| 20 | + archhdrdir = CONFIG["rubyarchhdrdir"] || (rubyhdrdir + "/" + CONFIG['arch']) |
| 21 | +@@ -898,11 +896,6 @@ |
| 22 | + if pc and File.file?(pc) and File.size?(pc) |
| 23 | + prepare "pkgconfig data", pkgconfigdir = File.join(libdir, "pkgconfig") |
| 24 | + install pc, pkgconfigdir, :mode => $data_mode |
| 25 | +- if (pkgconfig_base = CONFIG["libdir", true]) != libdir |
| 26 | +- prepare "pkgconfig data link", File.join(pkgconfig_base, "pkgconfig") |
| 27 | +- ln_sf(File.join("..", Path.relative(pkgconfigdir, pkgconfig_base), pc), |
| 28 | +- File.join(pkgconfig_base, "pkgconfig", pc)) |
| 29 | +- end |
| 30 | + end |
| 31 | + end |
| 32 | + |
0 commit comments