From owner-freebsd-ports@freebsd.org Sun May 29 11:24:17 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 497CDB53011 for ; Sun, 29 May 2016 11:24:17 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 05EB11B26 for ; Sun, 29 May 2016 11:24:17 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1b6ypN-0002hw-0s; Sun, 29 May 2016 13:24:17 +0200 Date: Sun, 29 May 2016 13:24:17 +0200 From: Kurt Jaeger To: Fernando Herrero =?iso-8859-1?Q?Carr=F3n?= Cc: freebsd-ports@freebsd.org Subject: Re: math/openblas + poudriere + manual building Message-ID: <20160529112416.GU41922@home.opsec.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2016 11:24:17 -0000 Hi! > I am using poudriere for the first time to test some patches to math/R. One > new feature will be the ability to link against math/openblas. My portstree > was updated yesterday (28/05). > For my purposes right now I only want to build math/openblas (0.2.18,1) for > my computer, so I uncheck the DYNAMIC_ARCH option, which I suppose will > generate code for many architectures. Use DYNAMIC_ARCH, otherwise the port is configured to not build in poudriere. As far as I understand, those BLAS related codes all try either to build for multiple CPUs or try to build for a specific CPU. So what should the poor port maintainer do ? Either she allows to build anyway, which produces a optimized port for the CPU of the builder host, or she says: We can't, build it manually. It's a mess. From my point of view, it should always build with DYNAMIC_ARCH, which is not always the fastest binary, but at least it builds 8-} > * After searching a bit, I have not found how to *manually* build a package > in poudriere. Does that mean: build the port in your ports tree outside > poudriere? Yes. > Should that message be reworded? Is there something missing in > the documentation? Am I missing something? It's a difficult topic, so it's difficult to reword. Do you have suggestions ? > * I see some people are manually editing the Makefile of math/atlas to tune > to their machines [2]. My solution with math/openblas has been to finally > enable DYNAMIC_ARCH, which probably compiles more code than I need to. I am > fairly comfortable with the package optimizing for the build machine. Isn't > there any easy way to force poudriere to go on? You are asking for an easy way to override MANUAL_PACKAGE_BUILD. > Setting NO_IGNORE in the > environment or something like that (which, surprisingly, allows building of > forbidden, but not ignored ports)? It would be useful, yes. Probably submit a PR for poudriere to add some flag like this. -- pi@opsec.eu +49 171 3101372 4 years to go !