Subject: New tool pkg_comp
To: None <tech-pkg@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: tech-pkg
Date: 07/25/2002 16:16:45
This is a multi-part message in MIME format.
--Multipart_Thu__25_Jul_2002_16:16:45_+0200_08225200
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Hello
I'm working on a small program, pkg_comp. This allows the build of any
package inside a clean chroot environment, allowing you to check how it
behaves in a clean system.
You can ask... why is this useful? Well, one of the ideas that comes to
my mind is to see if a new package compiles well in a clean system, and if
autoconf detects everything properly.
To try it: you unpack the tar.bz2 file inside pkgsrc, then go to
pkgtools/pkg_comp and at last make install, like a normal package. I've
included a preliminar manpage. It should be ok to understand the program
a bit (read the source better, though it is still a bit ugly ;), but well,
here is a summary:
pkg_comp test.conf maketemplate
vi test.conf
pkg_comp test.conf makeroot
pkg_comp test.conf build misc/colorls x11/gtk
pkg_comp test.conf removeroot
What do you think of this program? Maybe we already have something
similar in pkgsrc and I haven't noticed it...
Thanks a lot for your oppinion!
PS: Be careful as the program misses error checks in many places and
would do some weird things...
PS1: This is very preliminar... manpage can contain typos, etc.
--
HispaBSD admin - http://www.HispaBSD.org
Julio Merino <jmmv@hispabsd.org>
--Multipart_Thu__25_Jul_2002_16:16:45_+0200_08225200
Content-Type: application/octet-stream;
name="pkg_comp.tar.bz2"
Content-Disposition: attachment;
filename="pkg_comp.tar.bz2"
Content-Transfer-Encoding: base64
QlpoOTFBWSZTWcx7N1YAFgB/nt9wAEB9///f////7v////4ACEAAACEAAQAIYBRGb7sffV998gfd
DTreHM0tnZlO2KAAAD5sHJ43cKYg9My2266dyylPIA7wkiITTalN6aaGkwUTzU2qY9U0DT1MDIh6
j1DNQaA2poAPUGQRoRoSap71FPyJlD0nqPUNAGQaAAAAANPUAA1M1GpDU08oNANAAAAAAAAAAaAG
gBJqKEyjQ0mhpqH6UxNBpk0bSAAMgAAAAAANpRGQmo9KeKeU2U9TQaNADIAAZNADQAAAAEiQIJhA
TEEyk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