Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package matthewlib-java for openSUSE:Factory
checked in at 2024-09-25 21:55:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/matthewlib-java (Old)
and /work/SRC/openSUSE:Factory/.matthewlib-java.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "matthewlib-java"
Wed Sep 25 21:55:01 2024 rev:20 rq:1203395 version:0.8.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/matthewlib-java/matthewlib-java.changes
2024-02-22 20:59:04.608393788 +0100
+++
/work/SRC/openSUSE:Factory/.matthewlib-java.new.29891/matthewlib-java.changes
2024-09-25 21:55:46.106463841 +0200
@@ -1,0 +2,15 @@
+Wed Sep 25 08:18:18 UTC 2024 - Fridrich Strba <[email protected]>
+
+- Upgrade to version 0.8.1
+ * Commit versions of jni headers rather than relying on javah to
+ be in new versions of openjdk
+- Modified patches:
+ * libmatthew-java-0.8-jdk10.patch ->
+ libmatthew-java-0.8.1-jdk10.patch
+ * install_doc.patch
+ + rediff to changed context
+- Added patch:
+ * reproducible-jar-mtime.patch
+ + use SOURCE_DATE_EPOCH for reproducible jar mtime
+
+-------------------------------------------------------------------
Old:
----
libmatthew-java-0.8-jdk10.patch
libmatthew-java-0.8.tar.gz
New:
----
libmatthew-java-0.8.1-jdk10.patch
libmatthew-java-0.8.1.tar.gz
reproducible-jar-mtime.patch
BETA DEBUG BEGIN:
Old:- Modified patches:
* libmatthew-java-0.8-jdk10.patch ->
libmatthew-java-0.8.1-jdk10.patch
BETA DEBUG END:
BETA DEBUG BEGIN:
New: * libmatthew-java-0.8-jdk10.patch ->
libmatthew-java-0.8.1-jdk10.patch
* install_doc.patch
New:- Added patch:
* reproducible-jar-mtime.patch
+ use SOURCE_DATE_EPOCH for reproducible jar mtime
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ matthewlib-java.spec ++++++
--- /var/tmp/diff_new_pack.INM1I8/_old 2024-09-25 21:55:47.262511925 +0200
+++ /var/tmp/diff_new_pack.INM1I8/_new 2024-09-25 21:55:47.266512091 +0200
@@ -19,27 +19,20 @@
%global make make
%define orig_name libmatthew-java
Name: matthewlib-java
-Version: 0.8
+Version: 0.8.1
Release: 0
Summary: A few useful Java libraries
-# actual upstream:
-#URL: http://matthew.ath.cx/projects/java/
-#Source0: http://matthew.ath.cx/projects/java/%{name}-%{version}.tar.gz
-# upstream author is also the debian maintainer for this package.
-# he gets newer releases into debian before he puts them up on
-# the upstream website. so we use the "original" source from debian
-# (ie, the source before debian patches are applied to it)
License: MIT
Group: Development/Libraries/Java
-Source0: libmatthew-java-0.8.tar.gz
+URL: http://matthew.ath.cx/projects/java/
+Source0:
http://matthew.ath.cx/projects/java/%{orig_name}-%{version}.tar.gz
Patch0: install_doc.patch
Patch1: classpath_fix.patch
-Patch2: libmatthew-java-0.8-jdk10.patch
+Patch2: libmatthew-java-0.8.1-jdk10.patch
+Patch3: reproducible-jar-mtime.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-tools
-Requires: java >= 1.8
-Requires: javapackages-tools
Provides: %{orig_name}
%description
@@ -83,13 +76,17 @@
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
+%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
+%patch -P 3 -p1
+%endif
%build
-%make \
+%{make} \
CFLAGS='%{optflags} -fpic -std=c99' \
LIBDIR='%{_libdir}' \
LD='gcc' \
- JCFLAGS='-target 1.8 -source 1.8'
+ JCFLAGS='-target 1.8 -source 1.8' \
+ JAVADOCFLAGS='-quiet -author -notimestamp'
%install
make install \
++++++ install_doc.patch ++++++
--- /var/tmp/diff_new_pack.INM1I8/_old 2024-09-25 21:55:47.294513256 +0200
+++ /var/tmp/diff_new_pack.INM1I8/_new 2024-09-25 21:55:47.302513589 +0200
@@ -1,7 +1,5 @@
-Index: libmatthew-java-0.8/Makefile
-===================================================================
---- libmatthew-java-0.8.orig/Makefile 2011-01-23 18:09:41.000000000 +0100
-+++ libmatthew-java-0.8/Makefile 2012-05-15 10:18:51.501203006 +0200
+--- libmatthew-java-0.8.1/Makefile 2011-01-23 18:09:41.000000000 +0100
++++ libmatthew-java-0.8.1/Makefile 2012-05-15 10:18:51.501203006 +0200
@@ -44,7 +44,7 @@
.NO_PARALLEL:
.NOTPARALLEL:
@@ -9,8 +7,8 @@
-all: unix-$(UNIXVER).jar cgi-$(CGIVER).jar debug-enable-$(DEBUGVER).jar
debug-disable-$(DEBUGVER).jar io-$(IOVER).jar hexdump-$(HEXVER).jar
libcgi-java.so libunix-java.so
+all: unix-$(UNIXVER).jar cgi-$(CGIVER).jar debug-enable-$(DEBUGVER).jar
debug-disable-$(DEBUGVER).jar io-$(IOVER).jar hexdump-$(HEXVER).jar
libcgi-java.so libunix-java.so doc
- classes: .classes
- .classes: $(SRC)
+ dist: libmatthew-java-$(MATTVER).tar.gz
+
@@ -139,4 +139,4 @@
ln -sf cgi-$(CGIVER).jar $(DESTDIR)$(JARDIR)/cgi.jar
ln -sf hexdump-$(HEXVER).jar $(DESTDIR)$(JARDIR)/hexdump.jar
++++++ libmatthew-java-0.8-jdk10.patch -> libmatthew-java-0.8.1-jdk10.patch
++++++
--- /work/SRC/openSUSE:Factory/matthewlib-java/libmatthew-java-0.8-jdk10.patch
2017-12-23 12:21:39.153246058 +0100
+++
/work/SRC/openSUSE:Factory/.matthewlib-java.new.29891/libmatthew-java-0.8.1-jdk10.patch
2024-09-25 21:55:46.094463342 +0200
@@ -1,5 +1,5 @@
---- libmatthew-java-0.8/cgi-java.c 2011-06-28 10:27:11.000000000 +0200
-+++ libmatthew-java-0.8/cgi-java.c 2017-12-22 13:10:21.755868074 +0100
+--- libmatthew-java-0.8.1/cgi-java.c 2024-09-25 09:53:00.423917614 +0200
++++ libmatthew-java-0.8.1/cgi-java.c 2024-09-25 09:54:41.074573838 +0200
@@ -26,7 +26,10 @@
*/
@@ -12,8 +12,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
---- libmatthew-java-0.8/Makefile 2011-01-23 18:09:41.000000000 +0100
-+++ libmatthew-java-0.8/Makefile 2017-12-22 13:10:57.603868209 +0100
+--- libmatthew-java-0.8.1/Makefile 2024-09-25 09:53:00.423917614 +0200
++++ libmatthew-java-0.8.1/Makefile 2024-09-25 09:55:21.598171368 +0200
@@ -1,7 +1,6 @@
JAVAC?=javac
JAVADOC?=javadoc
@@ -31,7 +31,7 @@
LDVER?=$(shell ld -v | cut -d' ' -f1)
UNAME?=$(shell uname -s)
-@@ -50,7 +49,7 @@
+@@ -52,7 +51,7 @@
.classes: $(SRC)
mkdir -p classes
$(MAKE) .$(DEBUG)debug
@@ -40,21 +40,17 @@
touch .classes
clean:
rm -rf classes doc
-@@ -76,10 +75,10 @@
- $(CC) $(CFLAGS) $(CSTD) $(CSHAREFLAG) $(INCLUDES) -c -o $@ $<
+@@ -80,8 +79,6 @@
lib%.so: %.o
$(CC) $(LDFLAGS) $(LDSHAREFLAGS) -o $@ $<
-+
- unix-java.h: .classes
+ headers: .classes
- $(JAVAH) -classpath classes -o $@ cx.ath.matthew.unix.UnixServerSocket
cx.ath.matthew.unix.UnixSocket cx.ath.matthew.unix.USInputStream
cx.ath.matthew.unix.USOutputStream
-+
- cgi-java.h: .classes
- $(JAVAH) -classpath classes -o $@ cx.ath.matthew.cgi.CGI
test.cgi: cgi-$(CGIVER).jar libcgi-java.so
$(GCJ) $(GCJFLAGS) $(GCJJNIFLAG) -L. -lcgi-java -o test.cgi
--main=cx.ath.matthew.cgi.testcgi cgi-$(CGIVER).jar
---- libmatthew-java-0.8/unix-java.c 2011-06-28 10:27:20.000000000 +0200
-+++ libmatthew-java-0.8/unix-java.c 2017-12-22 13:10:16.323868053 +0100
+--- libmatthew-java-0.8.1/unix-java.c 2024-09-25 09:53:00.423917614 +0200
++++ libmatthew-java-0.8.1/unix-java.c 2024-09-25 09:54:41.074573838 +0200
@@ -29,7 +29,7 @@
/* _GNU_SOURCE is required to use struct ucred in glibc 2.8 */
#define _GNU_SOURCE
++++++ libmatthew-java-0.8.tar.gz -> libmatthew-java-0.8.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libmatthew-java-0.8/Makefile
new/libmatthew-java-0.8.1/Makefile
--- old/libmatthew-java-0.8/Makefile 2011-01-23 18:09:41.000000000 +0100
+++ new/libmatthew-java-0.8.1/Makefile 2018-05-05 22:58:21.000000000 +0200
@@ -29,7 +29,7 @@
DOCDIR?=$(PREFIX)/share/doc/libmatthew-java/
LIBDIR?=$(PREFIX)/lib/jni
-MATTVER=0.8
+MATTVER=0.8.1
DEBUGVER=1.1
UNIXVER=0.5
CGIVER=0.6
@@ -46,6 +46,8 @@
all: unix-$(UNIXVER).jar cgi-$(CGIVER).jar debug-enable-$(DEBUGVER).jar
debug-disable-$(DEBUGVER).jar io-$(IOVER).jar hexdump-$(HEXVER).jar
libcgi-java.so libunix-java.so
+dist: libmatthew-java-$(MATTVER).tar.gz
+
classes: .classes
.classes: $(SRC)
mkdir -p classes
@@ -76,15 +78,14 @@
$(CC) $(CFLAGS) $(CSTD) $(CSHAREFLAG) $(INCLUDES) -c -o $@ $<
lib%.so: %.o
$(CC) $(LDFLAGS) $(LDSHAREFLAGS) -o $@ $<
-unix-java.h: .classes
+headers: .classes
$(JAVAH) -classpath classes -o $@ cx.ath.matthew.unix.UnixServerSocket
cx.ath.matthew.unix.UnixSocket cx.ath.matthew.unix.USInputStream
cx.ath.matthew.unix.USOutputStream
-cgi-java.h: .classes
$(JAVAH) -classpath classes -o $@ cx.ath.matthew.cgi.CGI
test.cgi: cgi-$(CGIVER).jar libcgi-java.so
$(GCJ) $(GCJFLAGS) $(GCJJNIFLAG) -L. -lcgi-java -o test.cgi
--main=cx.ath.matthew.cgi.testcgi cgi-$(CGIVER).jar
-libmatthew-java-$(MATTVER).tar.gz: Makefile cx cgi-java.c unix-java.c README
INSTALL COPYING changelog
+libmatthew-java-$(MATTVER).tar.gz: Makefile cx cgi-java.c unix-java.c README
INSTALL COPYING changelog unix-java.h cgi-java.h
mkdir -p libmatthew-java-$(MATTVER)
cp -a $^ libmatthew-java-$(MATTVER)
tar zcf $@ libmatthew-java-$(MATTVER)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libmatthew-java-0.8/cgi-java.h
new/libmatthew-java-0.8.1/cgi-java.h
--- old/libmatthew-java-0.8/cgi-java.h 1970-01-01 01:00:00.000000000 +0100
+++ new/libmatthew-java-0.8.1/cgi-java.h 2018-05-04 16:09:40.000000000
+0200
@@ -0,0 +1,37 @@
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+/* Header for class cx_ath_matthew_cgi_CGI */
+
+#ifndef _Included_cx_ath_matthew_cgi_CGI
+#define _Included_cx_ath_matthew_cgi_CGI
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * Class: cx_ath_matthew_cgi_CGI
+ * Method: getenv
+ * Signature: (Ljava/lang/String;)Ljava/lang/String;
+ */
+JNIEXPORT jstring JNICALL Java_cx_ath_matthew_cgi_CGI_getenv
+ (JNIEnv *, jobject, jstring);
+
+/*
+ * Class: cx_ath_matthew_cgi_CGI
+ * Method: getfullenv
+ * Signature: (Ljava/lang/Class;)[Ljava/lang/Object;
+ */
+JNIEXPORT jobjectArray JNICALL Java_cx_ath_matthew_cgi_CGI_getfullenv
+ (JNIEnv *, jobject, jclass);
+
+/*
+ * Class: cx_ath_matthew_cgi_CGI
+ * Method: setenv
+ * Signature: (Ljava/lang/String;Ljava/lang/String;)V
+ */
+JNIEXPORT void JNICALL Java_cx_ath_matthew_cgi_CGI_setenv
+ (JNIEnv *, jobject, jstring, jstring);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libmatthew-java-0.8/changelog
new/libmatthew-java-0.8.1/changelog
--- old/libmatthew-java-0.8/changelog 2011-01-23 18:08:52.000000000 +0100
+++ new/libmatthew-java-0.8.1/changelog 2018-05-05 22:56:51.000000000 +0200
@@ -1,3 +1,8 @@
+Version 0.8.1:
+
+ * Commit versions of jni headers rather than relying on javah to be in
new
+ * versions of openjdk
+
Version 0.8:
* Change to expat licence
Binary files old/libmatthew-java-0.8/cx/ath/matthew/debug/Debug.class and
new/libmatthew-java-0.8.1/cx/ath/matthew/debug/Debug.class differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libmatthew-java-0.8/cx/ath/matthew/debug/Debug.java
new/libmatthew-java-0.8.1/cx/ath/matthew/debug/Debug.java
--- old/libmatthew-java-0.8/cx/ath/matthew/debug/Debug.java 2011-06-28
10:26:21.000000000 +0200
+++ new/libmatthew-java-0.8.1/cx/ath/matthew/debug/Debug.java 2018-05-05
22:57:20.000000000 +0200
@@ -1,8 +1,40 @@
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+/* This header is separate from features.h so that the compiler can
+ include it implicitly at the start of every compilation. It must
+ not itself include <features.h> or any other header that includes
+ <features.h> because the implicit include comes before any feature
+ test macros that may be defined in a source file before it first
+ explicitly includes a system header. GCC knows the name of this
+ header in order to preinclude it. */
+/* glibc's intent is to support the IEC 559 math functionality, real
+ and complex. If the GCC (4.9 and later) predefined macros
+ specifying compiler intent are available, use them to determine
+ whether the overall intent is to support these features; otherwise,
+ presume an older compiler has intent to support these features and
+ define these macros by default. */
+/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
+ Unicode 6.0. */
+/* We do not support C11 <threads.h>. */
/*
* Java Debug Library
*
* Copyright (c) Matthew Johnson 2005
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
deal
* in the Software without restriction, including without limitation the rights
@@ -20,15 +52,12 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- *
+ *
* To Contact the author, please email [email protected]
*
*/
-
package cx.ath.matthew.debug;
-
import cx.ath.matthew.utils.Hexdump;
-
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
@@ -40,7 +69,6 @@
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
-
/**
Add debugging to your program, has support for large projects with multiple
classes and debug levels per class. Supports optional enabling of debug
@@ -185,7 +213,6 @@
}
return false;
}
-
/**
Output to the given Stream */
public static void setOutput(PrintStream p) throws IOException
@@ -198,7 +225,6 @@
{
debugout = new PrintStream(new FileOutputStream(filename, true));
}
-
/**
Output to the default debug.log */
public static void setOutput() throws IOException {
@@ -238,7 +264,6 @@
print(d);
}
}
-
/**
Log an Object
@param o The object doing the logging
@@ -293,7 +318,6 @@
print(loglevel, t);
}
}
-
/**
Log a Throwable
@param c The class doing the logging
@@ -337,7 +361,6 @@
}
}
}
-
/**
Log a byte array
@param loglevel The level to log at (DEBUG, WARN, etc)
@@ -455,7 +478,6 @@
}
}
}
-
/**
Log a Map
@param o The object doing the logging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libmatthew-java-0.8/unix-java.h
new/libmatthew-java-0.8.1/unix-java.h
--- old/libmatthew-java-0.8/unix-java.h 1970-01-01 01:00:00.000000000 +0100
+++ new/libmatthew-java-0.8.1/unix-java.h 2018-05-05 22:50:44.000000000
+0200
@@ -0,0 +1,162 @@
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+/* Header for class cx_ath_matthew_unix_UnixServerSocket */
+
+#ifndef _Included_cx_ath_matthew_unix_UnixServerSocket
+#define _Included_cx_ath_matthew_unix_UnixServerSocket
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * Class: cx_ath_matthew_unix_UnixServerSocket
+ * Method: native_bind
+ * Signature: (Ljava/lang/String;Z)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixServerSocket_native_1bind
+ (JNIEnv *, jobject, jstring, jboolean);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixServerSocket
+ * Method: native_close
+ * Signature: (I)V
+ */
+JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixServerSocket_native_1close
+ (JNIEnv *, jobject, jint);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixServerSocket
+ * Method: native_accept
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixServerSocket_native_1accept
+ (JNIEnv *, jobject, jint);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
+/* Header for class cx_ath_matthew_unix_UnixSocket */
+
+#ifndef _Included_cx_ath_matthew_unix_UnixSocket
+#define _Included_cx_ath_matthew_unix_UnixSocket
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_set_pass_cred
+ * Signature: (IZ)V
+ */
+JNIEXPORT void JNICALL
Java_cx_ath_matthew_unix_UnixSocket_native_1set_1pass_1cred
+ (JNIEnv *, jobject, jint, jboolean);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_connect
+ * Signature: (Ljava/lang/String;Z)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1connect
+ (JNIEnv *, jobject, jstring, jboolean);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_close
+ * Signature: (I)V
+ */
+JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1close
+ (JNIEnv *, jobject, jint);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_getPID
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1getPID
+ (JNIEnv *, jobject, jint);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_getUID
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1getUID
+ (JNIEnv *, jobject, jint);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_getGID
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1getGID
+ (JNIEnv *, jobject, jint);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_send_creds
+ * Signature: (IB)V
+ */
+JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1send_1creds
+ (JNIEnv *, jobject, jint, jbyte);
+
+/*
+ * Class: cx_ath_matthew_unix_UnixSocket
+ * Method: native_recv_creds
+ * Signature: (I[I)B
+ */
+JNIEXPORT jbyte JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1recv_1creds
+ (JNIEnv *, jobject, jint, jintArray);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
+/* Header for class cx_ath_matthew_unix_USInputStream */
+
+#ifndef _Included_cx_ath_matthew_unix_USInputStream
+#define _Included_cx_ath_matthew_unix_USInputStream
+#ifdef __cplusplus
+extern "C" {
+#endif
+#undef cx_ath_matthew_unix_USInputStream_MAX_SKIP_BUFFER_SIZE
+#define cx_ath_matthew_unix_USInputStream_MAX_SKIP_BUFFER_SIZE 2048L
+#undef cx_ath_matthew_unix_USInputStream_MSG_DONTWAIT
+#define cx_ath_matthew_unix_USInputStream_MSG_DONTWAIT 64L
+/*
+ * Class: cx_ath_matthew_unix_USInputStream
+ * Method: native_recv
+ * Signature: (I[BIIII)I
+ */
+JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_USInputStream_native_1recv
+ (JNIEnv *, jobject, jint, jbyteArray, jint, jint, jint, jint);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
+/* Header for class cx_ath_matthew_unix_USOutputStream */
+
+#ifndef _Included_cx_ath_matthew_unix_USOutputStream
+#define _Included_cx_ath_matthew_unix_USOutputStream
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * Class: cx_ath_matthew_unix_USOutputStream
+ * Method: native_send
+ * Signature: (I[BII)I
+ */
+JNIEXPORT jint JNICALL
Java_cx_ath_matthew_unix_USOutputStream_native_1send__I_3BII
+ (JNIEnv *, jobject, jint, jbyteArray, jint, jint);
+
+/*
+ * Class: cx_ath_matthew_unix_USOutputStream
+ * Method: native_send
+ * Signature: (I[[B)I
+ */
+JNIEXPORT jint JNICALL
Java_cx_ath_matthew_unix_USOutputStream_native_1send__I_3_3B
+ (JNIEnv *, jobject, jint, jobjectArray);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
++++++ reproducible-jar-mtime.patch ++++++
--- libmatthew-java-0.8.1/Makefile 2024-09-25 09:59:53.643278466 +0200
+++ libmatthew-java-0.8.1/Makefile 2024-09-25 10:14:37.565768216 +0200
@@ -59,9 +59,9 @@
rm -rf libmatthew-java-$(MATTVER)
cgi-$(CGIVER).jar: .classes
- (cd classes; $(JAR) cf ../$@ cx/ath/matthew/cgi/*class)
+ (cd classes; $(JAR) --date="$$(date -u -d
@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create
--file=../$@ cx/ath/matthew/cgi/*class)
io-$(IOVER).jar: .classes
- (cd classes; $(JAR) cf ../$@ cx/ath/matthew/io/*class)
+ (cd classes; $(JAR) --date="$$(date -u -d
@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create
--file=../$@ cx/ath/matthew/io/*class)
unix-$(UNIXVER).jar: .classes
#ifeq ($(DEBUG),enable)
# echo "Class-Path: $(JARDIR)/debug-$(DEBUG).jar" > Manifest
@@ -69,10 +69,10 @@
# echo "Class-Path: " > Manifest
#endif
echo > Manifest
- (cd classes; $(JAR) cfm ../$@ ../Manifest cx/ath/matthew/unix/*class)
+ (cd classes; $(JAR) --date="$$(date -u -d
@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create
--file=../$@ --manifest=../Manifest cx/ath/matthew/unix/*class)
hexdump-$(HEXVER).jar: .classes
- (cd classes; $(JAR) cf ../$@ cx/ath/matthew/utils/Hexdump.class)
+ (cd classes; $(JAR) --date="$$(date -u -d
@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create
--file=../$@ cx/ath/matthew/utils/Hexdump.class)
%.o: %.c %.h
$(CC) $(CFLAGS) $(CSTD) $(CSHAREFLAG) $(INCLUDES) -c -o $@ $<
@@ -92,12 +92,12 @@
make .enabledebug
#echo "Class-Path: $(JARDIR)/hexdump.jar" > Manifest
echo > Manifest
- (cd classes;jar cfm ../$@ ../Manifest cx/ath/matthew/debug/*.class)
+ (cd classes; $(JAR) --date="$$(date -u -d
@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create
--file=../$@ --manifest=../Manifest cx/ath/matthew/debug/*.class)
debug-disable-$(DEBUGVER).jar: cx/ath/matthew/debug/Debug.jpp
make .disabledebug
#echo "Class-Path: $(JARDIR)/hexdump.jar" > Manifest
echo > Manifest
- (cd classes;jar cfm ../$@ ../Manifest cx/ath/matthew/debug/*.class)
+ (cd classes; $(JAR) --date="$$(date -u -d
@$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" --create
--file=../$@ --manifest=../Manifest cx/ath/matthew/debug/*.class)
.enabledebug: cx/ath/matthew/debug/Debug.jpp
mkdir -p classes
cpp $(PPFLAGS) $(JPPFLAGS) -DDEBUGSETTING=true <
cx/ath/matthew/debug/Debug.jpp > cx/ath/matthew/debug/Debug.java