View previous topic :: View next topic |
Author |
Message |
toofastforyahuh Apprentice
Joined: 18 May 2004 Posts: 172
|
Posted: Tue Jun 11, 2024 8:34 pm Post subject: dev-ruby/racc-1.7.3 assumes /usr/bin/mkdir path |
|
|
dev-ruby/racc-1.7.3 assumes mkdir is in /usr/bin/mkdir instead of /bin/mkdir.
(I am on the
Code: | default/linux/amd64/23.0/split-usr/desktop |
profile.)
Code: | >>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/racc-1.7.3/work ...
* Running compile phase for ruby31
make -j9 V=1 -C ext/racc/cparse
make: Entering directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby31/racc-1.7.3/ext/racc/cparse'
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.1.0/x86_64-linux -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -DRACC_INFO_VERSION=1.7.3 -fPIC -march=native -O2 -pipe -fno-stack-protector -o cparse.o -c cparse.c
rm -f cparse.so
x86_64-pc-linux-gnu-gcc -shared -o cparse.so cparse.o -L. -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -lruby31 -lm -lc
make: Leaving directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby31/racc-1.7.3/ext/racc/cparse'
* Running compile phase for ruby32
make -j9 V=1 -C ext/racc/cparse
make: Entering directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby32/racc-1.7.3/ext/racc/cparse'
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.2.0/x86_64-linux -I/usr/include/ruby-3.2.0/ruby/backward -I/usr/include/ruby-3.2.0 -I. -DRACC_INFO_VERSION=1.7.3 -fPIC -march=native -O2 -pipe -fno-stack-protector -o cparse.o -c cparse.c
rm -f cparse.so
x86_64-pc-linux-gnu-gcc -shared -o cparse.so cparse.o -L. -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -lruby32 -lm -lpthread -lc
make: Leaving directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby32/racc-1.7.3/ext/racc/cparse'
* Running compile phase for all
>>> Source compiled.
* Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-ruby/racc-1.7.3
>>> Install dev-ruby/racc-1.7.3 into /var/tmp/portage/dev-ruby/racc-1.7.3/image
* Running install phase for ruby31
* installing extensions
make -j9 V=1 sitearchdir=/var/tmp/portage/dev-ruby/racc-1.7.3/image/usr/lib64/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/racc-1.7.3 sitelibdir=/var/tmp/portage/dev-ruby/racc-1.7.3/image/usr/lib64/ruby/site_ruby/3.1.0 -C ext/racc/cparse install
make: Entering directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby31/racc-1.7.3/ext/racc/cparse'
/usr/bin/mkdir -p . /var/tmp/portage/dev-ruby/racc-1.7.3/image/usr/lib64/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/racc-1.7.3/racc
make: /usr/bin/mkdir: No such file or directory
make: *** [Makefile:204: .sitearchdir.-.racc.time] Error 127
make: Leaving directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby31/racc-1.7.3/ext/racc/cparse'
|
Code: | # which mkdir
/bin/mkdir |
I made symlink as a temporary workaround, but a proper fix would be very helpful. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22616
|
Posted: Tue Jun 11, 2024 8:43 pm Post subject: |
|
|
That sounds like early fallout from the systemd merged-usr design, where /bin is an alias to /usr/bin, so /usr/bin/mkdir manages to run /bin/mkdir. Please file a bug about this. This will probably need to be fixed upstream, by having them correct their Makefile. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1948
|
Posted: Wed Jun 12, 2024 4:55 am Post subject: |
|
|
In this case, it might be bug 932386, but the general class of problem Hu is referring to is where upstreams hardcode the /usr path variants while using the / version works on both classes of system. This seems to especially happen with shebangs (it happened to grub recently). |
|
Back to top |
|
|
toofastforyahuh Apprentice
Joined: 18 May 2004 Posts: 172
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|