[mythtv-users] Question about testing a patch
Klavs Klavsen
kl at vsen.dk
Wed Dec 16 12:09:55 UTC 2009
Hi Harry,
IMHO the best way it to build a package.
I did that for my armel hardware (backend - qnap ts119) and it was
pretty easy.
put it all in /usr/src and do this:
cd /usr/src
If you're on an *buntu 9.10 - you can just:
apt-get source mythtv #fetches and unpacks sources in current folder
apt-get build-dep mythtv #installs dependencies needed to compile the
package
otherwise:
find the sources on packages.ubuntu.org f.ex. (3 files: a .dsc, a source
and a diff)
and look in the unpacked folder (see below) in debian/control - to see
what packages it needs - and install your distro's equivalents, and edit
the control file to fit (just remove the listed dependency from the
control file).
#this will unpack the .dsc for you - and do some checks - you can
manually untar and apply the diff if you want.
dpkg-source -x mythtv_version-revision.dsc
The diff contains the debian subfolder - which is where the scripts used
to build the package is located.
Go into the folder it just created - and edit debian/rules - remove
whatever patches it applies (if they bug you - or if they don't match
any longer).
copy the debian folder into your myth-svn folder - and edit the
changelog file in the debian folder - so the first entry has the version
nr. you want your package to have.
Now build your package:
cd svn-checkout-of-mythtv-incl.-what-you-modified-and-debian-folder
dpkg-buildpackage -rfakeroot -b
Harry Devine said the following on 2009-12-11 21:18:
> OK, so I have the latest Mythbuntu 0.22-fixes auto-build installed
> (22954 I think; I'm not @ home to verify), and I downloaded the latest
> trunk (22970) to look around the code. I have an idea for an
> improvement (at least 1 I'd like to see). I was looking at the code
> and I have an idea on what I need to do, but I've never compiled Myth
> from source before. So, I have a few questions:
>
> 1) When I upgraded to Mythbuntu 9.10 and 0.22, should the required
> development tools already be installed for me?
>
> 2) My system is the 64 bit version. Does the Wiki have the steps
> documented on how to compile from source? The ./configure step,
> etc.? Should I see what my existing mythbackend and mythfrontend were
> compiled with using --version so I can setup the configure script
> properly?
>
> 3) Since I don't want to reinstall everything, can I check out the
> same version from SVN that's on my system? Then, can I stop
> mythbackend, rename the executable, and put the new one in its place?
> The code is in the backend only from what I can tell. Is this
> sufficient?
>
> 4) After I (hopefully) test the change, I assume I can submit the
> updated code to the developers in Trac somehow, right?
>
> Thanks for any help. Please go easy on me, its my 1st attempt at
> trying to implement a patch.
>
> Harry
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
--
Regards,
Klavs Klavsen, GSEC - kl at vsen.dk - http://www.vsen.dk
"Those who do not understand Unix are condemned to reinvent it, poorly."
--Henry Spencer
More information about the mythtv-users
mailing list