Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443928 - =sys-libs/libselinux-2.1.12-r1 fails to build
Summary: =sys-libs/libselinux-2.1.12-r1 fails to build
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard: selinux-utils
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-19 15:51 UTC by Alex Brandt (RETIRED)
Modified: 2012-12-30 15:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=sys-libs/libselinux-2.1.12-r1' (file_443928.txt,4.51 KB, text/plain)
2012-11-19 15:52 UTC, Alex Brandt (RETIRED)
Details
emerge -pqv '=sys-libs/libselinux-2.1.12-r1' (file_443928.txt,120 bytes, text/plain)
2012-11-19 15:53 UTC, Alex Brandt (RETIRED)
Details
/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/temp/build.log (file_443928.txt,33.51 KB, text/plain)
2012-11-19 15:53 UTC, Alex Brandt (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Brandt (RETIRED) gentoo-dev 2012-11-19 15:51:42 UTC
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.
Comment 1 Alex Brandt (RETIRED) gentoo-dev 2012-11-19 15:52:35 UTC
Created attachment 329954 [details]
emerge --info '=sys-libs/libselinux-2.1.12-r1'
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2012-11-19 15:53:04 UTC
Created attachment 329956 [details]
emerge -pqv '=sys-libs/libselinux-2.1.12-r1'
Comment 3 Alex Brandt (RETIRED) gentoo-dev 2012-11-19 15:53:44 UTC
Created attachment 329958 [details]
/var/tmp/portage/sys-libs/libselinux-2.1.12-r1/temp/build.log
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-21 20:48:49 UTC
Is dev-lang/ruby installed?
Comment 5 Alex Brandt (RETIRED) gentoo-dev 2012-11-22 20:39:04 UTC
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).
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-23 16:03:07 UTC
Does it provide a .pc file? (qlist ruby)
Comment 7 Alex Brandt (RETIRED) gentoo-dev 2012-11-23 16:23:48 UTC
Looks like 19 does but not 18:

nginx alunduil # qlist ruby | grep '\.pc'
/usr/lib64/pkgconfig/ruby-1.9.pc
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-23 18:17:52 UTC
Thanks; I've got a build here to reproduce so I'll see what I can do.
Comment 9 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-23 21:37:32 UTC
Ok, got it to build with USE="ruby" supporting both rub18 and ruby19.

Is in hardened-dev overlay
Comment 10 Sven Vermeulen (RETIRED) gentoo-dev 2012-12-03 08:24:54 UTC
Moved to main tree, ~arch'ed
Comment 11 Sven Vermeulen (RETIRED) gentoo-dev 2012-12-30 15:30:20 UTC
Stable