libselinux-2.1.12-r1 fails to build complaining about a missing ruby dependency from package config. Reproducible: Always Steps to Reproduce: 1. emerge =libselinux-2.1.12-r1 2. build failure Actual Results: Build failure with the following error: Package ruby-1.8 was not found in the pkg-config search path. Perhaps you should add the directory containing `ruby-1.8.pc' to the PKG_CONFIG_PATH environment variable No package 'ruby-1.8' found x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -m3dnow -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-error -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-shadow -Wno-uninitialized -Wno-missing-prototypes -Wno-missing-declarations -fPIC -DSHARED -c -o selinuxswig_ruby_wrap.lo selinuxswig_ruby_wrap.c selinuxswig_ruby_wrap.c:832:18: fatal error: ruby.h: No such file or directory compilation terminated. make[1]: *** [selinuxswig_ruby_wrap.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/work/libselinux-2.1.12/src' make: *** [rubywrap] Error 2 * ERROR: sys-libs/libselinux-2.1.12-r1 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-libs/libselinux-2.1.12-r1'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libselinux-2.1.12-r1'`. * The complete build log is located at '/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/work/libselinux-2.1.12' * S: '/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/work/libselinux-2.1.12' >>> Failed to emerge sys-libs/libselinux-2.1.12-r1, Log file: >>> '/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/temp/build.log' Expected Results: Successful build. The other relevant information will be attached shortly.
Created attachment 329954 [details] emerge --info '=sys-libs/libselinux-2.1.12-r1'
Created attachment 329956 [details] emerge -pqv '=sys-libs/libselinux-2.1.12-r1'
Created attachment 329958 [details] /var/tmp/portage/sys-libs/libselinux-2.1.12-r1/temp/build.log
Is dev-lang/ruby installed?
nginx alunduil # eix dev-lang/ruby -I [I] dev-lang/ruby Available versions: (1.8) 1.8.7_p352 1.8.7_p357 ~1.8.7_p358 1.8.7_p370 (1.9) 1.9.3_p125 1.9.3_p194-r1 ~1.9.3_p286 {{(+)berkdb debug doc examples (+)gdbm ipv6 libedit ncurses +rdoc +readline rubytests socks5 ssl threads tk xemacs +yaml}} Installed versions: 1.8.7_p370(1.8)(12:39:40 PM 09/15/2012)(berkdb gdbm ipv6 ncurses readline ssl -debug -doc -examples -libedit -rubytests -socks5 -threads -tk -xemacs) 1.9.3_p194-r1(1.9)(09:44:12 AM 08/13/2012)(berkdb gdbm ipv6 ncurses rdoc readline ssl yaml -debug -doc -examples -rubytests -socks5 -tk -xemacs) Homepage: http://www.ruby-lang.org/ Description: An object-oriented scripting language Yep, pulled in by puppet (which requires the ruby flag on libselinux as well).
Does it provide a .pc file? (qlist ruby)
Looks like 19 does but not 18: nginx alunduil # qlist ruby | grep '\.pc' /usr/lib64/pkgconfig/ruby-1.9.pc
Thanks; I've got a build here to reproduce so I'll see what I can do.
Ok, got it to build with USE="ruby" supporting both rub18 and ruby19. Is in hardened-dev overlay
Moved to main tree, ~arch'ed
Stable