[ubuntu-mythtv] Patching Mythbuntu Source

Chase Douglas chase.douglas at canonical.com
Thu Sep 1 14:51:02 UTC 2011


On 09/01/2011 06:12 AM, Tom Bongiorno wrote:
> I used the commands below to get the source code.  Is there a better way
> to get more up-to-date source code from the updates repos instead of the
> standard Mythbuntu 11.04 distribution?
> 
> sudo apt-get build-dep mythtv
> sudo apt-get source mythtv
> sudo apt-get install devscripts

You probably want to check out the mythbuntu ppa. If you need a 0.24
based backend, for example, you could run:

$ sudo add-apt-repository ppa:mythtbuntu/0.24
$ sudo apt-get update
$ sudo apt-get upgrade

It's completely unsupported, but it might do the trick.

If you are really wanting to build your own packages, you might find it
easier to checkout the source package branches:

$ bzr branch lp:ubuntu/mythtv
$ bzr branch lp:ubuntu/natty/mythtv
$ bzr branch lp:ubuntu/hardy-updates/mythtv

The first will checkout the branch of the current Ubuntu release under
development (right now that's Oneiric). The second will checkout the
branch for the given release. The third will checkout the latest update
for the given release, but only when there has actually been an update.
You can find all these branches at
http://code.launchpad.net/ubuntu/+source/mythtv.

What I like about this approach is that I can use bzr builddeb (apt-get
install bzr-builddeb). Once you have checked out the branch, run:

$ bzr bd -- -uc

This will build the package in ../build-area based on what is in the bzr
branch. So, you can add your patches to the bzr branch, commit them to
keep them safe, and then use bzr bd to build the package. If there are
issues, update the patch and try again. Since the package is built in a
separate directory, you don't have to worry about the build polluting
your source tree.

-- Chase



More information about the Ubuntu-mythtv mailing list