# emerge -pqv '=dev-tex/pdfannotextractor-0.1l::gentoo' [ebuild N ] dev-tex/pdfannotextractor-0.1l # emerge --info '=dev-tex/pdfannotextractor-0.1l::gentoo' Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.2, glibc-2.20-r2, 3.19.3-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.19.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 4051264 total, 1217832 free KiB Swap: 4194300 total, 4172908 free Timestamp of repository gentoo: Thu, 02 Apr 2015 04:00:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.25 p1.0) 2.25 ccache version 3.2.1 [disabled] app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/ccache: 3.2.1-r1::gentoo dev-util/cmake: 3.1.0::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.13.11::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25::gentoo sys-devel/gcc: 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA google-chrome AdobeFlash-11.x skype-4.0.0.7-copyright" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/yp/Makefile" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aalib accessibility acl addressbook afp airplay akonadi all_sfx alsa amd64 anacron analitza antiboss ap apng archive audacious audit autoipd autotrace avahi awn barcode bash-completion berkdb bidi bittorrent bluetooth bluray bmp box branding bzip2 cairo canberra ccache cdda cddb cdio cdparanoia cdr cdrom clamav clamdtop cli client clipboard cloudprint colord cpufreq_bench cracklib creds crypt cryptsetup cscope cue cups curl cxx daemon dbus declarative desktopglobe device-mapper directfb djvu dos dri dropbox dundee dvb dvd dvdnav ebook editor eds egl emacs emovix encode epub equalizer examples exif expat experimental extra facebook fam fancy farstream fat fax fbcon ffmpeg finger flac flash flickr fontconfig fortran freebox ftp fuse games gcdmaster gcj gd gdbm geoip gif gimp gles2 gme gmp gnome gnome-keyring gnome-online-accounts gnumeric gnutls google googledrive gpg gpm gps graph graphics gsettings gstreamer gtk gtk3 gudev hddtemp highlight histman html http httpd humanities iconv icq icu idn imagemagick imap intl introspection ios iostats ipod ipv6 irc iso jabber jadetex java javascript jingle jpeg json karma kde kdepim kipi ktp lame lapack lastfm latex lcms ldap libass libcaca libkms libnotify libsamplerate libsecret libvisual lirc live lj lm_sensors lock lua mad map marble math mbox mdnsresponder-compat mediawiki messages metric minizip mmx mmxext mng moc modules mongo mongodb mono mp3 mp4 mpd mpeg mpeg2 mpeg3 mplayer mrim msn mta multicore multimedia music musicbrainz mysql nano-syntax natspec nautilus ncat ncurses ndiff net netgroups netlink network network-cron networking networkmanager networkmonitor nfs nis nls nping nptl nsplugin ntfs ntp offensive office ofono ogg opengl openldap openmp openntpd oscar p2p pam panorama pcap pcre pdf perl php plasma playlist plotutils plugins plugman png pocket policykit pop postfix postgres pptx prediction prison publishers pulseaudio python qalculate qrcode qt3support qt4 quicktime radio radius rar raw readline realtime recorder redeyes remote remote-access rendering rss ruby samba sasl scanner science script scripting scrobbler sdl secure semantic-desktop sendto sensord session sip skydrive skype slp smbclient smi smp sms smtp snmp solver sound soundcloud source spamassassin speex spell sql sqlite sse sse2 ssl startup-notification stats steam svg swat symlink systemd tbb tcl tcpd telepathy tex4ht texi2html theora threads thumbnail tiff tk toolame tools tracker truetype udev udisks undi unicode upnp upnp-av upower usb utils vala vcd video videos videoslideshow vim vim-pager vim-plugin vim-syntax vimeo visualizer vkontakte vlc vlm vmware vnc vorbis vtk web webcam webkit webphoto webpresence webstart wifi wininst winpopup wmf wps wxwidgets x264 xa xetex xine xkb xml xmp xpm xv xvid xvmc yahoo yandexdisk youtube zenmap zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 mmx popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="en he ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 400400 [details] build.log
works with dev-java/pdfbox:0
Hitting this as well
dev-java/pdfbox:0 does not exist. Only dev-java/pdfbox:1.8. $ eix pdfbox [I] dev-java/pdfbox Available versions: (1.8) 1.8.8^t {source test ELIBC="FreeBSD"} Installed versions: 1.8.8(1.8)^t(05:19:09 15.10.2015)(-source -test ELIBC="-FreeBSD") Homepage: http://pdfbox.apache.org/ Description: Java library and utilities for working with PDF documents $ java-config -l | grep pdfbox [pdfbox-1.8] Java library and utilities for working with PDF documents (/usr/share/pdfbox-1.8/package.env) snip from emerge: !!! ERROR: Package pdfbox was not found! * ERROR: dev-tex/pdfannotextractor-0.1l::gentoo failed (compile phase): * java-config --classpath=pdfbox failed $ java-config --classpath=pdfbox !!! ERROR: Package pdfbox was not found! $ java-config --classpath=pdfbox-1.8 /usr/share/pdfbox-1.8/lib/pdfbox.jar
any solution insight? this problem exist here since a while
Created attachment 416086 [details, diff] Patch for ebuild I was able to get this working in my local overlay, w/ the attached patch for the ebuild. Skipping the red herrings I chased, there were 2 real issues: EANT_GENTOO_CLASSPATH="pdfbox fontbox" needs to be changed to "pdfbox-1.8 fontbox-1.7". java-config --classpath="pdfbox" fails, but java-config --classpath="pdfbox-1.8" succeeds. The pdfbox package was also renamed from org.pdfbox to org.apache.pdfbox, so we also need to patch the import lines in the java files (see patch attached below).
Created attachment 416088 [details, diff] Patch for renamed org.pdfbox -> org.apache.pdfbox The pdfbox package was renamed from org.pdfbox to org.apache.pdfbox. This patches pdfannotextractor to use the new package name in its imports.
Confirmed that these patches work. Added to my overlay until it's in the main tree: https://github.com/sdfg2/sdfg-overlay
(In reply to Steve Gillespie from comment #8) > Confirmed that these patches work. Added to my overlay until it's in the > main tree: https://github.com/sdfg2/sdfg-overlay well, a github PR to get them in the main tree would help
(In reply to Alexis Ballier from comment #9) > (In reply to Steve Gillespie from comment #8) > > Confirmed that these patches work. Added to my overlay until it's in the > > main tree: https://github.com/sdfg2/sdfg-overlay > > well, a github PR to get them in the main tree would help https://github.com/gentoo/gentoo/pull/430
This PR fixes the problem and pdfannotextractor emerges fine now. However, the author forgot to revision bump the ebuild. I'll merge his changes and create a new revision (r1) and drop the old one which is broken anyway.
PR merged. While at it, I bumped the ebuild to EAPI version 5 and corrected a few mistakes. Make sure to sync your tree and emerge -r1. It should work. Report back otherwise. Thank you.