Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80747 - xvid 1.1.0 beta1 (update)
Summary: xvid 1.1.0 beta1 (update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 10:00 UTC by Thomas Galliano
Modified: 2005-05-01 02:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xvid-1.1.0_beta1.ebuild.diff (xvid-1.1.0_beta1.ebuild.diff,1.22 KB, text/plain)
2005-02-04 10:00 UTC, Thomas Galliano
Details
xvid-1.1.0_beta1.ebuild.diff (xvid-1.1.0_beta1.ebuild.diff,1.22 KB, text/plain)
2005-02-04 10:15 UTC, Thomas Galliano
Details
xvid-1.1.0_beta1.ebuild (xvid-1.1.0_beta1.ebuild,1.12 KB, text/plain)
2005-02-12 04:15 UTC, Thomas Galliano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Galliano 2005-02-04 10:00:00 UTC
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.
Comment 1 Thomas Galliano 2005-02-04 10:00:48 UTC
Created attachment 50351 [details]
xvid-1.1.0_beta1.ebuild.diff
Comment 2 Thomas Galliano 2005-02-04 10:11:40 UTC
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
Comment 3 Thomas Galliano 2005-02-04 10:15:57 UTC
Created attachment 50352 [details]
xvid-1.1.0_beta1.ebuild.diff
Comment 4 Thomas Galliano 2005-02-04 10:16:54 UTC
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
Comment 5 ewan paton 2005-02-07 19:19:06 UTC
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
}
Comment 6 Thomas Galliano 2005-02-08 03:31:18 UTC
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
Comment 7 ewan paton 2005-02-10 21:08:07 UTC
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 8 Thomas Galliano 2005-02-12 04:12:48 UTC
Comment on attachment 50352 [details]
xvid-1.1.0_beta1.ebuild.diff

yasm need 0.4.0 to work
Comment 9 Thomas Galliano 2005-02-12 04:15:03 UTC
Created attachment 51048 [details]
xvid-1.1.0_beta1.ebuild
Comment 10 Thomas Galliano 2005-02-12 04:15:30 UTC
Comment on attachment 51048 [details]
xvid-1.1.0_beta1.ebuild

i put full ebuild this time
Comment 11 Thomas Galliano 2005-02-12 04:21:01 UTC
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
Comment 12 ewan paton 2005-02-15 14:40:53 UTC
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 
Comment 13 Thomas Galliano 2005-02-17 11:25:52 UTC
nothing else for my part thx
Comment 14 Roland Bär 2005-04-04 04:31:54 UTC
Beta2 is out:
- Version bump the ebuild
- SRC_URI="http://downloads.xvid.org/downloads/${MY_P}.tar.bz2"
Comment 15 Steve Dibb (RETIRED) gentoo-dev 2005-04-15 20:53:25 UTC
FWIW, I've been using beta1 since it came out, never had any problems yet. :)
Comment 16 Warp Zero (RETIRED) gentoo-dev 2005-05-01 02:49:49 UTC
bing!