From owner-freebsd-ports@freebsd.org Wed Dec 14 08:06:16 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ECB5AC772D0 for ; Wed, 14 Dec 2016 08:06:16 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 8A0D9162E for ; Wed, 14 Dec 2016 08:06:15 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-147-181.bras1.adl6.internode.on.net (HELO leader.local) ([118.210.147.181]) by ipmail06.adl6.internode.on.net with ESMTP; 14 Dec 2016 18:35:58 +1030 Subject: Re: The ports collection has some serious issues To: "Julian H. Stacey" References: <201612121931.uBCJV0qO022291@fire.js.berklix.net> Cc: freebsd-ports@freebsd.org From: Shane Ambler Message-ID: Date: Wed, 14 Dec 2016 18:35:55 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <201612121931.uBCJV0qO022291@fire.js.berklix.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 08:06:17 -0000 On 13/12/2016 06:01, Julian H. Stacey wrote: >> I would say this rarely happens with the default setup, the more port >> options you change the more likely it is something will break. > > Yes, I now start: cd /var/db/ports; mv * MV/* ; setenv NO_DIALOG=YES > Before: cd /usr/ports; make BERKLIX_CLIENT=YES # Uses ports/*/Makefile.local > (still innumerable breaks of course on 1200 ports inc deps.) > > I can re-enable options for a 2nd pass rebuild for the very > few ports need it (maybe some better way?). That's what I like about poudriere, one port can fail and builds still continue until as much is built as possible. I also know that everything is built before changing anything that is installed. > poudriere's `-f' is nice to accept a list. > But I havent found a way to build my list yet from my Makefile.local eg > cd /usr/ports; make BERKLIX_CLIENT=YES echo_my_category_and_port > I'll probably hack bsd.port.mk & bsd.port.subdir.mk make all-depends-list also - make build-depends-list make run-depends-list make package-depends-list make test-depends-list To create a list of ports I have installed I just use pkg info -aqo | sort > myports.list For setting options, I created /usr/local/etc/poudriere.d/mypkg-make.conf and filled it with lines like DEFAULT_VERSIONS= apache=2.4 perl5=5.20 pgsql=9.5 OPTIONS_SET= OPTIMIZED_CFLAGS CPU_OPTS SIMD MMX SSE SSE2 SSSE3 x11-servers_xorg-server_SET= DEVD SUID x11-servers_xorg-server_UNSET= HAL then I use poudriere bulk -j 10stableamd64 -p myports -z mypkg -f myports.list that way these settings are only used when building my pkg repo and not when I test build any ports (use poudriere.d/make.conf for settings to be used in all poudriere builds). My /etc/make.conf only contains - .include "/usr/local/etc/poudriere.d/mypkg-make.conf" so the same setting are used for any manual port builds as well as my poudriere created pkg repo. -- FreeBSD - the place to B...Software Developing Shane Ambler