Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2016 11:16:53 +0200
From:      Christian Schwarz <me@cschwarz.com>
To:        freebsd-x11@freebsd.org
Subject:   Re: devel/llvm38 & custom poudriere
Message-ID:  <20160927091653.GA5074@csarch>
In-Reply-To: <20160926160431.GA19646@csarch.speedport.ip>
References:  <20160926160431.GA19646@csarch.speedport.ip>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160927091653.GA5074>