Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230095 - media-video/dvbcut-0.5.4-r1 fails to compile
Summary: media-video/dvbcut-0.5.4-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-29 20:46 UTC by Daniel Pielmeier
Modified: 2008-10-19 17:30 UTC (History)
0 users

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


Attachments
dvbcut-0.5.4-scons.patch (dvbcut-0.5.4-scons.patch,615 bytes, patch)
2008-06-29 20:48 UTC, Daniel Pielmeier
Details | Diff
diff to ebuild (dvbcut-0.5.4-r1.diff,448 bytes, patch)
2008-10-19 17:21 UTC, Daniel Pielmeier
Details | Diff
scons patch (dvbcut-0.5.4-scons.patch,611 bytes, patch)
2008-10-19 17:22 UTC, Daniel Pielmeier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pielmeier gentoo-dev 2008-06-29 20:46:18 UTC
dvbcut fails with:

>>> Compiling source in /var/tmp/portage/media-video/dvbcut-0.5.4-r1/work/dvbcut-0.5.4 ...
scons FFMPEG=/usr \
		
scons: Reading SConscript files ...

scons: *** Path for option PREFIX does not exist: /usr/local
File "/var/tmp/portage/media-video/dvbcut-0.5.4-r1/work/dvbcut-0.5.4/SConstruct", line 41, in ?
make: *** [build] Fehler 2

A patch which fixes this follows!
Comment 1 Daniel Pielmeier gentoo-dev 2008-06-29 20:47:00 UTC
emerge --info

Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Sun, 29 Jun 2008 18:15:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/media/system/source/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --nospinner"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.imj.fr/pub/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j7"
PKGDIR="/media/system/source/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/media/system/repositories/portage"
PORTDIR_OVERLAY="/media/system/repositories/sunrise /media/system/repositories/berkano /media/system/repositories/portage-billie"
SYNC="rsync://gentoo-vdr/gentoo-portage"
USE="7zip X a52 aac aalib ace acl acpi adplug alsa amr amrnb amrwb ao arj audiofile bash-completion berkdb bl branding bzip2 cairo cdda cddb cdio cdparanoia chardet cli cracklib crypt css cups dbus dga directfb divx djvu dri dts dv dvb dvd dvdnav dvdr dvdread encode exif fam fame fbcon ffmpeg flac fontconfig fortran gd gdbm ggi gif glitz gmedia gpm gtk hal hdri iconv id3tag ieee1394 imagemagick imlib ipv6 isdnlog jack java jbig jpeg jpeg2k ladspa lame lcms lha libcaca libnotify libsamplerate live lzo mad matroska midi mikmod mjpeg mmx mmxext mng modplug mono motif mp2 mp3 mpeg mudflap musepack musicbrainz nas ncurses netjack nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl png pnm portaudio ppds pppd pulseaudio pvr python qt3 qt4 quicktime radio rar readline real realmedia reflection rle rpm rtsp sdl sdl-image session shout sid slang sndfile sound soundtouch speex spell spl srt sse sse2 ssl ssse3 startup-notification stream svg taglib tcpd tga theora tiff timidity tivo truetype tta twolame unicode v4l v4l2 vamp vcd vcdx vidix vorbis vorbis-psy wavpack win32codecs wma wmf wmp wxwindows x264 x86 xanim xattr xcomposite xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev v4l vesa vga nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Daniel Pielmeier gentoo-dev 2008-06-29 20:48:51 UTC
Created attachment 158895 [details, diff]
dvbcut-0.5.4-scons.patch

fixes paths in SConstruct
Comment 3 Alexis Ballier gentoo-dev 2008-08-06 23:30:50 UTC
weird I cant reproduce it with any scons version in the tree, what version are you using ?
Comment 4 Daniel Pielmeier gentoo-dev 2008-08-07 00:54:38 UTC
(In reply to comment #3)
> weird I cant reproduce it with any scons version in the tree, what version are
> you using ?
> 

Unpatched it fails with stable 0.97 and unstable 0.98.5.

Works patched with stable 0.97 and unstable 0.98.5.
Comment 5 Daniel Pielmeier gentoo-dev 2008-10-19 17:19:17 UTC
(In reply to comment #0)

> scons FFMPEG=/usr \
> scons: Reading SConscript files ...
> scons: *** Path for option PREFIX does not exist: /usr/local

This issue was bugging me again and after some digging I found the reason why dvbcut does not build here. As the error above says it, there is no such directory /usr/local on my system. as dvbcut only calls

emake FFMPEG=/usr DESTDIR="${D}" PREFIX="/usr" MANPATH="/usr/share/man" install

in src_install it tries to find /usr/local in src_compile which is not there. I tried to set the same command in src_compile but this did not help. Only the patch I provided fixes the case where no /usr/local is present. Creating /usr/local and /usr/local/include makes the ebuild happy too, but I don't think this is the best solution.

/usr/local is no required path on a linux distribution only user stuff goes there and as I have nothing to place there this directory does not exist.

I will attach an updated patch that applies against the current ebuild in the tree.
Comment 6 Daniel Pielmeier gentoo-dev 2008-10-19 17:21:53 UTC
Created attachment 169106 [details, diff]
diff to ebuild
Comment 7 Daniel Pielmeier gentoo-dev 2008-10-19 17:22:16 UTC
Created attachment 169108 [details, diff]
scons patch
Comment 8 Alexis Ballier gentoo-dev 2008-10-19 17:30:26 UTC
applied, thanks