Hi everyone, I'm pleased to announce a new image available for testing. The aim is to make it much simpler for users to build their own packages and get started with pkgsrc development, as well as ensuring they are built using the same options by default that we use for the official sets.
The image is 263MB and available in Manta: http://us-east.manta.joyent.com/pkgsrc/public/images/pkgdev-15.1.0.json http://us-east.manta.joyent.com/pkgsrc/public/images/pkgdev-15.1.0.zfs.gz Once the image is installed and you have a VM up and running, here is an example of how to build Postfix with the 'pgsql' option enabled. - Create a 2015Q1-i386 sandbox and chroot into it. If you want 64-bit instead, use '-x86_64', or '-multiarch' for multiarch. $ run-sandbox 2015Q1-i386 - Edit the pkgoptions file, adding 'pgsql' to the postfix options. $ vi /shared/pkgbuild/include/pkgoptions/2015Q1.mk PKG_OPTIONS.postfix= sqlite pgsql - Build the package. $ bmake package - If successful, the package is now built and available under /shared/packages for use. $ ls /shared/packages/SmartOS/2015Q1/i386/All/postfix-2.11.4.tgz /shared/packages/SmartOS/2015Q1/i386/All/postfix-2.11.4.tgz - Exit the sandbox and it will automatically be cleaned up. $ exit Part of this work is thanks to the new 'pkgbuild' repository at: https://github.com/joyent/pkgbuild This is an export of our internal build infrastructure, and contains all of the settings and scripts we use to build the official packages. This now becomes a great place to see how we build things, log issues you have with our options selection or to suggest changes we may want to make. Known issues: - The sandbox script downloads a bunch of packages each time it runs. It is configured to use a local PKG_PATH if populated, but I need to write a script to fetch the required packages. I didn't want to include these packages in the image as it would grow considerably and users may not want all architectures. - The 'bootstrap-pbulk' bootstrap kits aren't yet available for users who want to just clone pkgbuild.git and do things manually rather than using the pkgdev image. I'd love feedback on this, the aim is to get users building packages within 2 minutes (modulo download times), so if things aren't obvious or don't work as expected please let me know. I'll provide some proper documentation for this and a 2014Q4 image in due course. Cheers, -- Jonathan Perkin - Joyent, Inc. - www.joyent.com ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
