From owner-freebsd-questions@FreeBSD.ORG Tue Mar 25 08:49:14 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B58B153 for ; Tue, 25 Mar 2014 08:49:14 +0000 (UTC) Received: from eu1sys200aog112.obsmtp.com (eu1sys200aog112.obsmtp.com [207.126.144.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 893C3C45 for ; Tue, 25 Mar 2014 08:49:13 +0000 (UTC) Received: from mail-wg0-f47.google.com ([74.125.82.47]) (using TLSv1) by eu1sys200aob112.postini.com ([207.126.147.11]) with SMTP ID DSNKUzFC7pOxzTt3kmVC38vL+tgRsw8XWD8j@postini.com; Tue, 25 Mar 2014 08:49:13 UTC Received: by mail-wg0-f47.google.com with SMTP id x12so96335wgg.6 for ; Tue, 25 Mar 2014 01:48:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:message-id:to:subject:reply-to :in-reply-to; bh=Kkb5MS1Y3h5CmZTOrM7uHJV8NnPdLPwVK3pqRZ/snkc=; b=E5ow3EkVZwdJ3SdWrXcEO3ts2Nai8ayZ/xHhOYnur3IHC5xsRr/3Sc4kB7fY1tNPv1 ZpvTLlX7qUjT6CBxvlegjp57qfsyG55eRgJn1yLmFfWIx/5abgbEwux181QgvKxzaPv7 j18De9MdNkMANGGkKfDlKQQ4C+OCt0iU0RF+uXlJTnuR1q4HpODhmPoYONdF6vLvmQDJ B86+yYs9Sx9HqXHcnALPwE8zFUSzOCnkjUU2qecGR21r3KPssu98N3Q/KuwbL/pdbsMG DBp536ulYdICet15EQNLjAtZgnxSLNl9i96G09lIeMvCZ2hpnzp915hIDrJbrhpft/Em mjAg== X-Gm-Message-State: ALoCoQk+sPR9QUnCiZsEJX66mDtIEfHxkf3xYAIRH4emd09k+7V8lOwtsT8sqxtq7m7MKv0IQmygL5hLiAYX4iXUWZEd+7ntcTQ9MO3wrsgbHLB4RWio1EJsI5gCaWtE/5TmFeUD0tHuROcEzRs3zzq2poOJKf/8OQEvnTciyNHF5fliquY8ECUDzb5+Du5Pum2UvMQWWMFP X-Received: by 10.180.188.169 with SMTP id gb9mr20506205wic.17.1395737326389; Tue, 25 Mar 2014 01:48:46 -0700 (PDT) X-Received: by 10.180.188.169 with SMTP id gb9mr20506193wic.17.1395737326258; Tue, 25 Mar 2014 01:48:46 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id f3sm48133050wiv.2.2014.03.25.01.48.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 01:48:45 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.8/8.14.6) with ESMTP id s2P8mg3Z064878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 25 Mar 2014 08:48:42 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.8/8.14.6/Submit) id s2P8mgBH064877; Tue, 25 Mar 2014 08:48:42 GMT (envelope-from mexas) Date: Tue, 25 Mar 2014 01:48:45 -0700 (PDT) From: Anton Shterenlikht Message-Id: <201403250848.s2P8mgBH064877@mech-cluster241.men.bris.ac.uk> To: dnewman@networktest.com, freebsd-questions@freebsd.org Subject: Re: Using pkg with build options In-Reply-To: <5330C120.40905@networktest.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: mexas@bris.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2014 08:49:14 -0000 > >I'm still quite confused over the migration to pkg. > >I have a mix of 9.2 and 10.0 machines. Most run at least one port >compiled with options. > >Is there a guide to moving these machines to pkg and poudriere? These are two unrelated issues. You can move to pkg any time, and still use the same process to build ports that you are using now. All that will change is that instead of pkg_* commands you'll need to use pkg commands. There are many things happening under the cover, but as a user I don't need to worry about them. All works as before, i.e. I still use portmaster occasionally to update ports. If you want to build packages yourself with poudriere, then this is also easy to do. I found this guide halpful: https://www.glenbarber.us/2012/06/11/Maintaining-Your-Own-pkgng-Repository.html together with other poudriere pages. However, if you need to build packages with several sets of options, things get a bit more complex. Essentially, as far as I understand, the easiest is to have a jail built for each set of options. In the limit, if each of your boxes has ports with unique set of options, you might have as many jails as boxes. Then it's easy: you run "poudriere options -j ". This is likely to be an overkill, as you'll have to build many times ports which do not have options, of the same set of options, but this will work. Then from each box you choose which jail to pull the packages from. After the packages are pulled and installed, again things are as before, i.e. you can mix portmaster with pkg, although there might be possible issues if you local ports tree revision differs from that used to build the packages with poudriere. I don't have this complexity. I have several ia64 boxes, for which I build a single set of packages with options with poudriere. This is very good and easy (after some learning time, of course). Anton