HEADS-UP: DESTDIR support committed to Mk/
gabor at FreeBSD.org
Fri Aug 4 16:08:24 UTC 2006
I am pleased to announce, that portmgr committed my patch for ports
infrastructure DESTDIR support today. Note that this support is only for
the infrastructure, ports may or may not respect the DESTDIR macro, so
you should use this with care. Also note, that we only tested this
patchset without the DESTDIR macro set, but will do an another one with
DESTDIR set to something and check how many ports respect DESTDIR and
how many left to fix, but port maintainers can start checking their
ports and fixing them if necessary. Unfortunately, testing ports for
DESTDIR is pretty difficult, since we don't have support for this in
tinderbox. I used a chroot jail installed into an another chroot jail to
ensure I won't make my filesystem dirty. I chrooted into the first jail
and run make install for the given port with DESTDIR set to the another
chroot jail, checked if everything went fine and did make deinstall and
checked if everything is still good. I know it's a bit complicated, but
we don't have better yet.
I've also written a Wiki page for DESTDIR with some guidelines what to
care about when writing DESTDIR-respective ports.
You can find it here: http://wikitest.freebsd.org/DESTDIR
I also suggest to read the CHANGES entry, if you haven't done this yet:
Documentation update for porters-handbook will also come soon.
If you have questions, please feel free to contact me.
More information about the freebsd-ports