Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74962 - Successful media-libs/xine-lib-1_rc8 build.
Summary: Successful media-libs/xine-lib-1_rc8 build.
Status: RESOLVED DUPLICATE of bug 74475
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-19 11:35 UTC by James Stockton
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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


Attachments
ebuild (xine-lib-1_rc8.ebuild,4.75 KB, text/plain)
2004-12-19 11:45 UTC, James Stockton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Stockton 2004-12-19 11:35:46 UTC
Successful media-libs/xine-lib-1_rc8 build. It builds flawless everytime.

Reproducible: Always
Steps to Reproduce:
This xine-lib-1_rc8.ebuild:

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/xine-lib/xine-lib-1_rc7.ebuild,v 1.3 2004/12/09 08:50:55 eradicator Exp $

inherit eutils flag-o-matic gcc libtool

# This should normally be empty string, unless a release has a suffix.
MY_PKG_SUFFIX=""

DESCRIPTION="Core libraries for Xine movie player"
HOMEPAGE="http://xine.sourceforge.net/"
SRC_URI="mirror://sourceforge/xine/${PN}-${PV/_/-}${MY_PKG_SUFFIX}.tar.gz"

LICENSE="GPL-2"
SLOT="1"
# Testing on amd64 only.
KEYWORDS="-* amd64"
IUSE="arts esd avi nls dvd aalib X directfb oggvorbis alsa gnome sdl speex theora ipv6 altivec"

RDEPEND="oggvorbis? ( media-libs/libvorbis )
 !amd64? ( X? ( virtual/x11 ) )
 amd64? ( X? ( || ( x11-base/xorg-x11 >=x11-base/xfree-4.3.0-r6 ) ) )
 avi? ( x86? ( >=media-libs/win32codecs-0.50 ) )
 esd? ( media-sound/esound )
 dvd? ( >=media-libs/libdvdcss-1.2.7 )
 arts? ( kde-base/arts )
 alsa? ( media-libs/alsa-lib )
 aalib? ( media-libs/aalib )
 directfb? ( >=dev-libs/DirectFB-0.9.9 dev-util/pkgconfig )
 gnome? ( >=gnome-base/gnome-vfs-2.0
   dev-util/pkgconfig )
 >=media-libs/flac-1.0.4
 sdl? ( >=media-libs/libsdl-1.1.5 )
 >=media-libs/libfame-0.9.0
 theora? ( media-libs/libtheora )
 speex? ( media-libs/speex )"
DEPEND="${RDEPEND}
 nls? ( sys-devel/gettext )"

S=${WORKDIR}/${PN}-${PV/_/-}${MY_PKG_SUFFIX}

pkg_setup() {
 # Make sure that the older libraries are not installed (bug #15081).
 if [ `has_version =media-libs/xine-lib-0.9.13*` ]
 then
  eerror "Please uninstall older xine libraries.";
  eerror "The compilation cannot proceed.";
  die
 fi
}

src_unpack() {
 unpack ${A}
 cd ${S}
 
 # Testing without any patches.
}

src_compile() {
 filter-flags -maltivec -mabi=altivec
 filter-flags -fforce-addr
 filter-flags -momit-leaf-frame-pointer #46339
 filter-flags -funroll-all-loops #55420

 if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]; then
  append-flags -fno-web #49509
  filter-flags -fno-unit-at-a-time #55202
  append-flags -funit-at-a-time #55202
 fi

 is-flag -O? || append-flags -O1 #31243

 # fix build errors with sse2 #49482
 if use x86 ; then
  if [ `gcc-major-version` -eq 3 ] ; then
   append-flags -mno-sse2 `test_flag -mno-sse3`
   filter-mfpmath sse
  fi
 fi

 # Force it to link to libXv correctly.
 local myconf="--enable-shared-xv"
 
 # Use the built-in dvdnav plugin.
 myconf="${myconf} --with-included-dvdnav"

 # the win32 codec path should ignore $(get_libdir) and always use lib
 use avi && use x86 \
  && myconf="${myconf} --with-w32-path=/usr/$(get_libdir)/win32" \
  || myconf="${myconf} --disable-asf"

 use sparc \
  && myconf="${myconf} --build=${CHOST}"

 # enable/disable appropiate optimizations on sparc
 [ "${PROFILE_ARCH}" == "sparc64" ] \
  && myconf="${myconf} --enable-vis"
 [ "${PROFILE_ARCH}" == "sparc" ] \
  && myconf="${myconf} --disable-vis"

 use amd64 \
  && myconf="${myconf} --with-xv-path=/usr/X11R6/$(get_libdir)"

 # Fix compilation-errors on PowerPC #45393 & #55460 & #68251
 if use ppc || use ppc64 ; then
  append-flags -U__ALTIVEC__
  myconf="${myconf} `use_enable altivec`"
 fi

 # The default CFLAGS (-O) is the only thing working on hppa.
 if use hppa && [ "`gcc-version`" != "3.4" ] ; then
  unset CFLAGS
 else
  append-flags -ffunction-sections
 fi

 # if lib64 is a directory, sometimes the configure will set libdir itself
 # and the installation fails. see bug #62339
 myconf="${myconf} --libdir=/usr/$(get_libdir)"

 econf \
  $(use_enable X x11) \
  $(use_with X x) \
  $(use_enable X shm) \
  $(use_enable X xft)  \
  $(use_enable esd) \
  $(use_enable nls) \
  $(use_enable alsa) \
  $(use_enable arts) \
  $(use_enable aalib) \
  $(use_enable oggvorbis ogg) \
  $(use_enable oggvorbis vorbis) \
  $(use_enable sdl sdltest) \
  $(use_enable ipv6) \
  $(use_enable directfb) \
  ${myconf} || die "Configure failed"

 emake -j1 || die "Parallel make failed"
}

src_install() {
 # portage 2.0.50's einstall is broken for handling libdir
 make DESTDIR=${D} install || die "Install failed"

 # Xine's makefiles install some file incorrectly. (Gentoo bug #8583, #16112).
 dodir /usr/share/xine/libxine1/fonts
 mv ${D}/usr/share/*.xinefont.gz ${D}/usr/share/xine/libxine1/fonts/

 dodoc AUTHORS ChangeLog INSTALL README TODO
 cd ${S}/doc
 dodoc dataflow.dia README*
}

pkg_postinst() {
 einfo
 einfo "Please note, a new version of xine-lib has been installed."
 einfo "For library consistency, you need to unmerge old versions"
 einfo "of xine-lib before merging xine-ui."
 einfo
 einfo "This library version 1 is incompatible with the plugins"
 einfo "designed for the prior library versions such as xine-d4d,"
 einfo "xine-d5d, xine-dmd, and xine-dvdnav."
 einfo
 einfo "Also, make sure to remove your ~/.xine if upgrading from"
 einfo "a previous version."
 einfo
}

Actual Results:  
Successful media-libs/xine-lib-1_rc8 build. 

Expected Results:  
Successful media-libs/xine-lib-1_rc8 build. 

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, 
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64) 
================================================================= 
System uname: 2.6.9-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r7 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" 
GENTOO_MIRRORS="http://gentoo.osuosl.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X acpi alsa berkdb bitmap-fonts crypt f77 fam flac fortran gif gpm 
gtk ipv6 jp2 jpeg kde lzw lzw-tiff multilib ncurses nls opengloss pam perl png 
python qt readline ssl tcpd tiff truetype usb userlocales xml2 xpm xrandr xv 
zlib"
Comment 1 James Stockton 2004-12-19 11:45:44 UTC
Created attachment 46362 [details]
ebuild
Comment 2 Michiel de Bruijne 2004-12-20 12:02:49 UTC
This version address multiple security vulnerabilites on PNM and Real
RTSP clients.

Adding security team to the cc-list so they can decide if they want this in a GLSA.
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2004-12-20 12:19:02 UTC
this is already managed in bug #74475, but thanks :)
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2004-12-20 12:20:18 UTC

*** This bug has been marked as a duplicate of 74475 ***