[mythtv] Mythtv 0.26 build problem for Fedora Rawhide

Richard Shaw hobbes1069 at gmail.com
Mon Dec 10 17:29:30 UTC 2012


On Mon, Dec 10, 2012 at 10:58 AM, Derek Atkins <warlord at mit.edu> wrote:
> Richard Shaw <hobbes1069 at gmail.com> writes:
>
>>> Non trivial? I'd say it's pretty straight forward.
>>>
>>> - Unpack source
>>> - Copy patch into <rpmbuild_root>/SOURCES
>>> - Edit spec file to add patch and apply it
>>> - rpmbuild -ba <specfile>
>>>
>>> done. :)
>>
>> Almost :) I'd have to build alsa in mock since I'm running 17, not
>> rawhide, then you have to:
>>
>> mock -r fedora-rawhide-x86_64 --init
>> mock -r fedora-rawhide-x86_64 --install <new alsa packages>
>> mock -r fedora-rawhide-x86_64 --no-clean <mythtv srpm>
>>
>> Then (hopefully) done!
>
> Not at all.  You could just post-patch the alsa include file from the
> mock build of mythtv.  Just include a patch that literally patches
> /usr/include/alsa...  but run it from the myth build.  You shouldn't
> need to touch the alsa build.

You could do that, but *ick*. Using a mythtv patch to patch a system
header? I guess it would functionally serve the purpose but seems just
wrong :)

Anyway... I did it my way and it did indeed fix the problem. The only
oddity is that alsa apparently uses a header and footer file to
generate the include file so I had to patch the header file since
patching asoundlib.h directly just got overwritten.

diff -Naur alsa-lib-1.0.26.orig/include/asoundlib-head.h
alsa-lib-1.0.26/include/asoundlib-head.h
--- alsa-lib-1.0.26.orig/include/asoundlib-head.h	2012-09-06
03:55:52.000000000 -0500
+++ alsa-lib-1.0.26/include/asoundlib-head.h	2012-12-10 09:43:34.817506745 -0600
@@ -31,6 +31,7 @@
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <string.h>
 #include <fcntl.h>
 #include <assert.h>

Thanks,
Richard


More information about the mythtv-dev mailing list