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

Bug 137384

Summary: problem while emerge app-text/pdftk
Product: Gentoo Linux Reporter: Ivan Lloro <antispam>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ivan Lloro 2006-06-20 09:14:52 UTC
The issue from Bug #109445 also happens in x86 systems which is why I cloned it. Besides, during the install the fact that 'javac' is installed is completely ignored and insists on 'gcj' blocking the installation. Besides, to make things worse, if memory serves me well, javac and gcj are mutually exclusive at install time.

Transcript:
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking pdftk-1.12.tar.gz ;-)
 * 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 1555:   Called dyn_setup
  ebuild.sh, line 668:   Called pkg_setup
  pdftk-1.12.ebuild, line 22:   Called die

!!! gcj not found.
!!! If you need support, post the topmost build error, and the call stack if relevant.



+++ This bug was initially created as a clone of Bug #109445 +++

while trying to emerge app-text/pdftk-1.12 I ran into the following problem

The package declares a dependency on gcc-3.3, but in fact it needs gcj (the Java compiler)
This is not found on my gcc3

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power 
Macintosh)
===============================================================
==
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang tiff 
vorbis userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-20 10:42:32 UTC
Not keyworded for ppc-macos at all.
Comment 2 Ivan Lloro 2006-06-20 10:52:05 UTC
Of course not. As stated, "the issue from Bug #109445 also happens *in x86 systems* which is why I cloned it.".

So, it has been x86 keyworded. For the PPC bug, you can refer to Bug #109445.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-20 11:02:59 UTC
So do what the message told you and reopen when it doesn't work and post emerge --info from x86, _not_ ppc-macos box in such case. And, it needs gcj if you care to read the Makefile.

Comment 4 Ivan Lloro 2006-06-20 11:41:49 UTC
1. Actually, it *doesn't work*. The point of having a system which solves dependencies (like Portage) is, precisely, to solve dependencies. If gcj is not installed, like my case, a simple "emerge -uav pdftk" should detect so and install it. If the latter is not possible, the user must, at the very least, be notified about the reasons Portage is failing.

2. About your 'emerge --info' request. This is certainly my fault for not having provided it before. I'm posting it right now.

[Off topic]
   Regarding your kind suggestion, if I wanted to read the Makefiles and deal with all dependencies by hand, I would have installed Slackware, not Gentoo. For clarification: the latter is just a fact. I frankly do not pretend to be mean and really appreciate the work of portage maintainers.
[/Off topic]

PS: If this report is closed once more, I won't push it further as it would be pointless. 

Portage 2.1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.40GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ca es en"
MAKEOPTS="-j2"
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://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3ds 7zip S3TC X X509 a52 aac aalib abook accessibility accounting acpi aim akode alsa amarok amazon amr amrr ansi aotuv arts artswrappersuid asf asm atlas atm auctex authfile avi bash-completion berkdb bigpatch binfilter bitmap-fonts bittorrent bl blas blender-game bluetooth bogofilter bootsplash bzip2 cacheemu cairo calendar cap capi caps cardbus cdda cddb cdf cdio cdparanoia cdr cgi chipcard chipcard2 chm chroot cis clamav clamd clanVoice cli commercial config_wizard contrib cpudetection cracklib crypt crypto_openssl css csv ctype cups curl curlwrappers cyrus daap daemon db2 dbase dbcp dbm dbmaker dbus dbx debugger dedicated delays devfs26 devil dhcp dio directfb disassembler discard-path disk-cache diskio distribution djvu dlloader dmi dnd dnotify doc domain-aware dpms drac dri dts dv dvb dvbplayer dvd dvdr dvdread dvi dx dynagraph eap-tls ecc ecmark2 edl eds effects elf emboss empress empress-bcs encode enscript epson erandom es eurofile evo examples exif exim extensions extraengine extraicons extramodules faillog fam fame fastcgi fat fax fbcon fbsplash festival ffmpeg fftw filepro finger firebird firefox fits flac flash flatfile flood fmod fontconfig foomaticdb fortran fping fpx freetts ftp fuse gcl gdal gdbm geoip gg gif ginac glitz glut gmail gmailtimestamps gmtfull gmthigh gmtsuppl gmttria gnokii gnuplot gnutls gopher gpgme gphoto2 gpm gprof gps grammar graphviz grass gs gsl gsm gstreamer gtalk gtk gtk2 h323 hal hardenedphp hbci hdf hdf5 hfs hostap hpn html http hyperwave-api i8x0 ibam ical icp icq icu id3 idea idn ieee1394 image imagemagick imap imlib imlib2 immqt-bc ingres inkjar inline innodb interbase intl iodbc ipod iproute2 ipv6 ipv6arpa irc irda irmc isdnlog j2ee jabber jad java javacomm javascript jboss jce jcs jfs jikes jingle jit john joystick jpeg jpeg2k jpgraph jrtplib jumpplay justify jython kcal kde kdeenablefinal kdepim kerberos kexi keyscrub kig-scripting kipi kqemu krb4 ladspa lame lapack largeterminal latex lcd lcms ldap lesstif libcaca libclamav libdsk libsamplerate libtommath libvisual libwww linuxthreads-tls lirc live login-watch logitech-mouse logrotate ltsp lzo lzw mad madwifi mail maildir math matroska maya-shaderlibrary mbox mbrola mbx mcal mcve md5sum mdb messages mew mikmod mime mimencode ming minisat mjpeg mmap mmx mmxext mng mod mod_python mode-paranoid mono mopac7 motif mounts-check mouse moznocompose moznoirc moznomail mozsvg mp3 mp4 mp4live mpeg mpeg2 mplayer mschap msdav msn msnextras msql mssql multipath multiprocess multiuser mupad-noscilab musepack music musicbrainz mysql mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nat ncurses net netcdf nethack network neural nfs nls nntp no-old-linux no-suexec nocd nodrm nokia6600 noplugin nptl nsplugin ntfs ntlm numeric nvram nxclient octave odbc ode offensive office ofx ogdi ogg oggvorbis ogre oldworld on-the-fly-crypt openbabel openexr opengl openssl oracle oracle7 ortp oscar ovrimos pam pam_chroot pam_console pam_timestamp pascal patented pcapnav pcmcia pcre pcsc-lite pda pdf perl player plib plotutils plugin pmu png pnp pop pop3d posix postfix postgres povray ppds pppd preview-latex print priority procmail ps python pyx qemu-fast qhull qt qt4 quicktime quotas quotes radiotap rar rc5 rdesktop readline real realms recode reflection reiser4 reiserfs rle roe rogue roundrobin rpm rrdtool rss rtc rtsp samba sametime sample sapdb sasl scanner scp screen sdk sdl sendfile sensord session sftp sftplogging sguil shaper sharedmem sheep shorten shout sid sieve silc silvercity silverxp simplexml skey skins smartcard smime sms smtp smux sndfile snmp snortsam snux soap sockets socks5 sofia-sip softfax softmmu softquota solid sounds sox speech spell spf spl spreadsheet sql sqlite sqlite3 sse sse-filters sse2 ssl stlport stream streamzap subtitles subversion suidcheck svg svgz swig sybase sybase-ct sysfs syslog sysvipc szip tcpd tcpmd5 teamarena tetex tga theora thesaurus threads tidy tiff timidity tomsfastmath tos transcode transmitter transparent-proxy truetype truetype-fonts type1 type1-fonts ucs2 udev underscores unicode unzip upnp ups usb userfiles userlocales utf8 uudeview v4l v4l2 vcd vcdimager vdr verbose vfat vhosts videos vidix virus-scan visual visualization vlm vnc voice vorbis watchdog wddx webdav wifi win32codecs winbind wma wma123 wordperfect wv x264 xanim xattr xbase xcomposite xface xfs xine xinetd xml xml2 xmlrpc xorg xpm xrandr xscreensaver xsl xslt xv xvid xvmc yahoo yv12 zeo zero-penalty-hit zeroconf zip zlib zvbi elibc_glibc kernel_linux linguas_ca linguas_es linguas_en userland_GNU video_cards_i915"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-06-20 12:04:03 UTC
(In reply to comment #4)
> 1. Actually, it *doesn't work*. The point of having a system which solves
> dependencies (like Portage) is, precisely, to solve dependencies. If gcj is not
> installed, like my case, a simple "emerge -uav pdftk" should detect so and
> install it. 

Yeah, that's not possible, portage can't do dependencies based on use flags of other packages yet, search bugzilla (Bug 2272). Also, we don't have any standalone gcj ebuild.

> If the latter is not possible, the user must, at the very least, be
> notified about the reasons Portage is failing.

Did you really read the message? Seems not.

Closing, reopen *only* if you have compiled your gcc with USE="gcj" and it still doesn't work for you.

Comment 6 Ivan Lloro 2006-06-20 17:10:37 UTC
(In reply to comment #5)
> Yeah, that's not possible, portage can't do dependencies based on use flags
> of other packages yet, search bugzilla (Bug 2272). Also, we don't have any
> standalone gcj ebuild.

   Reasonable. This bug can't be resolved now: it hits a current limitation of portage. Thanks for the link to bug 2272, by the way.

> > If the latter is not possible, the user must, at the very least, be
> > notified about the reasons Portage is failing.
> 
> Did you really read the message? Seems not.

   Did you really read my original bug report? Seems not. It's quite obvious the problem is 'gcj' can't be found. Just read the carbon copied error message during the autoconfiguration process: "!!! gcj not found.". Thus, the fact this was stated in your message was, at best, uninformative. This was not the main point, though.

   Slow down and relax yourself a little, cowboy.

---
HAL: Dave, this conversation can serve no purpose anymore. Goodbye.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-20 17:28:21 UTC
(In reply to comment #6)
>    Did you really read my original bug report? Seems not. It's quite obvious
> the problem is 'gcj' can't be found. Just read the carbon copied error message
> during the autoconfiguration process: "!!! gcj not found.". Thus, the fact this
> was stated in your message was, at best, uninformative. This was not the main
> point, though.

<snip>
 * It seems that your system doesn't provides a Java compiler.
 * Re-emerge sys-devel/gcc with "gcj" enabled. <---- *look* *hint* *here* !!!
</snip>

Too bad I was right...
Comment 8 Ivan Lloro 2006-06-21 17:04:20 UTC
> <snip>
>  * It seems that your system doesn't provides a Java compiler.

   Let me check...

   Well, I have this little thing called 'javac'. Could be a Java compiler? Dunno...

   ~ $ man javac

NAME
       javac - Java compiler


>  * Re-emerge sys-devel/gcc with "gcj" enabled. <---- *look* *hint* *here* !!!

   Nice suggestion in order to install a Java compiler in case there was none in the system. This is not the case, though. Thus, portage its failing in its mission to deal with dependencies and the suggestion to install gcj is bogus and misleading.

   Reasonable resolution actions:
   a) Correct one: Fix Bug #2272 and, after, fix this one.
   b) Minimum acceptable: Mark this bug as WONTFIX and inform the user about current portage limitations (Bug #2272).

> </snip>
 
> Too bad I was right...

... missing the point, once more, and being unnecessarily mean. Agreed.

---
HAL: Dave, this conversation can serve no purpose anymore. Goodbye.