Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138301 - media-libs/tiff-3.8.2-r1 doesn't build when USE=-jbig
Summary: media-libs/tiff-3.8.2-r1 doesn't build when USE=-jbig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
: 138302 138304 138305 138306 138307 138308 138309 138310 138311 138313 138340 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-27 23:43 UTC by Florian Manschwetus
Modified: 2006-06-28 18:25 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Manschwetus 2006-06-27 23:43:55 UTC
>>> starting parallel fetching
>>> Emerging (1 of 3) media-libs/tiff-3.8.2-r1 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking tiff-3.8.2.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking tiff-3.8.2.tar.gz to /var/tmp/portage/tiff-3.8.2-r1/work

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /var/tmp/portage/tiff-3.8.2-r1/distdir/tiff-3.8.2-tiff2pdf.patch.bz2
 *   ( tiff-3.8.2-tiff2pdf.patch.bz2 )


!!! ERROR: media-libs/tiff-3.8.2-r1 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  tiff-3.8.2-r1.ebuild, line 23:   Called epatch '/var/tmp/portage/tiff-3.8.2-r1/distdir/tiff-3.8.2-tiff2pdf.patch.bz2'
  eutils.eclass, line 192:   Called die

!!! Cannot find $EPATCH_SOURCE!
!!! If you need support, post the topmost build error, and the call stack if relevant.

Error in sys.exitfunc:


--------------------------------
emerge --info

Portage 2.1.1_pre1-r5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-thinkpad i686)
=================================================================
System uname: 2.6.17-thinkpad i686 Genuine Intel(R) CPU           T2500  @ 2.00GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe -msse -msse2 -msse3 -mmmx -mfpmath=sse"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="x86 16bittmp X X509 aac aalib acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cardbus cdda cddb cdparanoia cdr chipcard cli crypt css cups curl dba dbx dga directfb dri dvb dvd dvdr dvdread eds encode esd ethereal fat fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm geldkarte gif glut glx gphoto2 gpm gps gstreamer gtk gtk2 hal hbci icc icq imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java javascript john jpeg junit kde libg++ libwww mad madwifi mikmod mime mjpeg mmx mmxext mono motif mozdevelop mozsvg mp3 mpeg mplayer mysql ncurses nls nodoc nosrc nowin nptl nptlonly nsplugin ntfs ogg opengl pam pcmcia pcre pda pdf pdflib perl php piix_hotplug png postgres ppds pppd python qt qt3 qt4 quicktime readline real reflection reiser4 reiserfs samba sdl session smartcard spell spl sse sse2 ssl svg svga t60 tcltk tcpd tetex tidy tiff truetype truetype-fonts type1 type1-fonts udev usb vcd video_cards_ati video_cards_fglrx video_cards_radeon video_cards_vesa vorbis wifi win32codecs xfs xinerama xml xmms xorg xprint xrandr xv xvid zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_video_cards_radeon video_cards_video_cards_ati video_cards_video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:06 UTC
*** Bug 138302 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:14 UTC
*** Bug 138304 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:27 UTC
*** Bug 138305 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:35 UTC
*** Bug 138306 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:43 UTC
*** Bug 138307 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:50 UTC
*** Bug 138308 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:03:58 UTC
*** Bug 138309 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:04:08 UTC
*** Bug 138310 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:04:50 UTC
*** Bug 138311 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 00:05:14 UTC
*** Bug 138313 has been marked as a duplicate of this bug. ***
Comment 11 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2006-06-28 00:34:50 UTC
-SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz
+SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz
+        mirror://mirror/tiff-3.8.2-tiff2pdf.patch.bz2"

that will fix your tiff-3.8.2-tiff2pdf.patch.bz2 problem.

but then its followed by a "epatch jbig" failure despite not having jbig in the use flags. 

but this can be resolved ( at least for me ) by 
- use jbig && epatch "${FILESDIR}"/${PN}-jbig.patch || die "epatch jbig failed"
+ if ( use jbig ); then
+        epatch epatch "${FILESDIR}"/${PN}-jbig.patch || die "epatch jbig failed"
+ fi

not sure if this is more appropriate code or not, im no python programmer ( or whatever this is written in ) 


Comment 12 Florian Manschwetus 2006-06-28 00:42:43 UTC
ok sorry total sorry, my net connection was inpropper or so i only selected ones commit then bugs was connected. Then waiting, i lost vpn / timeout. Then (no confirm where done), i tried again,because the connection were lost so i thought nothing happend. This is evil next time i'll look closer if it is commited.
Sorry again.
Comment 13 Peter Levine 2006-06-28 02:03:02 UTC
Please commit this to the ebuild:

-	epatch ${DISTDIR}/${P}-tiff2pdf.patch.bz2 || die "epatch tiff2pdf failed"
-	epatch ${FILESDIR}/${P}-tiffsplit.patch || die "epatch tiffsplit failed"
-	use jbig && epatch "${FILESDIR}"/${PN}-jbig.patch || die "epatch jbig failed"
+	epatch ${DISTDIR}/${P}-tiff2pdf.patch.bz2
+	epatch ${FILESDIR}/${P}-tiffsplit.patch
+	use jbig && epatch "${FILESDIR}"/${PN}-jbig.patch

epatch has its own failure messages builtin. By declaring "|| die" the patches seem to automatically fail.
Comment 14 Matthias Schwarzott gentoo-dev 2006-06-28 02:28:32 UTC
use jbig && epatch "${FILESDIR}"/${PN}-jbig.patch || die "epatch jbig failed"

If use jbig returns false (=use flag not set) the die-part is called.
The conditional-code is wrong and should be
if use jbig; then
  epatch "${FILESDIR}"/${PN}-jbig.patch || die "epatch jbig failed"
fi

But as epatch has its own die-logic just removing "|| die ..." is correct.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 05:07:54 UTC
*** Bug 138340 has been marked as a duplicate of this bug. ***
Comment 16 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-28 06:01:16 UTC
I fixed this in the ebuild a few hours ago for nerdboy but did not notice the bug, thanks to everyone who helped here.