Date: Mon, 20 Jan 2014 00:04:01 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: ports@FreeBSD.org Subject: Is it Ok to write files into ${STAGEDIR}/${PREFIX} on "build" stage? Message-ID: <1731518990.20140120000401@serebryakov.spb.ru>
next in thread | raw e-mail | index | archive | help
Hello, Ports. I'm writing port, which has complex, multi-stage build. In the middle ofg build some files should be installed into some directory with exactly same structure, as final result -- some ${TEMPROOT}/${PREFIX}. I could create special place for files, and in "do-install" simple do "tar -cf - -C ${TEMPROOT} . | tar -xf - -C ${STAGEDIR}" -- it will be correct install to stage dir for this port. But it looks strange -- to have two copies of all final files. Now I'm using ${STAGEDIR}/${PREFIX} instead of ${TEMPROOT}/${PREFIX} and it works nicely -- do-install: becomes no-op, everything is in-place and port doesn't spent another 250MiB of disk place. But, maybe, I don't something significant flaw in this approach and it is bad idea? -- // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1731518990.20140120000401>