Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149987

Summary: app-text/pdftk ebuild lacks a check to make sure gcj is installed
Product: Gentoo Linux Reporter: Joe Lovick <joh3>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joe Lovick 2006-10-03 12:16:22 UTC
see also bug #109445, within which i first reported this issue.


here is the what i tried

hasiputi jlovick # emerge -pD pdftk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-text/pdftk-1.12  USE="-nodrm"
hasiputi jlovick # emerge -D pdftk
Calculating dependencies... done!

>>> Emerging (1 of 1) app-text/pdftk-1.12 to /
>>> Downloading 'http://distfiles.gentoo.org/distfiles/pdftk_1.12-11.diff.gz'
--10:03:45--  http://distfiles.gentoo.org/distfiles/pdftk_1.12-11.diff.gz
           => `/usr/portage/distfiles/pdftk_1.12-11.diff.gz'
Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195, 64.50.236.52, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8,732 (8.5K) [application/x-gzip]

100%[==========================================================================================================================>] 8,732         32.75K/s

10:03:46 (32.67 KB/s) - `/usr/portage/distfiles/pdftk_1.12-11.diff.gz' saved [8732/8732]

>>> Downloading 'http://distfiles.gentoo.org/distfiles/pdftk-1.12.tar.gz'
--10:03:46--  http://distfiles.gentoo.org/distfiles/pdftk-1.12.tar.gz
           => `/usr/portage/distfiles/pdftk-1.12.tar.gz'
Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195, 64.50.238.52, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 779,882 (762K) [application/x-gzip]

100%[==========================================================================================================================>] 779,882       63.49K/s    ETA 00:00

10:03:58 (63.96 KB/s) - `/usr/portage/distfiles/pdftk-1.12.tar.gz' saved [779882/779882]

 * checking ebuild checksums ;-) ...                                                                                                                            [ ok ] * checking auxfile checksums ;-) ...                                                                                                                           [ ok ] * checking miscfile checksums ;-) ...                                                                                                                          [ ok ] * checking pdftk-1.12.tar.gz ;-) ...                                                                                                                           [ ok ] * checking pdftk_1.12-11.diff.gz ;-) ...                                                                                                                       [ ok ] * It seems that your system doesn't provides a Java compiler.
 * Re-emerge sys-devel/gcc with "gcj" enabled.

!!! ERROR: app-text/pdftk-1.12 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  pdftk-1.12.ebuild, line 23:   Called die

!!! gcj not found.
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-03 12:18:21 UTC
Did you even read the message?

 * Re-emerge sys-devel/gcc with "gcj" enabled.
Comment 2 Joe Lovick 2006-10-03 12:27:20 UTC
My point was that pdftk should in the ebuild check the build flags of gcc, so a emerge -pD should say that gcc needed to be recompiled with a particular use flag rather than waiting for it to fail on an actual build. 

maybe not a "bug" but certainly an ebuild quality issue!

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-03 12:32:05 UTC
Except that portage can't do that. Bug 2272