From owner-freebsd-ports@freebsd.org Tue Feb 6 03:03:28 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F34D6EEB787 for ; Tue, 6 Feb 2018 03:03:27 +0000 (UTC) (envelope-from xaque208@gmail.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F3917114B for ; Tue, 6 Feb 2018 03:03:27 +0000 (UTC) (envelope-from xaque208@gmail.com) Received: by mail-it0-x232.google.com with SMTP id j21-v6so10021678ita.1 for ; Mon, 05 Feb 2018 19:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/Cx/E46ESomTe4dFahiAIkDOM6kHHYGpu46L5O+c3NM=; b=l89y54zfzQb99v4qDkI2cW6uSgJiDiQ5KXHkwmonkWwbQBC3YX/ZEb9fII52CQBmWE 5A2mlweH/fHnsO4S1+/+DYvR9qZCI5GJz3rr13Z/j4jcudMz1Y6YEWBLikkRRPgx23lD bAEjuMKKd/D5wwUqpJqtqLRTqhssHuD6fd8G1r7RoToSbvaG+6yY9MMQkjDKKRWtCwm8 LrIZontUc3QGKkW7Ks9eX3llSXJnQtZo8EnxeJZef1Q8rAJEb3UPhdt6UZefJ8aINqDz dC925mGIYFejDMy75qZMPfJUYeICaNQY8ekijKaE00oDaYkOjbvUsADO43GqOIp2ti/w 230w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/Cx/E46ESomTe4dFahiAIkDOM6kHHYGpu46L5O+c3NM=; b=SFVnQhuGAwwcF3ZlAhkpLSLM22yyRuf/8HzzGe5MLbL+hdjZm64K0wYL79WVsd+ZOe QQV5wE/NviPs0zNG+sDQ2RQOdL4rstY8t/2+Vz9PG85A5VavzHItmWBQG4vU6uFrXJCC cSF/aFcuT1bqJcCU024HVGjNS4CPIFTG077wxtAN7Oq8vbvrUuQGuoiwUpOWI7pjh/R4 Qovqijxc1p5Byb2xBO/HDbePEozp97eOUmvilNK7hiiS3qdeUDB/+iuo1HXditK0OjcQ /HwMT33diiO3AFxwfIIlRXvRuv2X79pk7Vp+flbukYnDnH/F9EMduS6eEXRYe/XBP3bR Za/g== X-Gm-Message-State: APf1xPCvyVoCHft3lQg02fu4GODUA9aJGYYEMsrJtDFfSxiWyBi/Fxmk l3RB1154uCHHJDMh8AMwdDt2n0ZBaEKZj5JUXCG0Kw== X-Google-Smtp-Source: AH8x227kqd8dMYAgziYdt+I4b0m0l5rmSN541YRn9cEEbUUznYPdvn3jwtssEs+xrjnnFItGGYh9eXMFNtZ6wQamVHE= X-Received: by 10.36.93.136 with SMTP id w130mr1244598ita.106.1517886206798; Mon, 05 Feb 2018 19:03:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.166.137 with HTTP; Mon, 5 Feb 2018 19:03:25 -0800 (PST) Received: by 10.2.166.137 with HTTP; Mon, 5 Feb 2018 19:03:25 -0800 (PST) In-Reply-To: References: From: Zach Leslie Date: Mon, 5 Feb 2018 19:03:25 -0800 Message-ID: Subject: Re: rubygem-facter versus sysutils/facter To: "Dan Mahoney (Gushi)" Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2018 03:03:28 -0000 On Feb 5, 2018 5:51 PM, "Dan Mahoney (Gushi)" wrote: All, I've lost the better part of an afternoon to this issue. These questions are not just specific to the above ports, but also as to how ports are best built in general. BACKGROUND: The puppet ports require rubygem-facter. There's a knob in the port that lets you switch to sysutils/facter, which is more modern and written in C. Rubygem-facter is based on facter 2, which is EOL as of 2016. The new-style puppet facts are now including more and more information that's not available in rubygem-facter, and it means that the "Fact" documentation on puppet.org doesn't at all match what you currently get on FreeBSD, even with a modern puppet. The ruby folks have been trying to make a modern rubygem-version for years, but there's no real progress: https://tickets.puppetlabs.com/browse/FACT-1523 https://tickets.puppetlabs.com/browse/FACT-1542 Having to build a custom port of Puppet on every machine (which would mean building ruby from scratch) is annoying as heck, and while I have my own poudriere install and build repos, it's *puppet* that places those on my production machines, so I'm looking for a bootstrapping method that "just works" as simply as 'pkg install puppet4' does. Perhaps you have reasons not to, but sysutils/puppet5 should be the promised land you are looking for. By default it uses sysutils/facter, and since that seems to be your underlying goal, maybe start there. I can dig closer at your questions if that ends up being insufficient. There is also a puppet module for poudriere that can help, should you choose to build a repo. Cheers, Zach