On 24/03/15 06:52, Juan Romero Pardines wrote:
Hi Antti,
I'm not sure if xbps/xbps-src would be qualified for this task, but given
that xbps-src supports hooks before/after running a phase
(fetch, extract, configure, build, install, pkg) I believe that with some
changes it could be doable.
Could you please point me to an example of an utility that needs to be
packaged? will try to come up with something.
Let's say you want to create an nginx package which runs on Xen. I
think nginx needs some crosscompilation patches which are integrated
into the nginx available from: https://github.com/mato/rump-php
(logically ;)
So what you'd do is:
1) get http://repo.rumpkernel.org/rumprun
2) run ./build-rr.sh xen
That will give you the "base system" and also wrappers from the
crosscompilation tools.
Then:
3) get https://github.com/mato/rump-php
4) make sure ./app-tools (i.e. x-toolchain) is in path
5) run "make nginx"
The last step will give you a bootable image that you can run on the Xen
hypervisor using the run script.
Like I wrote in the previous mail, we'd need some refinement for "5" for
scenarios where we want to package multiple "executables" into a single
domain, but that's still so much up in the air, that it's not a concern
at the moment. Also, we'd need some ability to edit the config files of
the packaged software before they're baked into the bootable image.
Again, it's not something that has to exist in version 0.1.
In essence, for most of the steps, the procedure is actually no
different than normal crosscompilation. Even the "installation", I
imagine, is more or less like creating a bootable void linux image.