Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 619478

Summary: =dev-ruby/facter-3.6.4 stable request
Product: Gentoo Linux Reporter: alex <alex>
Component: StabilizationAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, ruby, sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments:
Description Flags
00facterdir.patch none

Description alex 2017-05-23 20:46:56 UTC
Created attachment 473986 [details, diff]
00facterdir.patch

facter sets the FACTERDIR wrongfully to /usr causing puppet to die with:

  libfacter was not found. Please make sure it was installed to the expected location.

It's caused by the files/00facterdir file.
It should be set to "FACTERDIR=/usr/lib"
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-05-23 21:17:14 UTC
which specific version of facter was used?
Comment 2 alex 2017-05-23 21:18:38 UTC
I used 3.6.3. But from the build I'm guessing the error occured since 3.1.8
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-05-23 21:21:20 UTC
try 3.6.3-r1

-	if [[ $(get_libdir) == lib64 ]]; then
-		dodir /usr/lib64
-		mv "${D}/usr/lib/"* "${D}/usr/lib64/"
-		rmdir "${D}/usr/lib"
-	fi
-	doenvd "${FILESDIR}"/00facterdir
+
+	# need a variable file in env.d :(
+	diropts -m0755
+	dodir /etc/env.d
+	echo -n "FACTERDIR=/usr/$(get_libdir)" > "${D}/etc/env.d/00facterdir"
+	fperms 0644 /etc/env.d/00facterdir

related to bug 611018
Comment 4 alex 2017-05-24 18:48:03 UTC
You're right with 3.6.3-r1 it works. The facterdir is set correctly:
  # in my case
  FACTERDIR=/usr/lib64

Thx. So should probably stablize 3.6.3-r1 and mask all older versions. :-)
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-05-24 19:27:27 UTC
gonna do the stable req in bug 587848