Today I’ve been working on my Gentoo ports. Alexander suggested to rename these ports since these are complete Linux distributions rather than linux_base ports and don’t actually suit our ports infrastructure, so I’ll rename them to linux_dist-gentoo-stage introducing this new kind of Linux ports. I’d like to keep the old behaviour as well, thus this change needed a lot of work. Furthermore, I’ve changed to static plist, so these patches are very huge. I haven’t submitted them yet, because I’ll do a lot of testing before. After this, I really have to move on with DESTDIR.
Archive for June, 2006
So, I have good results, my DESTDIR implementation has proven to work with the simplest ports. I mean ports without USE_* that don’t install files via [pre|do|post]-install target and have a standard configure and/or make script, e.g. net/csup or security/chroot_safe. I haven’t tested ports with dependencies, but that will be the next step. Here’s an example log:
[root@spitfire /usr/ports/net/csup]# make DESTDIR=/bla install
===> Generating temporary packing list
===> Checking if net/csup already installed
install -s -o root -g wheel -m 555 csup /bla/usr/local/bin
install -o root -g wheel -m 444 csup.1.gz /bla/usr/local/man/man1
===> Registering installation for csup-20060313
pkg_info: can’t find package ‘csup-20060313′ installed or in a file!
[root@spitfire /usr/ports/net/csup]# ls /bla/usr/local/bin/
[root@spitfire /usr/ports/net/csup]# ls /bla/var/db/pkg/csup-20060313/
+COMMENT +CONTENTS +DESC +MTREE_DIRS
[root@spitfire /usr/ports/net/csup]# cat /bla/var/db/pkg/csup-20060313/+CONTENTS
If you want a patch, here it is, but note that this is very-very-very experimental, use it for your own risk! Any feedback appreciated.