Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654566 - dev-embedded/arduino-listserialportsc should depend on an installed JVM
Summary: dev-embedded/arduino-listserialportsc should depend on an installed JVM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-01 21:09 UTC by Philippe Trottier
Modified: 2018-07-22 23:32 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Trottier 2018-05-01 21:09:48 UTC
1. USE=ftdi emerge arduino-1.8.5-r1 from a new system
2. will fail to find jni.h jnilib.o

I could probably patch the ebuild myself for a specific jvm, but there is probably a better way to check for all jvm installed.
Comment 1 Philippe Trottier 2018-05-01 21:11:24 UTC
To clarify, the JVM is pulled properly but the dependency order is not correct.

The work around in my case was to emerge -1 dev-java/icedtea-bin
Comment 2 Alexey Skobkin 2018-05-04 17:58:19 UTC
Same here. If I manually install JVM before installing arduino then package build will be successful.

If JVM is not installed before manually then I'm getting this:

[ebuild  N    ] dev-embedded/arduino-1.8.5-r2  USE="-doc" 
[ebuild  N    ]  dev-java/ant-core-1.9.2  USE="-doc -source" 
[ebuild  N    ]  dev-util/astyle-3.1-r1  USE="java -examples -static-libs" 
[nomerge      ] dev-java/ant-core-1.9.2  USE="-doc -source" 
[nomerge      ]  virtual/jdk-1.8.0-r3 
[nomerge      ]   dev-java/icedtea-bin-3.7.0  USE="cups gtk multilib nsplugin pulseaudio webstart -alsa (-big-endian) -doc -examples -headless-awt (-selinux) -source" ABI_X86="32 (64) (-x32)" 
[ebuild  N    ]    dev-java/icedtea-web-1.6.2  USE="nsplugin -doc -javascript -tagsoup {-test}" 
[ebuild  N    ]     virtual/jre-1.8.0-r1 
[ebuild  N    ]    dev-java/icedtea-sound-1.0.1  USE="doc {-test}" 
[ebuild  N    ]     virtual/jdk-1.8.0-r3 
[ebuild  N    ]      dev-java/icedtea-bin-3.7.0  USE="cups gtk multilib nsplugin pulseaudio webstart -alsa (-big-endian) -doc -examples -headless-awt (-selinux) -source" ABI_X86="32 (64) (-x32)" 
[nomerge      ] dev-embedded/arduino-1.8.5-r2  USE="-doc" 
[ebuild  N    ]  dev-embedded/arduino-builder-1.3.25 
[ebuild  N    ]   sys-devel/crossdev-20180410 
[ebuild  N    ]  dev-embedded/arduino-listserialportsc-1.4.0 

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Running pre-merge checks for dev-java/icedtea-bin-3.7.0
>>> Emerging (1 of 11) dev-embedded/arduino-listserialportsc-1.4.0::gentoo
>>> Failed to emerge dev-embedded/arduino-listserialportsc-1.4.0, Log file:
>>>  '/var/tmp/portage/dev-embedded/arduino-listserialportsc-1.4.0/temp/build.log.gz'
>>> Jobs: 0 of 11 complete, 1 failed                Load avg: 0.24, 0.24, 0.27
 * Package:    dev-embedded/arduino-listserialportsc-1.4.0
 * Repository: gentoo
 * Maintainer: embedded@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
main.c: In function ‘main’:
main.c:16:10: warning: unused variable ‘vid_pid_iserial’ [-Wunused-variable]
     char vid_pid_iserial[256] = " ";
          ^~~~~~~~~~~~~~~
!!! ERROR: The active vm could not be found
!!! ERROR: The active vm could not be found
jnilib.c:3:10: fatal error: jni.h: No such file or directory
 #include <jni.h>
          ^~~~~~~
compilation terminated.
x86_64-pc-linux-gnu-gcc: error: jnilib.o: No such file or directory
!!! dolib: liblistSerialsj.so.1.4.0 does not exist
 * ERROR: dev-embedded/arduino-listserialportsc-1.4.0::gentoo failed (install phase):
 *   dolib failed
Comment 3 Virgil Dupras (RETIRED) gentoo-dev 2018-07-22 21:02:08 UTC
I confirm. I had the same problem building arduino from a pristine and up-to-date gentoo. Will look into it soon.
Comment 4 Larry the Git Cow gentoo-dev 2018-07-22 23:32:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97cf9f2715a82d688aff6da7ada8413be9929dbc

commit 97cf9f2715a82d688aff6da7ada8413be9929dbc
Author:     Virgil Dupras <vdupras@gentoo.org>
AuthorDate: 2018-07-22 23:31:23 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-07-22 23:31:23 +0000

    dev-embedded/arduino-listserialportsc: add missing build dep
    
    Closes: https://bugs.gentoo.org/654566
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 .../arduino-listserialportsc/arduino-listserialportsc-1.4.0.ebuild     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)