Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831394 - dev-java/rxtx-2.2_pre2-r1 - /.../sh:line <snip>: .../javah: No such file or directory
Summary: dev-java/rxtx-2.2_pre2-r1 - /.../sh:line <snip>: .../javah: No such file or d...
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:
Blocks: jdk11
  Show dependency tree
 
Reported: 2022-01-18 08:28 UTC by Toralf Förster
Modified: 2022-03-16 08:51 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.35 KB, text/plain)
2022-01-18 08:28 UTC, Toralf Förster
Details
dev-java:rxtx-2.2_pre2-r1:20220118-080227.log (dev-java:rxtx-2.2_pre2-r1:20220118-080227.log,28.46 KB, text/plain)
2022-01-18 08:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,137.21 KB, text/plain)
2022-01-18 08:28 UTC, Toralf Förster
Details
environment (environment,164.23 KB, text/plain)
2022-01-18 08:28 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.53 KB, application/x-bzip)
2022-01-18 08:28 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.33 KB, application/x-bzip)
2022-01-18 08:28 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,40.65 KB, application/x-bzip)
2022-01-18 08:28 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-01-18 08:28:04 UTC
	if grep > /dev/null native.*\( /var/tmp/portage/dev-java/rxtx-2.2_pre2-r1/work/rxtx-2.2pre2/./src/gnu/io/$i.java; then \
		echo gnu.io.$i; \
	fi; \
done)`
/bin/sh: line 1: /opt/openjdk-bin-11.0.13_p8/bin/javah: No such file or directory
make: *** [Makefile:845: /var/tmp/portage/dev-java/rxtx-2.2_pre2-r1/work/rxtx-2.2pre2/gnu/io/CommDriver.class] Error 127
make: *** Waiting for unfinished jobs....

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220117-102300

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.13_p8"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
The following VMs are available for generation-2:
*)	AdoptOpenJDK 11.0.13_p8 [openjdk-bin-11]
2)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 0217bdc2d48c1eb51f3fbe1bf3f142b993fa592d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jan 18 05:37:00 2022 +0000

    2022-01-18 05:36:59 UTC

emerge -qpvO dev-java/rxtx
[ebuild  N    ] dev-java/rxtx-2.2_pre2-r1  USE="-doc -lfd -source"
Comment 1 Toralf Förster gentoo-dev 2022-01-18 08:28:05 UTC
Created attachment 762477 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-18 08:28:06 UTC
Created attachment 762478 [details]
dev-java:rxtx-2.2_pre2-r1:20220118-080227.log
Comment 3 Toralf Förster gentoo-dev 2022-01-18 08:28:08 UTC
Created attachment 762479 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-01-18 08:28:09 UTC
Created attachment 762480 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-01-18 08:28:10 UTC
Created attachment 762481 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-18 08:28:11 UTC
Created attachment 762482 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-01-18 08:28:12 UTC
Created attachment 762483 [details]
temp.tar.bz2
Comment 8 Yuan Liao (Leo3418) 2022-01-21 01:28:04 UTC
The 'javah' command has been removed on JDK 11.

Similar to https://bugs.gentoo.org/818145; should block https://bugs.gentoo.org/697014
Comment 9 Larry the Git Cow gentoo-dev 2022-02-21 09:21:28 UTC
The bug has been referenced in the following commit(s):

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

commit f8f2919fe3bbe0063e50b32c7346dde31bd0e174
Author:     Yuan Liao <liaoyuan@gmail.com>
AuthorDate: 2022-02-20 14:54:56 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2022-02-21 09:19:44 +0000

    dev-java/rxtx: Fix various build errors for Java 11+ and others, EAPI 8
    
    - Fix compiler errors due to -Werror=format-security
    - Fix Javadoc generation errors
    - Replace 'javah' with 'javac -h' for JDK 10+
    - Attempt to fix some random, nondeterministic build-time errors that
      were speculated to be caused by parallel 'make'.  Those errors are not
      always reproducible and may go away during a retry, which might have
      stopped some users (including the commit author himself) from
      reporting them.  Another random error popped up when the new ebuild
      revision was being tested, hence a fix that forces sequential build is
      attempted in the hope to prevent probable random errors.
    
    Bug: https://bugs.gentoo.org/550534
    Bug: https://bugs.gentoo.org/642030
    Bug: https://bugs.gentoo.org/831394
    Bug: https://bugs.gentoo.org/833396
    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/24289
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../files/rxtx-2.2_pre2-fix-for-java-10+.patch     |  50 +++++
 .../files/rxtx-2.2_pre2-fix-invalid-javadoc.patch  | 229 +++++++++++++++++++++
 .../rxtx/files/rxtx-2.2_pre2-format-security.patch | 118 +++++++++++
 dev-java/rxtx/rxtx-2.2_pre2-r2.ebuild              | 109 ++++++++++
 4 files changed, 506 insertions(+)
Comment 10 Volkmar W. Pogatzki 2022-03-16 08:51:36 UTC
Affected version has gone. Closing.