Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508564 - =media-libs/libcaca-0.99_beta18-r2[java] fails to install
Summary: =media-libs/libcaca-0.99_beta18-r2[java] fails to install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal normal with 1 vote (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 02:18 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-03-02 05:47 UTC (History)
8 users (show)

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


Attachments
build log (libcaca-0.99_beta18-r2.log,179.22 KB, text/plain)
2014-07-19 13:18 UTC, Daniel Pielmeier
Details
user-vm_build.log (libcaca-0.99_beta18-r2_user.log,239.21 KB, text/plain)
2014-07-20 03:39 UTC, Daniel Pielmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2014-04-24 02:18:43 UTC
In src_install():

 * ERROR: media-libs/libcaca-0.99_beta18-r2::gentoo failed (install phase):
 *   java/libjava.jar does not exist or is not a file!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 6365:  Called java-pkg_newjar 'java/libjava.jar'
 *   environment, line 3923:  Called die
 * The specific snippet of code:
 *       [[ ! -f ${original_jar} ]] && die "${original_jar} does not exist or is not a file!";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/libcaca-0.99_beta18-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libcaca-0.99_beta18-r2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =libcaca-0.99_beta18
 * The complete build log is located at '/var/log/portage/build/media-libs/libcaca-0.99_beta18-r2:20140423-230553.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-libs/libcaca-0.99_beta18-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libcaca-0.99_beta18-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/libcaca-0.99_beta18-r2/work/libcaca-0.99.beta18'
 * S: '/var/tmp/portage/media-libs/libcaca-0.99_beta18-r2/work/libcaca-0.99.beta18'


# find /var/tmp/portage/media-libs/libcaca-0.99_beta18-r2/work -name libjava.jar
/var/tmp/portage/media-libs/libcaca-0.99_beta18-r2/work/libcaca-0.99.beta18-amd64/java/libjava.jar

Compare with working directory referenced at the end of build log.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-24 11:44:22 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2014-04-24 18:06:35 UTC
As I had already explained, this package fails to install to due a bug introduced in multilib conversion:

*libcaca-0.99_beta18-r2 (18 Apr 2014)

  18 Apr 2014; Julian Ospald <hasufell@gentoo.org>
  +libcaca-0.99_beta18-r2.ebuild, +files/libcaca-0.99_beta18-fix-tests.patch:
  add multilib support wrt #497776, patches by Michael Mair-Keimberger
Comment 3 Julian Ospald 2014-04-24 18:52:50 UTC
+  24 Apr 2014; Julian Ospald <hasufell@gentoo.org>
+  libcaca-0.99_beta18-r2.ebuild:
+  convert to multilib-minimal instead and fix bug #508564
Comment 4 Daniel Troeder 2014-05-14 15:30:51 UTC
Got the same error, but it could install, when running with MAKEOPTS=-j1.
emerge--sync was yesterday, last Changelog entry is from "28 Apr 2014; Michał Górny".
============================================================================
make[2]: Nothing to be done for 'install-data-am'.
 /bin/mkdir -p '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18-r2/image//usr/bin'
 /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c caca-config '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18-r2/image//usr/bin'
make[2]: Leaving directory '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18-r2/work/libcaca-0.99.beta18-amd64'
make[1]: Leaving directory '/gentoo/tmp/build/working/portage/media-libs/libcaca-0.99_beta18-r2/work/libcaca-0.99.beta18-amd64'
 * ERROR: media-libs/libcaca-0.99_beta18-r2::gentoo failed (install phase):
 *   java/libjava.jar does not exist or is not a file!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 5950:  Called multilib-minimal_src_install
 *   environment, line 4661:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 4846:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 4454:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 4452:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  657:  Called multilib-minimal_abi_src_install
 *   environment, line 4651:  Called multilib_src_install
 *   environment, line 5051:  Called java-pkg_newjar 'java/libjava.jar'
 *   environment, line 3743:  Called die
 * The specific snippet of code:
 *       [[ ! -f ${original_jar} ]] && die "${original_jar} does not exist or is not a file!";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/libcaca-0.99_beta18-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libcaca-0.99_beta18-r2::gentoo'`.
============================================================================
daniel@moja ~ $ sudo emerge --info =libcaca-0.99_beta18
Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome, gcc-4.8.2, glibc-2.19, 3.10.5-gentoo-r1.moja x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.5-gentoo-r1.moja-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8026948 total,    909316 free
KiB Swap:    4194300 total,   2781436 free
Timestamp of tree: Tue, 13 May 2014 17:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo AzP sunrise multimedia ephemeral spring luke-jr danielsown
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -flto=4 -fuse-linker-plugin -fuse-ld=gold"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/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 -flto=4 -fuse-linker-plugin -fuse-ld=gold"
DISTDIR="/gentoo/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="de_DE.utf8@euro"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -march=native -O2 -flto=4 -fuse-linker-plugin -fuse-ld=gold"
MAKEOPTS="-j5"
PKGDIR="/gentoo/pkg+src/pkg"
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="/gentoo/tmp/build/working"
PORTDIR="/gentoo/portage+edb+pkg/portage"
PORTDIR_OVERLAY="/var/lib/layman/AzP /var/lib/layman/sunrise /var/lib/layman/multimedia /var/lib/layman/ephemeral /var/lib/layman/Spring /var/lib/layman/luke-jr /gentoo/overlays/daniel"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="10bit X a52 aac aalib acl acpi alsa amd64 apache2 apng applet archive aspell asyncns autoipd avahi bash-completion berkdb bluetooth bonjour branding brasero bzip2 c++0x cairo calendar caps cdaudio cdda cddax cddb cdio cdr cdrkit cli clucene colord config-file connection-sharing consolekit cracklib crypt cryptsetup css cuda cups curl custom-optimization cxx daap dbus dconf device-mapper dga dhclient dhcp divx dns dri dts dv dvb dvd dvdnav dvdr dvdread dvi emboss enca encode evo exif expat expoblending faac faad fam fame fat ffmpeg fftw firefox flac fontconfig fts fts3 fuse galago gcj gconf gd gdbm gdu gedit gif gimp git gles2 glibc-omitfp gmedia gmp gnome gnome-keyring gnutls gphoto2 gpm gps gs gstreamer gtk gtk3 gzip h323 hal hddtemp hpijs http http-forms http-server hunspell hwdb iconv icu id3tag ieee1394 imagemagick imlib inotify introspection ipv6 irc jabber java joystick jpeg kdeenablefinal kdrive kernel-patch kpathsea lame laptop lcms ldap libass libcaca libnotify libsecret lm_sensors lto lzma lzo mad maps matroska mdnsresponder-compat milter minizip mjpeg mmap mms mmx mmxext mng modules mp3 mp4 mpeg mpi mplayer multilib musicbrainz nautilus ncurses net network networkmanager nfs nfsv3 nfsv4 nls nntp nptl nsplugin nss ntfs nuv nvidia offensive ogg opengl openmp openrc openssl openvg optimization opus pam pango pch pcre pdf pgo pidgin pipechan plotutils png policykit postproc postscript ppds pth pulseaudio qemu qemu-ifup qos qpa qt-faststart quicktime quotas ramfs rar readline realmedia realtime reiserfs remote romio rss rtmp rtsp samba scanner sdl secure-delete semantic-desktop sendto session sftp shout sip smp spell spice sqlite sse sse2 sse3 sse4.1 ssl ssse3 startup-notification stream subtitles subversion svg system-sqlite taglib tagwriting tcpd theora threads thumbnail tiff tls truetype twolame udev udisks unicode upnp upnp-av upower usb uuid v4l vaapi vcd vcdinfo vcdx vdpau video vorbis vpx wav wifi winbind wmf wmp wps wxwidgets x264 xattr xcb xfs xinerama xml xmlrpc xmp xnest xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_http rewrite setenvifi slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev aiptek synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp pnm" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
============================================================================
daniel@moja ~ $ java-config -L
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.4.3 [icedtea-bin-7]
2)	Oracle JDK 1.8.0.5 [oracle-jdk-bin-1.8]
============================================================================
daniel@moja ~ $ java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (Gentoo build 1.7.0_45-b31)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-21 14:50:41 UTC
Can you please attach a complete build log?
Comment 6 Daniel Pielmeier gentoo-dev 2014-07-19 13:18:25 UTC
Created attachment 381050 [details]
build log

Same here. Full build log is attached.

java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (Gentoo build 1.7.0_55-b14)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea-6 
  [2]   icedtea-7  system-vm user-vm
Comment 7 Daniel Pielmeier gentoo-dev 2014-07-20 03:39:53 UTC
Created attachment 381078 [details]
user-vm_build.log

I found something which is probably of importance. When running "ebuild libcaca-0.99_beta18-r2.ebuild install" as a normal user the user-vm is used and installing libcaca succeeds.

One difference I noticed when buuilding as user it finds javac as:
/home/billie/.gentoo/java-config-2/current-user-vm/bin/javac 

When building as root it finds:
/usr/bin/javac -> /usr/libexec/eselect-java/run-java-tool.bash
Probably there is an issue with the symlink.

Shouldn't it also find:
/etc/java-config-2/current-system-vm/bin/javac
instead
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2014-07-20 11:47:02 UTC
looks like an issue with lack of eselect run of the java settings to me, failed here too before (re)setting them using eselect
Comment 9 Daniel Pielmeier gentoo-dev 2014-07-22 07:58:49 UTC
(In reply to Samuli Suominen from comment #8)
> looks like an issue with lack of eselect run of the java settings to me,
> failed here too before (re)setting them using eselect

You refer to your comment #14 from bug #411443. Like Renato I tried your suggestion but this did not fix the issue.
Comment 10 Alexis Ballier gentoo-dev 2015-03-18 15:42:23 UTC
+*libcaca-0.99_beta19 (18 Mar 2015)
+
+  18 Mar 2015; Alexis Ballier <aballier@gentoo.org>
+  +libcaca-0.99_beta19.ebuild:
+  version bump; use ruby20 for ruby bindings, bug #483104; fix java bindings
+  build, bug #508564; use mono-env.eclass, should fix bug #483372
+
Comment 11 Larry the Git Cow gentoo-dev 2021-03-02 05:47:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e71addf57cddd7cbb56da04b29bcf913eece71c

commit 4e71addf57cddd7cbb56da04b29bcf913eece71c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-02 05:46:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-02 05:47:11 +0000

    profiles: mask media-libs/libcaca[java, mono]
    
    Completely broken - and was in the past. Exposed by
    having a new ebuild in ~arch rather than anything else.
    
    Bug: https://bugs.gentoo.org/483372
    Bug: https://bugs.gentoo.org/508564
    Closes: https://bugs.gentoo.org/773913
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/base/package.use.mask   | 9 ++++++++-
 profiles/base/package.use.stable.mask | 7 -------
 2 files changed, 8 insertions(+), 8 deletions(-)