Created attachment 470476 [details] build.log Building dev-ruby/facter-3.6.3 fail with following error: * Running install phase for ruby21 ... /usr/bin/install: cannot stat '/var/tmp/portage/dev-ruby/facter-3.6.3/work/facter-3.6.3_build/lib/facter.rb': No such file or directory !!! doins: /var/tmp/portage/dev-ruby/facter-3.6.3/work/facter-3.6.3_build/lib/facter.rb does not exist In build.log ruby version seems badly detected: -- Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_CONFIG_INCLUDE_DIR) (found suitable version "1.9.0", minimum required is "1.9") Installed ruby versions: 1.9.3_p484 2.0.0_p353 and 2.1.9
Please post your `emerge --info` output in a comment.
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.23-r3, 4.4.26-gentoo x86_64) ================================================================= System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1230_v3_@_3.30GHz-with-gentoo-2.2 KiB Mem: 16390776 total, 1359580 free KiB Swap: 7999480 total, 7982412 free Timestamp of repository gentoo: Tue, 11 Apr 2017 00:24:07 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p48-r1::gentoo dev-lang/perl: 5.22.3_rc4::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.7.2-r1::gentoo dev-util/pkgconfig: 0.28-r1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.23.2::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo, 2.26.1::gentoo sys-devel/gcc: 4.7.3-r1::gentoo, 4.8.4::gentoo, 4.9.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.int.nexylan.net/gentoo-portage priority: -1000 nexylan-gentoo-overlay location: /var/lib/layman/nexylan-gentoo-overlay masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules multilib mysql ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authz_host dir log_config mime rewrite status auth_basic auth_digest authn_file authn_default authz_default authz_groupfile authz_user authz_owner alias cgi headers deflate filter setenvif expires" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access stub_status gzip fastcgi rewrite proxy split_clients upstream_ip_hash" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Could you show this `eselect ruby show` and also try 3.6.3-r1?
Hello Matthew, Eselect ruby show : Available Ruby profiles: [1] ruby19 [2] ruby20 [3] ruby21 (with Rubygems) * 3.6.3-r1 is not in portage tree yet : [U] dev-ruby/facter Available versions: 2.4.6 3.1.4-r1 3.1.8 ~3.4.1 ~3.5.0-r1 ~3.5.1 ~3.6.0 3.6.1 ~3.6.2-r1 (~)3.6.3 **9999 {debug +dmi +pciutils test +virt ELIBC="FreeBSD" RUBY_TARGETS="ruby20 ruby21 ruby22 ruby23"} Installed versions: 2.4.6(02:18:40 PM 04/11/2017)(dmi pciutils virt -test ELIBC="-FreeBSD" RUBY_TARGETS="ruby21 -ruby20 -ruby22 -ruby23") Homepage: http://www.puppetlabs.com/puppet/related-projects/facter/ Description: A cross-platform ruby library for retrieving facts from operating systems Gaëtan
Nevertheless, I have created the ebuild manually and I get the same issue : * Running install phase for ruby21 ... /usr/bin/install: cannot stat '/var/tmp/portage/dev-ruby/facter-3.6.3-r1/work/facter-3.6.3_build/lib/facter.rb': No such file or directory !!! doins: /var/tmp/portage/dev-ruby/facter-3.6.3-r1/work/facter-3.6.3_build/lib/facter.rb does not exist * ERROR: dev-ruby/facter-3.6.3-r1::gentoo failed (install phase): * doins failed * * If you need support, post the output of `emerge --info '=dev-ruby/facter-3.6.3-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-ruby/facter-3.6.3-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-ruby/facter-3.6.3-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/facter-3.6.3-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-ruby/facter-3.6.3-r1/work' * S: '/var/tmp/portage/dev-ruby/facter-3.6.3-r1/work/ruby21/facter-3.6.3' * QA Notice: file does not exist: * * doins: /var/tmp/portage/dev-ruby/facter-3.6.3-r1/work/facter-3.6.3_build/lib/facter.rb does not exist !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info =facter-3.6.3
I've still not been able to reproduce this :|
I had this same problem with all facter versions until I reselected ruby. Likely bad symlinks from eselect.
facter-3.11.3-r1 passes RUBY_LIB_INSTALL to cmake. Build system ignores RUBY_FOUND in that case, so ebuild should work even if ruby symlink is broken.
This is still an issue with dev-ruby/facter-3.11.2 but now that I read the BR and checked my ruby eselect, I see that my older ruby is gone and the new one wasn't selected by default. Once I re-selected ruby23 and built facter again it built fine. Unless the intent is to find a way to detect this, this bug can probably be closed as it isn't facter's fault.
The reproduction for me, since I forgot to actually explain it, was a major system upgrade that purged ruby22 (I don't upgrade my hypervisor too often) which left me without a "selected" ruby.