[mythtv] Gentoo CVS ebuild

Eric Andresen ruler111 at cox.net
Sat Mar 15 11:01:23 EST 2003


Something is wrong with the sed statements on your machine. If you look
within the ebuild, you can see that I have a few lines that sed through
to change the -march= line from pentiumpro. Are you running a current
version of portage? Run "emerge sync && emerge -u portage" to make sure.

On Sat, 2003-03-15 at 10:52, Daniel Milne wrote:
> Hi Eric,
> 	Thanks for those ebuilds. Very useful. However, they don't quite work 
> on my PC. Are you going to be submitting these to be included in 
> portage? Do you want bug reports? In the off chance that you do, I get 
> the following error.
> 
> cc1plus: bad value () for -march= switch
> cc1plus: bad value () for -mcpu= switch
> make[1]: *** [main.o] Error 1
> make[1]: Leaving directory 
> `/var/tmp/portage/mythtv-video-0.8/work/mythvideo/mythvideo'
> make: *** [sub-mythvideo] Error 2
> 
> !!! ERROR: media-video/mythtv-video-0.8 failed.
> !!! Function src_compile, Line 48, Exitcode 2
> !!! (no error message)
> 
> 
> The problem is in setting.pro "march=pentiumpro". A problem as I have an 
> athlon.  I'm no ebuild guru, so I'm not sure how to automatically fix 
> this, but somehow grabbing the values from make.conf would be ideal I 
> guess. Don't know how to do it tho.
> 
> Cheers,
> 
> D
> 
> 
> 
> 
> Eric Andresen wrote:
> > I suppose it even helps to attach said ebuild.
> > 
> > -- Eric Andresen
> >    ruler11 at cox.net
> > 
> > On Thu, 2003-03-13 at 22:10, Eric Andresen wrote:
> > 
> >>Here's another for mythweather, since it had a few small quirks.
> >>
> >>-- Eric Andresen
> >>   ruler111 at cox.net
> >>
> >>On Thu, 2003-03-13 at 21:48, Eric Andresen wrote:
> >>
> >>>Here's two that I wrote up fairly quickly, for the music and video
> >>>modules. They should give you a hint as to how to do the others.
> >>>
> >>>--Eric Andresen
> >>>  ruler111 at cox.net
> >>>
> >>>
> >>>On Thu, 2003-03-13 at 21:20, Derrick Swinarsky wrote:
> >>>
> >>>>Just as easy to get them from cvs and build them yourself... or at least that is what I found.
> >>>>
> >>>>Derrick
> >>>>
> >>>>On Thu, 13 Mar 2003 19:42:20 -0800
> >>>>John Hurliman <jhurliman at myrealbox.com> wrote:
> >>>>
> >>>
> >>>_______________________________________________
> >>>mythtv-dev mailing list
> >>>mythtv-dev at snowman.net
> >>>http://www.snowman.net/mailman/listinfo/mythtv-dev
> >>
> >>_______________________________________________
> >>mythtv-dev mailing list
> >>mythtv-dev at snowman.net
> >>http://www.snowman.net/mailman/listinfo/mythtv-dev
> >>
> >>
> >>------------------------------------------------------------------------
> >>
> >># Copyright 1999-2002 Gentoo Technologies, Inc.
> >># Distributed under the terms of the GNU General Public License v2 
> >># $Header: 2002/11/10 16:30:21 ndiin Exp $
> >>
> >>DESCRIPTION="Homebrew PVR project for analog TV cards -- Weather module"
> >>HOMEPAGE="http://www.mythtv.org/"
> >>
> >>SLOT="0"
> >>LICENSE="GPL-2"
> >>KEYWORDS="x86"
> >>
> >>DEPEND="media-video/mythtv-cvs"
> >>
> >>inherit cvs
> >>
> >>ECVS_SERVER="cvs.mythtv.org:/var/lib/cvs"
> >>ECVS_USER="mythtv"
> >>ECVS_PASS="mythtv"
> >>ECVS_MODULE="mythweather"
> >>ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
> >>S=${WORKDIR}/${ECVS_MODULE}
> >>
> >>src_compile() {
> >>
> >>	for i in `grep -l -r 'usr/local' ${S}`
> >>	do
> >>		cp -a ${i} ${i}.orig
> >>		sed -e "s:\/usr\/local:\/usr:" ${i}.orig > ${i}
> >>		rm -f ${i}.orig
> >>	done
> >>	
> >>	for x in ${CFLAGS}
> >>	do
> >>		if [ "${x/march}" != "${x}" ]
> >>		then
> >>			MARCH_FLAG="${x/-march=}"
> >>			break
> >>		fi
> >>	done
> >>	
> >>	for i in ${S}/settings.pro
> >>	do
> >>		cp -a ${i} ${i}.orig
> >>		sed -e "s:pentiumpro:${MARCH_FLAG}:" ${i}.orig > ${i}
> >>		rm -f ${i}.orig
> >>	done
> >>
> >>   # Ungzip accid.dat.gz since the program requires it as such
> >>	cd ${S}/mythweather
> >>	gunzip accid.dat.gz
> >>
> >>	# Fix error with default Makefile
> >>	cd ${S}
> >>	qmake mythweather.pro
> >>
> >>	make || die
> >>
> >>}
> >>
> >>src_install() {
> >>	
> >>	make \
> >>		INSTALL_ROOT=${D} \
> >>		install || die
> >>
> >>	dodir /usr/share/mythtv/mythweather
> >>	insinto /usr/share/mythtv/mythweather
> >>	doins ${S}/mythweather/weathertypes.dat ${S}/mythweather/accid.dat
> >>	dodir /usr/share/mythtv/mythweather/images
> >>	insinto /usr/share/mythtv/mythweather/images
> >>	doins ${S}/mythweather/images/*
> >>	dodoc README AUTHORS COPYING
> >>
> >>}
> >>
> >>
> >>------------------------------------------------------------------------
> >>
> >>_______________________________________________
> >>mythtv-dev mailing list
> >>mythtv-dev at snowman.net
> >>http://www.snowman.net/mailman/listinfo/mythtv-dev
> 
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
-- 
--Eric Andresen
  ndiin at asu.edu



More information about the mythtv-dev mailing list