[ATrpms-devel] Re: Fedora 2 building MythTv SRPM problems
Axel Thimm
Axel.Thimm at atrpms.net
Sun Jun 27 10:26:19 CEST 2004
Hi,
On Sun, Jun 27, 2004 at 08:40:06AM +0100, Terry Barnaby wrote:
> I am trying to rebuild the MythTv RPMS for Fedora core 2.
> I am doing this as I need DVB ability and later ViaHwMpeg ability.
> I have updated the system using yum (ATrpms included in yum.conf) and
> installed
> mythtv-suite.
>
> When I try and rebuild the mythtv RPM I get quite a few errors from
> rpmbuild. The first is:
> error: line 7: Tag takes single token only: Release: %atrelease 74
Pass --define 'atrelease() %1.rhfc2.tb' to the rpmbuild command.
> Questions:
> 1. Am I missing some RPM macro packages ?
That macro is always passed on command line, there is no reliable or
clean way to "detect" distribution from within a minimal distribution
(like the ones caught in chroots for building purposes).
> 2. I also note that linuxtv-dvb-devel is needed for DVB. Is this
> necessary for Fedora 2 as the 2.6 kernel has DVB support ?
Well, it was just recently removed, so one needs to come up with
something that will not depend on the wheather :(
> 3. I note that different options are enabled with the "_with_dvb"
> macros etc:
> What is the best way to setup these macros ?
For DVB you can throw all away and start from scratch. They are all
"designed to use" macros, I haven't yet come along to even try to
build for DVB support. :(
The idea with _with_dvb is that later one would be able to use
rpmbuild ---rebuild --without-dvb foo.src.rpm
and get a different binary package. For some parts (like EPIA support)
it makes sense, for other (like ALSA) it doesn't, so I am stripping
the too many options when not neccessary.
--
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20040627/65993833/attachment.bin
More information about the atrpms-devel
mailing list