Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot enable Java in LibreOffice (aarch64) #54312

Open
ppp7032 opened this issue Feb 12, 2025 · 2 comments
Open

Cannot enable Java in LibreOffice (aarch64) #54312

ppp7032 opened this issue Feb 12, 2025 · 2 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@ppp7032
Copy link

ppp7032 commented Feb 12, 2025

Is this a new report?

Yes

System Info

Void 6.12.12+1-asahi_1 aarch64 Unknown notuptodate rF

Package(s) Affected

libreoffice-25.2.0.3_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

I can tick "Use a Java runtime environment" and select a JRE installation.

Actual behaviour

The checkbox is greyed out and cannot be selected, despite openjdk21-21.0.6+1_1, openjdk17-jre-17.0.14+1_1, and openjdk8-jre-8u332b05_2 all being installed.

Steps to reproduce

  1. Make sure to test on an aarch64 device (or even better, an Apple Silicon one specifically). I have tried to reproduce the issue on my amd64 desktop and failed. I can only assume, therefore, that it's an architecture-specific problem.
  2. Install a variety of JREs.
  3. Install LibreOffice.
  4. Attempt to enable use of a JRE in LibreOffice.
@ppp7032 ppp7032 added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Feb 12, 2025
@dkwo
Copy link
Contributor

dkwo commented Feb 13, 2025

Since these machines are quite fast, maybe rebuild the packages to exclude a crosscompilation issue?

@dkwo
Copy link
Contributor

dkwo commented Feb 17, 2025

The template does not enable the java build option for aarch64:

case "$XBPS_TARGET_MACHINE" in
	i686*)	# Broken unit tests
		CXXFLAGS+=" -DDISABLE_CVE_TESTS=1"
		;;
	x86_64*|ppc64*) build_options_default="java" ;;
	armv[56]*) broken="untested" ;;
esac

so the behavior you get is expected.
If you rebuild it passing that build option, does it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants