Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21105 - media-video/dxr2-driver-1.0.4.ebuild failed to install while trying to emerge the dxr2-driver.
Summary: media-video/dxr2-driver-1.0.4.ebuild failed to install while trying to emerge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: chouser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-16 09:05 UTC by what
Modified: 2003-12-07 05:44 UTC (History)
0 users

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


Attachments
a modified ebuild to fix problem (dxr2-driver-1.0.4.ebuild,1.91 KB, text/plain)
2003-05-16 09:08 UTC, what
Details

Note You need to log in before you can comment on or make changes to this bug.
Description what 2003-05-16 09:05:57 UTC
Problem: While trying to emerge media-video/dxr2-driver-1.0.4 with this command,
#emerge dxr2-driver-1.0.4
the emerging process failed and exited with this error:

gcc -o dvdplay-curses player.o config.o config-files.o dxr2-api.o whitescreen.o
overlay.o multifile.o dvd_controls.o curses-interface.o X11-overlay.o XOverlay.o
-lpthread -lncurses -ldvdread -ldl -L/usr/X11R6/lib -lXmu -lX11 -lXext -lXxf86vm
-L. -ldxr2css
make[1]: Leaving directory
`/var/tmp/portage/dxr2-driver-1.0.4/work/dxr2-driver/player'

>>> Install dxr2-driver-1.0.4 into /var/tmp/portage/dxr2-driver-1.0.4/image/
category media-video
mknod: `/var/tmp/portage/dxr2-driver-1.0.4/image//dev/dxr2': No such file or
directory

!!! ERROR: media-video/dxr2-driver-1.0.4 failed.
!!! Function src_install, Line 48, Exitcode 1
!!! (no error message)


Possible fix: This problem was fixed for my system by adding the following line
in the src_install() function of the dxr2-driver-1.0.ebuild:

      #Added by what@worldcrossing.com to fix bug
        mkdir ${D}/dev
       #end of addition by what@worldcrossing.com

And here is the modified src_install() file:

src_install () {
        # make install doesn't create standard dirs -- do that now
        dodir /usr/bin /usr/lib /usr/src /etc/modules.d

        # no devfs support in dxr2 yet?

        #Added by what@worldcrossing.com to fix bug
        mkdir ${D}/dev
        #end of addition by what@worldcrossing.com

        mknod ${D}/dev/dxr2 c 120 0 || die

        # copy in some files that aren't installed by make install
        cp player/dxr2player.conf ${D}/etc/ || die
        cp ${DISTDIR}/DVD12.UX ${D}/usr/src/dvd1.ux || die

        # build a default /etc/modules.d/dxr2
        echo 'alias char-major-120 dxr2' > ${D}/etc/modules.d/dxr2 || die

        # make install
        make DESTDIR=${D} install || die

        # dvdplay must be suid root
        chmod u+s ${D}/usr/bin/dvdplay || die
}


Okay, that's it. Please be understanding to me if I report this bug or the fix 
the wrong way, this is my first  bug report. :-)

Reproducible: Always
Steps to Reproduce:
1.emerge dxr2-driver
2.
3.




Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 Pentium III (Katmai)
GENTOO_MIRRORS="http://cs.ubishops.ca/pub/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config /opt/quake3/cpma/server.cfg"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xmms xv zlib gdbm berkdb slang
readline tetex java guile sdl gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis qt motif opengl mozilla X gtk gnome alsa arts kde xml xml2 aalib
directfb fbcron svga"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 what 2003-05-16 09:08:01 UTC
Created attachment 12055 [details]
a modified ebuild to fix problem
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-07 05:44:28 UTC
already fixed :D