Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-ruby/racc-1.7.3 assumes /usr/bin/mkdir path
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
toofastforyahuh
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 172

PostPosted: Tue Jun 11, 2024 8:34 pm    Post subject: dev-ruby/racc-1.7.3 assumes /usr/bin/mkdir path Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22648

PostPosted: Tue Jun 11, 2024 8:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1961

PostPosted: Wed Jun 12, 2024 4:55 am    Post subject: Reply with quote

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
View user's profile Send private message
toofastforyahuh
Apprentice
Apprentice


Joined: 18 May 2004
Posts: 172

PostPosted: Wed Jun 12, 2024 7:14 am    Post subject: Reply with quote

I filed this bug per request:

https://bugs.gentoo.org/934123
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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