Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554798 - net-analyzer/wireshark USE=doc-pdf with dev-java/fop-2.0 - checking for fop... no
Summary: net-analyzer/wireshark USE=doc-pdf with dev-java/fop-2.0 - checking for fop.....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 554796 555144 555326
Blocks:
  Show dependency tree
 
Reported: 2015-07-13 22:18 UTC by Nick Bowler
Modified: 2015-07-22 14:37 UTC (History)
1 user (show)

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


Attachments
net-analyzer:wireshark-1.12.6:20150713-203214.log.xz (net-analyzer:wireshark-1.12.6:20150713-203214.log.xz,95.03 KB, application/x-xz)
2015-07-13 22:21 UTC, Nick Bowler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Bowler 2015-07-13 22:18:25 UTC
The wireshark configure script fails to find fop with the
recently-stabilised fop-2.0 package.  The configure script only looks for an
executable called "fop", but the executable installed by the fop-2.0 package
is called fop-2.

Thus, with USE=doc-pdf the PDF documentation simply does not get built and
then the installation fails at the very end:

  /usr/bin/install: cannot stat ‘docbook/developer-guide-a4.pdf’: No such file or directory
  !!! doins: docbook/developer-guide-a4.pdf does not exist
  [...]

Workaround is to set EXTRA_ECONF='FOP=/usr/bin/fop-2 HAVE_FOP=yes'.
However, after that the build system calls a2x, which suffers from a
similar problem (bug 554796), so the build will still fail unless that is
also fixed.

Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.1 x86_64)
=================================================================
System uname: Linux-4.0.1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8300_@_2.50GHz-with-gentoo-2.2
KiB Mem:     3917148 total,    202712 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 13 Jul 2015 00:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
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-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            3.4.6-r2::gentoo, 4.1.2::gentoo, 4.2.4-r1::gentoo, 4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    sync-user: portage
    priority: -1000

gentoo-draconx
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @OTHER-FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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/ssl/certs/ca-certificates.crt /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build --with-bdeps=y --autounmask-write=n --dynamic-deps=n --unordered-display"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache 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 webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
INSTALL_MASK="/usr/share/cursors/xorg-x11/default 	/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf 	/etc/profile.d/qtgui4.sh"
LANG="en_CA.UTF-8"
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 acl alsa amd64 berkdb bzip2 cairo cjk cli cracklib crypt cups curl cvs cxx doc dri enca exif fbcon fdt ffmpeg flac fontconfig fontforge fortran gdbm gnutls gpm graphviz gtk iconv icu idn imagemagick ipv6 jadetex jpeg kpathsea latex lcms libass lto mad mmx mmxext modules mp3 mp4 multilib ncurses nls nptl ogg opengl openmp otr pam pcre perl png python readline sdl session smp sse sse2 ssl svg tcpd tex4ht theora threads tiff truetype unicode vim-syntax vorbis xattr xcb xft xinerama xulrunner xv 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="mmx mmxext sse sse2 sse3 sse4_1 ssse3" 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="presenter-console presenter-minimizer" LINGUAS="en_CA en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm mips mipsel ppc ppc64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel fbdev" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Nick Bowler 2015-07-13 22:21:30 UTC
Created attachment 406714 [details]
net-analyzer:wireshark-1.12.6:20150713-203214.log.xz

xz-compressed because the uncompressed log is apparently too large for bugzilla to accept.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-17 04:53:32 UTC
OK, so when fop-2 was added, I tested whether wireshark would still compile and it did. Apparently then someone SLOTted it, moved the executable and then it obviously broke.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-17 04:59:25 UTC
SLOTted fop-2 without a revision bump, too.
Comment 4 Patrice Clement gentoo-dev 2015-07-17 13:41:20 UTC
I just pushed a revision bump for fop-2.0 that corrects the problem. Please sync Portage, emerge it like so:
# emerge -av =dev-java/fop-2.0-r1

and reopen this bug if it still doesn't work.

Thanks.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-18 05:39:20 UTC
It isn't fixed because I still don't have a /usr/bin/fop with -r0.
Comment 6 Patrice Clement gentoo-dev 2015-07-18 20:51:57 UTC
Dear Jer

Here's the content of the image directory that results from the following list of commands I execute in my CVS sandbox:

monsieurp@epsilon ~/gentoo-x86/dev-java/fop $ cvs up -dP .
monsieurp@epsilon ~/gentoo-x86/dev-java/fop $ ebuild fop-2.0-r1.ebuild clean manifest configure install

[...]

jar-main:
      [jar] Building jar: /var/tmp/portage/dev-java/fop-2.0-r1/work/fop-2.0/build/fop.jar

BUILD SUCCESSFUL
Total time: 7 seconds
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-java/fop-2.0-r1

>>> Install fop-2.0-r1 into /var/tmp/portage/dev-java/fop-2.0-r1/image/ category dev-java
>>> Completed installing fop-2.0-r1 into /var/tmp/portage/dev-java/fop-2.0-r1/image/

ecompressdir: bzip2 -9 /usr/share/doc
monsieurp@epsilon ~/gentoo-x86/dev-java/fop $ find /var/tmp/portage/dev-java/fop-2.0-r1/image/ 
/var/tmp/portage/dev-java/fop-2.0-r1/image/
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/fop
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/fop/package.env
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/fop/lib
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/fop/lib/fop.jar
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/fop/lib/fop-sandbox.jar
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/fop/lib/fop-hyph.jar
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/doc
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/doc/fop-2.0-r1
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/doc/fop-2.0-r1/README.bz2
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/share/doc/fop-2.0-r1/NOTICE.bz2
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/bin
/var/tmp/portage/dev-java/fop-2.0-r1/image/usr/bin/fop

I commited r1 and not r0. Sorry about that. Could you please paste the content of your image directory? Thanks.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-19 07:32:12 UTC
The problem now is that on a stable system, =dev-java/fop-2.0 gets pulled in and dependent packages cannot find /usr/bin/fop. It doesn't matter if -r1 does it right as it will be masked by keywording.
Comment 8 Patrice Clement gentoo-dev 2015-07-19 08:36:54 UTC
Thanks for the heads up. fop-2.0-r1 is now stabilised.

@jer: sync your tree, emerge world and you should be all set.
Comment 9 Nick Bowler 2015-07-21 17:39:46 UTC
Not quite fixed yet... the dependencies on wireshark need to be updated
(the problematic =dev-java/fop-2.0 still satisfies the wireshark dependency), so emerge will pull in the fixed version.

I suppose the dependency should be updated from:

  doc-pdf? ( dev-java/fop )

to

  doc-pdf? ( dev-java/fop:0 )
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-22 04:12:55 UTC
(In reply to Nick Bowler from comment #9)
> Not quite fixed yet... the dependencies on wireshark need to be updated
> (the problematic =dev-java/fop-2.0 still satisfies the wireshark
> dependency), so emerge will pull in the fixed version.
> 
> I suppose the dependency should be updated from:
> 
>   doc-pdf? ( dev-java/fop )
> 
> to
> 
>   doc-pdf? ( dev-java/fop:0 )

Fixing every package in the tree that uses fop instead of fixing fop? You should reopen bug #555144 instead.
Comment 11 Nick Bowler 2015-07-22 14:02:00 UTC
(In reply to Jeroen Roovers from comment #10)
> (In reply to Nick Bowler from comment #9)
> > Not quite fixed yet... the dependencies on wireshark need to be updated
> > (the problematic =dev-java/fop-2.0 still satisfies the wireshark
> > dependency), so emerge will pull in the fixed version.
> > 
> > I suppose the dependency should be updated from:
> > 
> >   doc-pdf? ( dev-java/fop )
> > 
> > to
> > 
> >   doc-pdf? ( dev-java/fop:0 )
> 
> Fixing every package in the tree that uses fop instead of fixing fop? You
> should reopen bug #555144 instead.

Unfortunately I don't think there's any way to fix this mess in the fop package, since the fop-2.0 package may already be installed by users.  Unless the reverse dependencies are updated, nstalling wireshark will not pull in the required upgrade, no matter what is changed in the fop ebuilds.
Comment 12 Patrice Clement gentoo-dev 2015-07-22 14:37:01 UTC
(In reply to Nick Bowler from comment #11)
> Unfortunately I don't think there's any way to fix this mess in the fop
> package, since the fop-2.0 package may already be installed by users. 
> Unless the reverse dependencies are updated, nstalling wireshark will not
> pull in the required upgrade, no matter what is changed in the fop ebuilds.

Not true. If the user runs emerge --sync and emerge --update world, Portage would see there's now a newer version of fop (remember, I pushed a revision bump for that package). It sure wouldn't remove the former :2 SLOT but would install the newer version with the now :0 SLOT. Hence /usr/bin/fop would be installed and wireshark would work as expected.

You can argue the :2 SLOT version is now an "orphan" package laying around on the user's system and taking up space for no reason. Running emerge --depclean would fix that hitch.