From owner-freebsd-x11@freebsd.org Tue Sep 27 09:17:00 2016 Return-Path: Delivered-To: freebsd-x11@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 8D008BEB6C6 for ; Tue, 27 Sep 2016 09:17:00 +0000 (UTC) (envelope-from me@cschwarz.com) Received: from orion.uberspace.de (orion.uberspace.de [95.143.172.79]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E29C67A9 for ; Tue, 27 Sep 2016 09:16:59 +0000 (UTC) (envelope-from me@cschwarz.com) Received: (qmail 28930 invoked from network); 27 Sep 2016 09:16:55 -0000 Received: from localhost (HELO csarch) (127.0.0.1) by orion.uberspace.de with SMTP; 27 Sep 2016 09:16:55 -0000 Date: Tue, 27 Sep 2016 11:16:53 +0200 From: Christian Schwarz To: freebsd-x11@freebsd.org Subject: Re: devel/llvm38 & custom poudriere Message-ID: <20160927091653.GA5074@csarch> References: <20160926160431.GA19646@csarch.speedport.ip> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160926160431.GA19646@csarch.speedport.ip> User-Agent: Mutt/1.6.2 (2016-07-01) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 09:17:00 -0000 > I tried fiddling around by symlinkng /usr/bin/cc to the clang binaries, > this was not successful however. Apparently, I was not symlinking correctly. The way I got my drm-next-4.7 poudriere jail running: zfs create zroot/poudriere/jails/12graphics zfs set mountpoint=/usr/local/poudriere/jails/12graphics zroot/poudriere/jails/12graphics # manually create the poudriere.d/jail/12graphics # by copying & adjusting a regular build jail cd path-to-drm-next-4.7 make buildworld make installworld DESTDIR=/usr/local/poudriere/jails/12graphics make distribution DESTDIR=/usr/local/poudriere/jails/12graphics zfs snapshot zroot/poudriere/jails/12graphics@nollvm cp /etc/resolv.conf /usr/local/poudriere/jails/12graphics/etc/resolv.conf pkg --chroot /usr/local/poudriere/jails/12graphics install clang38 rm /etc/resolv.conf echo 'CC=/usr/local/bin/clang38' >> /usr/local/etc/poudriere.d/12graphics-make.conf echo 'CXX=/usr/local/bin/clang++38' >> /usr/local/etc/poudriere.d/12graphics-make.conf echo 'CPP=/usr/local/bin/clang-cpp38' >> /usr/local/etc/poudriere.d/12graphics-make.conf # symlink c** binaries for ./configure scripts cd /usr/local/poudriere/jails/12graphics/usr/bin ln -s ../local/llvm/bin/clang cc ln -s ../local/llvm/bin/clang++ c++ ln -s ../local/llvm/bin/clang-cpp cpp # create the zfs snapshot @clean, it is used as source for build jail clones created by poudriere zfs snapshot zroot/poudriere/jails/12graphics@clean poudriere bulk -j 12graphics -p xserver-next -c -f /usr/local/etc/poudriere.d/myports.list Notic the make.conf in the jail is no longer used, instead, we use the poudriere feature. Hope this is useful to someone, Christian