Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619478 - =dev-ruby/facter-3.6.4 stable request
Summary: =dev-ruby/facter-3.6.4 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-23 20:46 UTC by alex
Modified: 2017-05-24 19:28 UTC (History)
3 users (show)

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


Attachments
00facterdir.patch (00facterdir.patch,157 bytes, patch)
2017-05-23 20:46 UTC, alex
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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