[packages/java-bcel] tell compiler and javadoc about source files encoding

atler atler at pld-linux.org
Wed Mar 11 19:12:24 CET 2026


commit f0b1261f1afc3742b4eb51f6715f26f9c2a20cdb
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 11 19:11:22 2026 +0100

    tell compiler and javadoc about source files encoding

 java-bcel.spec     |  2 ++
 src-encoding.patch | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)
---
diff --git a/java-bcel.spec b/java-bcel.spec
index 0813d95..73703ef 100644
--- a/java-bcel.spec
+++ b/java-bcel.spec
@@ -16,6 +16,7 @@ Source0:	http://www.apache.org/dist/jakarta/bcel/source/%{srcname}-%{version}-sr
 # Source0-md5:	905b7e718e30e7ca726530ecf106e532
 Patch0:		jakarta-%{srcname}-manifest.patch
 Patch1:		%{name}-noproxy.patch
+Patch2:		src-encoding.patch
 URL:		http://jakarta.apache.org/bcel/
 BuildRequires:	ant
 BuildRequires:	java-regexp >= 1.2
@@ -79,6 +80,7 @@ Dokumentacja do biblioteki do obróbki bajtkodu Javy.
 %setup -q -n bcel-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 find -name '*.jar' | xargs rm -f
 
 %build
diff --git a/src-encoding.patch b/src-encoding.patch
new file mode 100644
index 0000000..955c6ee
--- /dev/null
+++ b/src-encoding.patch
@@ -0,0 +1,20 @@
+--- bcel-5.2/build.xml.orig	2026-03-11 18:17:10.814881587 +0100
++++ bcel-5.2/build.xml	2026-03-11 18:19:10.580192028 +0100
+@@ -39,7 +39,7 @@
+   <target name="compile" description="o Compile the code" depends="get-deps">
+     <mkdir dir="${classesdir}">
+     </mkdir>
+-    <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
++    <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html" encoding="ISO-8859-1">
+       <src>
+         <pathelement location="src/java">
+         </pathelement>
+@@ -100,7 +100,7 @@
+     </property>
+     <property name="title" value="jakarta-bcel 5.2 API">
+     </property>
+-    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.bcel.*">
++    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.bcel.*" encoding="ISO-8859-1">
+       <classpath>
+         <path refid="build.classpath">
+         </path>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/java-bcel.git/commitdiff/f0b1261f1afc3742b4eb51f6715f26f9c2a20cdb



More information about the pld-cvs-commit mailing list