I've written a patch for Ubiquity and I'd like to test it before I submit it, but I'm not sure how to go about this given the nature of Ubiquity (only used during installation). Is there a way I can build and run it on my own system, or would I have to pull the entire Ubuntu source code and integrate my patch into that, then run a test installation?
Ubuntu – How to build and test Ubiquity
developmentpatchubiquity
Related Question
- Ubuntu – Problem running Ubiquity when compiled from source
- Ubuntu – How to maintain a patched upstream package
- Ubuntu – the way to submit a patch to fix all the damage that LP: #600941 causes
- Ubuntu – Set installer background / not able to run early_command in custom preseed file
- Ubuntu – Select mirror during installation from live mode
Best Answer
There are a couple ways to do this.
You can install ubiquity and edit the code on your machine (in
/usr/lib/ubiquity/*
). Then just run it and play around. It will adjust some global machine settings, so be prepared for your language or keyboard to change as you select values. And remember you probably don't want to repartition your hard drive as you're using it (it actually won't let you). But you can partition a thumb drive easily enough.You can burn a Live CD/thumb drive easily enough and run it. During installation, you can do the same trick and edit ubiquity's files in
/usr/lib/ubiquity
(Alt+Ctrl+T to bring up a Terminal). You may need to kill any existing instances of ubiquity and restart it:You could also use a virtual machine to test, but that has always been more work than it's worth for me. I usually just use method #1.
Those are the easiest ways. You could also grab the Ubuntu source, edit it, build a new package, install it, and then play with it. But you indicated you wanted to avoid that.