I modified SRC_URI in order to get ebuild from GomGom web site, the main dev of xvid. I tested this ebuid on x86 only. I kept amd64 support even if i didn't be able to test it, in order to put yasm depend. Xvid 1.1x branch have x86_64 support enable however you must compile asm code with yasm (quoting GomGom) instead of nasm. IMHO 1.0.3 can be switch to stable et 1.1 to ~ for x86 arch Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 50351 [details] xvid-1.1.0_beta1.ebuild.diff
Comment on attachment 50351 [details] xvid-1.1.0_beta1.ebuild.diff --- /usr/portage/media-libs/xvid/xvid-1.0.3.ebuild 2005-01-13 02:11:51.000000000 +0000 +++ xvid-1.1.0_beta1.ebuild 2005-02-04 18:49:56.688533376 +0000 @@ -4,25 +4,26 @@ inherit eutils - MY_P=${PN}core-${PV/_rc/-rc} + MY_P=${PN}core-${PV/_beta/-beta} DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encoding solution." HOMEPAGE="http://www.xvid.org/" - SRC_URI="http://files.xvid.org/downloads/${MY_P}.tar.bz2" + SRC_URI="http://ed.gomez.free.fr/projects/${PN}-${PV/_beta/-beta}/${MY_P}.tar.b z2" + #SRC_URI="http://files.xvid.org/downloads/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="1" - KEYWORDS="~x86 ~amd64 ~sparc" + KEYWORDS="~x86 ~amd64" IUSE="doc" DEPEND="virtual/libc - x86? ( >=dev-lang/nasm-0.98.36 )" + x86? ( >=dev-lang/nasm-0.98.36 ) + amd64? ( >=dev-lang/yasm-0.3.0 ) " S="${WORKDIR}/${MY_P}/build/generic" src_unpack() { unpack ${A} cd ${S} - epatch ${FILESDIR}/${PV}-DESTDIR.patch } src_install() { @@ -33,7 +34,7 @@ local mylib="$(basename $(ls ${D}/usr/$(get_libdir)/libxvidcore.so*))" dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so - dosym ${mylib} /usr/$(get_libdir)/${mylib/.0} + dosym ${mylib} /usr/$(get_libdir)/${mylib/.1} if use doc ; then dodoc CodingStyle doc/README
Created attachment 50352 [details] xvid-1.1.0_beta1.ebuild.diff
Comment on attachment 50352 [details] xvid-1.1.0_beta1.ebuild.diff Sorry for the mess i inversed my diff you can del previous post
ive got an amd64 and the patch fails, im new at this but it looks like my ebuild is different cat /usr/portage/media-libs/xvid/xvid-1.0.3.ebuild # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/xvid/xvid-1.0.3.ebuild,v 1.2 2005/01/13 02:01:32 weeve Exp $ inherit eutils MY_P=${PN}core-${PV/_rc/-rc} DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encoding solution." HOMEPAGE="http://www.xvid.org/" SRC_URI="http://files.xvid.org/downloads/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="1" KEYWORDS="~x86 ~amd64 ~sparc" IUSE="doc" DEPEND="virtual/libc x86? ( >=dev-lang/nasm-0.98.36 )" S="${WORKDIR}/${MY_P}/build/generic" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PV}-DESTDIR.patch } src_install() { make install DESTDIR=${D} || die cd ${S}/../../ dodoc AUTHORS ChangeLog README TODO doc/* local mylib="$(basename $(ls ${D}/usr/$(get_libdir)/libxvidcore.so*))" dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so dosym ${mylib} /usr/$(get_libdir)/${mylib/.0} if use doc ; then dodoc CodingStyle doc/README insinto /usr/share/doc/${PF}/examples doins examples/* fi }
I posted an ebuild for 1.1.0 -beta1 You try to install 1.0.3 and sure this is not the same ebuild. If you want to bug report about 1.0.3 please post in an other thread. Else you can try this ebuild amd64 support is include in source you don't need a patch Try to make 1.1.0_beta1 ebuild using my diff file. and put it in your port_dir_overlay then ebuild xvid-1.1.0_beta1.ebuild digest emerge -av xvid tell me if that work. I have not an amd64 to test the support
sorry for no replying earlier but i thought i was setup to be emailed if comments were made to this bug, i posted the ebuild i was patching but renamed as xvid-1.1.0_beta1.ebuild im unsure if this patch is meant to be applied to the old 1.0.3 ebuild or a new one i cant see. heres what ive been doing root@desk cp xvid-1.0.3.ebuild xvid-1.1.0_beta1.ebuild root@desk xvid # patch xvid-1.1.0_beta1.ebuild xvid-1.1.0_beta1.ebuild.diff patching file xvid-1.1.0_beta1.ebuild Hunk #1 FAILED at 4. Hunk #2 FAILED at 34. 2 out of 2 hunks FAILED -- saving rejects to file xvid-1.1.0_beta1.ebuild.rej root@desk xvid # cat xvid-1.1.0_beta1.ebuild.rej *************** *** 4,28 **** inherit eutils - MY_P=${PN}core-${PV/_rc/-rc} DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encodingsolution." HOMEPAGE="http://www.xvid.org/" - SRC_URI="http://files.xvid.org/downloads/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="1" - KEYWORDS="~x86 ~amd64 ~sparc" IUSE="doc" DEPEND="virtual/libc - x86? ( >=dev-lang/nasm-0.98.36 )" S="${WORKDIR}/${MY_P}/build/generic" src_unpack() { unpack ${A} cd ${S} - epatch ${FILESDIR}/${PV}-DESTDIR.patch } src_install() { --- 4,29 ---- inherit eutils + MY_P=${PN}core-${PV/_beta/-beta} DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encodingsolution." HOMEPAGE="http://www.xvid.org/" + SRC_URI="http://ed.gomez.free.fr/projects/${PN}-${PV/_beta/-beta}/${MY_P}.tar.bz2" + #SRC_URI="http://files.xvid.org/downloads/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="1" + KEYWORDS="~x86 ~amd64" IUSE="doc" DEPEND="virtual/libc + x86? ( >=dev-lang/nasm-0.98.36 ) + amd64? ( >=dev-lang/yasm-0.3.0 ) " S="${WORKDIR}/${MY_P}/build/generic" src_unpack() { unpack ${A} cd ${S} } src_install() { *************** *** 33,39 **** local mylib="$(basename $(ls ${D}/usr/$(get_libdir)/libxvidcore.so*))" dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so - dosym ${mylib} /usr/$(get_libdir)/${mylib/.0} if use doc ; then dodoc CodingStyle doc/README --- 34,40 ---- local mylib="$(basename $(ls ${D}/usr/$(get_libdir)/libxvidcore.so*))" dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so + dosym ${mylib} /usr/$(get_libdir)/${mylib/.1} if use doc ; then dodoc CodingStyle doc/README
Comment on attachment 50352 [details] xvid-1.1.0_beta1.ebuild.diff yasm need 0.4.0 to work
Created attachment 51048 [details] xvid-1.1.0_beta1.ebuild
Comment on attachment 51048 [details] xvid-1.1.0_beta1.ebuild i put full ebuild this time
ewan you need to take yasm-0.4.0 (you can find the ebuild in bugzilla) mkdir /usr/local/portage/dev-lang/yasm then copy inside ebuild /usr/local/portage/dev-lang/yasm/yasm-0.4.0.ebuild digest same think for xvid ebuild : mkdir /usr/local/portage/media-libs/xvid cp ... ebuild /usr/local/portage/media-libs/xvid/xvid-1.1.0_beta1.ebuild digest emerge -av xvid I suppose that your portdir_overlay is /usr/local/portage. You can configure it in /etc/make.conf
thanks, i knew how to install ebuilds etc, im still a little confused as to why the patch want working and the same ebuild seemed different but it emerged without error and seems to be working fine, is there any tests you would like me to check on the amd64 side of things
nothing else for my part thx
Beta2 is out: - Version bump the ebuild - SRC_URI="http://downloads.xvid.org/downloads/${MY_P}.tar.bz2"
FWIW, I've been using beta1 since it came out, never had any problems yet. :)
bing!