20846: Remove old/conflicting erb script if needed.
authorTom Clegg <tom@curii.com>
Tue, 31 Oct 2023 14:53:08 +0000 (10:53 -0400)
committerTom Clegg <tom@curii.com>
Fri, 3 Nov 2023 20:00:11 +0000 (16:00 -0400)
Otherwise:

/tmp/tmp.tktwTXjGi1/ruby-3.2.2/lib/rubygems/installer.rb:272:in `check_executable_overwrite': "erb" from erb conflicts with /var/lib/arvados/bin/erb (Gem::InstallError)

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/install/deps.go

index 3784cf6a186fbef42e38b8f048b321fb6b86c3fc..a5cfe879524b258656a235a22d5a869a062c9a25 100644 (file)
@@ -306,7 +306,8 @@ wget --progress=dot:giga -O- https://cache.ruby-lang.org/pub/ruby/`+rubymajorver
 cd "${tmp}/ruby-`+rubyversion+`"
 ./configure --disable-install-static-library --enable-shared --disable-install-doc --prefix /var/lib/arvados
 make -j8
-make install <(yes || true)
+rm -f /var/lib/arvados/bin/erb
+make install
 /var/lib/arvados/bin/gem update --no-document --system 3.4.21
 /var/lib/arvados/bin/gem install bundler --no-document
 `, stdout, stderr)