Bug#1022881: swt4-gtk FTBFS due to default encoding
Vignesh Raman
vignesh.raman at collabora.com
Thu Oct 27 10:55:45 BST 2022
Source: swt4-gtk
Version: 4.17.0-1
Severity: serious
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: vignesh.raman at collabora.com
Dear Maintainer,
swt4-gtk fails to build with the below error,
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/swt4-gtk.html
copy.translationfiles:
[javac] Compiling 436 source files to /build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/temp.folder/@dot.bin
[javac] /build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/temp.folder/@dot.src/org/eclipse/swt/layout/FillLayout.java:13: error: unmappable character (0xC3) for encoding US-ASCII
[javac] * Christoph L??ubrich - Bug 513185
[javac] ^
[javac] /build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/temp.folder/@dot.src/org/eclipse/swt/layout/FillLayout.java:13: error: unmappable character (0xA4) for encoding US-ASCII
[javac] * Christoph L??ubrich - Bug 513185
[javac] ^
[javac] 2 errors
BUILD FAILED
/build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/buildFragment.xml:88: The following error occurred while executing this line:
/build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/buildFragment.xml:61: Compile failed; see the compiler error output for details.
The default encoding is US-ASCII. Some packages contain characters
that cannot be displayed with the default encoding and thus will
cause build failures. Set encoding to UTF-8 to fix this error.
I'm attaching a patch which includes the fix. Please could you review it.
Thank you.
Regards,
Vignesh
-- System Information:
Debian Release: 11.1
APT prefers stable
APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (500, 'stable-updates'), (500, 'stable-security')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8), LANGUAGE=en_IN:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
>From f1e41f5ba6d1430aba3d8ca7927cff299f489934 Mon Sep 17 00:00:00 2001
From: Vignesh Raman <vignesh.raman at collabora.com>
Date: Wed, 26 Oct 2022 12:30:33 +0530
Subject: [PATCH] Set encoding to UTF-8
swt4-gtk fails to build with the below error,
copy.translationfiles:
[javac] Compiling 436 source files to /build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/temp.folder/@dot.bin
[javac] /build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/temp.folder/@dot.src/org/eclipse/swt/layout/FillLayout.java:13: error: unmappable character (0xC3) for encoding US-ASCII
[javac] * Christoph L??ubrich - Bug 513185
[javac] ^
[javac] /build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/temp.folder/@dot.src/org/eclipse/swt/layout/FillLayout.java:13: error: unmappable character (0xA4) for encoding US-ASCII
[javac] * Christoph L??ubrich - Bug 513185
[javac] ^
[javac] 2 errors
BUILD FAILED
/build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/buildFragment.xml:88: The following error occurred while executing this line:
/build/swt4-gtk-4.17.0/bundles/org.eclipse.swt/buildFragment.xml:61: Compile failed; see the compiler error output for details.
The default encoding is US-ASCII. Some packages contain characters
that cannot be displayed with the default encoding and thus will
cause build failures. Set encoding to UTF-8 to fix this error.
Signed-off-by: Vignesh Raman <vignesh.raman at collabora.com>
---
debian/rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/rules b/debian/rules
index 803ce85..9bb459a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,7 @@ DEB_DH_MAKESHLIBS_ARGS_ALL := -Xjni
AWT_LIB_DIR := $(JAVA_ARCH)
export AWT_LIB_PATH=/usr/lib/jvm/default-java/jre/lib/$(AWT_LIB_DIR)
+export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
MAKE_ARGS=-C bundles/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library -I../../../Eclipse\ SWT/common/library/ -f make_linux.mak
--
2.30.2
More information about the pkg-java-maintainers
mailing list