[PC-BSD Dev] pcbsd-build question

Joe Maloney jpm820 at gmail.com
Sat Dec 28 11:20:57 PST 2013


Hey Sam.  I have seen you around before on my google+.  Yes this is exactly one of the things I plan to use pcbsd-build for is to test out CURRENT.  Although I’m sure at some point the PCBSD project might roll out their own CURRENT set.  Even then I still see where this tool will be useful to test out my own changes to FreeBSD/PCBSD as well in the form of a finished ISO.  I could even point it to my own github fork for the pcbsd-stuff, ports tree, or freebsd world while I try things before I commit them anywhere.  It’s a really awesome script.  

That’s why I was contimplating tweaking the pcbsd-build a bit to make it build a smaller set of packages rather than the entire tree to be able to spit out ISO’s a little faster.  Since I’m not really trying to roll out something for public distribution and I don’t care about being able to build all 24,000+ ports for the time being unless help is needed with that part of the project.  Since I am just wanting to be able to test out my own changes.

You can fetch this tool here that Kris wrote using git clone https://github.com/pcbsd/pcbsd-build.  You can edit the pcbsd.cfg and customize it to whatever version of FreeBSD you want to run.  Since PCBSD just has a clone of the entire FreeBSD repo including all branches I want to say you just need to change your release from 9.2-RELEASE or stable/10 to something like svn_head.  

I think this pcbsd.cfg will work for what you want to do.

pcbsd.cfg -> http://pastebin.com/F4c2Cuky

Notice I changed the pcbsd ghbranch to master so I could grab the absolute latest changes and the freebsd version to svn_head.  In order to build this though you will likely need a host system running CURRENT.  I say this because I found in the past that poudriere has trouble building ports for versions of FreeBSD that are newer than the host.

So what I plan to try to do is implement bhyve on my pkgdemon server that runs 10-RC3 to install CURRENT within a VM to be able to build a CURRENT world so that I can generate ISO's.  I’m not sure if this theory will work out yet or if I will have to dedicate another bare metal server to it.  I’ve checked and kldload vmm for bhyve crashes my i7 950 at home so I’m going to wait until I am near my server at work to try it.

Joe Maloney



On Dec 28, 2013, at 12:35 PM, Sam Fourman Jr. <sfourman at gmail.com> wrote:

> 
> 
> 
> On Sat, Dec 28, 2013 at 11:28 AM, Joe Maloney <jpm820 at gmail.com> wrote:
> I see your iso build tool does indeed build the entire ports tree.  :)  Is there a way yet to rebuild just the ports needed for anything that might be contained in the iso?  Do you think perhaps if I were to create something to generate a list of just the ports in your overlay and created an option to feed to that list to poudriere it might work?  Would that be useful?  Otherwise awesome tool btw.  Very well put together.
> 
> Joe Maloney
> _______________________________________________
> 
> Joe,
> 
> I am a longtime FreeBSD user, I lurk on the PC-BSD lists because I long for a day when I can build a HEAD version of PC-BSD
> 
> I have interest in building a custom PC-BSD based on HEAD, for the purpose of testing developer patches.
> for an example look at the thread on the FreeBSD virt list: [PATCH] Rework DSDT generation in bhyve
> 
> in the past it has been newcons and radeonkms stuff..
> 
> 
> I have several AMD FX machines laying around, and Id like to help you test your build scripts.
> 
> do you have a wrapper shell script that pulls the bits from github, fires off a PC-BSD build
> and maybe builds the correct packages from poudriere
> 
> something we can use as a starting point? 
> 
> 
> 
>  
> Sam Fourman Jr.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/dev/attachments/20131228/58ac86d6/attachment.html>


More information about the Dev mailing list