[Git][java-team/snappy-java][upstream] New upstream version 1.1.7.2
Emmanuel Bourg
gitlab at salsa.debian.org
Fri Oct 5 00:18:21 BST 2018
Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / snappy-java
Commits:
12ed654d by Emmanuel Bourg at 2018-10-04T23:14:07Z
New upstream version 1.1.7.2
- - - - -
5 changed files:
- Makefile
- Makefile.common
- build.sbt
- src/main/java/org/xerial/snappy/SnappyOutputStream.java
- version.sbt
Changes:
=====================================
Makefile
=====================================
@@ -106,8 +106,10 @@ $(SNAPPY_SRC): $(SNAPPY_GIT_UNPACKED)
# aarch64 can use big-endian optimzied code
ifeq ($(OS_ARCH),aarch64)
+ifeq ($(ENDIANESS),$(BIG_ENDIAN))
SNAPPY_CXX_OPTS:=-DSNAPPY_IS_BIG_ENDIAN
endif
+endif
$(SNAPPY_OUT)/%.o: $(SNAPPY_SRC_DIR)/%.cc
@mkdir -p $(@D)
=====================================
Makefile.common
=====================================
@@ -11,6 +11,8 @@ JAVA := "$$JAVA_HOME/bin/java"
JAVAC := "$$JAVA_HOME/bin/javac"
JAVAH := "$$JAVA_HOME/bin/javah"
+LITTLE_ENDIAN := "Little Endian"
+BIG_ENDIAN := "Big Endian"
OSINFO_CLASS := org.xerial.snappy.OSInfo
OSINFO_PROG := lib/org/xerial/snappy/OSInfo.class
@@ -24,6 +26,7 @@ OS_ARCH := $(shell $(JAVA) -cp lib $(OSINFO_CLASS) --arch)
LIB_FOLDER := $(shell $(JAVA) -cp lib $(OSINFO_CLASS))
IBM_JDK_LIB := lib/inc_ibm
+ENDIANESS=$(shell lscpu | grep "Byte Order" |cut -d ":" -f2)
# Windows uses different path separators
ifeq ($(OS_NAME),Windows)
sep := ;
=====================================
build.sbt
=====================================
@@ -109,10 +109,13 @@ libraryDependencies ++= Seq(
enablePlugins(SbtOsgi)
+osgiSettings
+
OsgiKeys.exportPackage := Seq("org.xerial.snappy", "org.xerial.snappy.buffer")
OsgiKeys.bundleSymbolicName := "org.xerial.snappy.snappy-java"
OsgiKeys.bundleActivator := Option("org.xerial.snappy.SnappyBundleActivator")
OsgiKeys.importPackage := Seq("""org.osgi.framework;version="[1.5,2)"""")
+OsgiKeys.requireCapability := """osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))""""
OsgiKeys.additionalHeaders := Map(
"Bundle-NativeCode" -> Seq(
@@ -128,7 +131,7 @@ OsgiKeys.additionalHeaders := Map(
"org/xerial/snappy/native/Linux/x86/libsnappyjava.so;osname=linux;processor=x86",
"org/xerial/snappy/native/Linux/aarch64/libsnappyjava.so;osname=linux;processor=aarch64",
"org/xerial/snappy/native/Linux/arm/libsnappyjava.so;osname=linux;processor=arm",
- "org/xerial/snappy/native/Linux/arm7/libsnappyjava.so;osname=linux;processor=arm_le",
+ "org/xerial/snappy/native/Linux/armv7/libsnappyjava.so;osname=linux;processor=arm_le",
"org/xerial/snappy/native/Linux/ppc64/libsnappyjava.so;osname=linux;processor=ppc64le",
"org/xerial/snappy/native/Linux/s390x/libsnappyjava.so;osname=linux;processor=s390x",
"org/xerial/snappy/native/AIX/ppc/libsnappyjava.a;osname=aix;processor=ppc",
=====================================
src/main/java/org/xerial/snappy/SnappyOutputStream.java
=====================================
@@ -41,6 +41,7 @@ import java.io.OutputStream;
* The output data format is:
* <ol>
* <li>snappy codec header defined in {@link SnappyCodec} (8 bytes)
+ * <li>codec version (4 bytes integer, at least 1) and compatible version (4 bytes integer)
* <li>compressed block 1 : a pair of (compressed data size [4 byte integer.
* Big-endian], compressed data...)
* <li>compressed block 2
=====================================
version.sbt
=====================================
@@ -1 +1 @@
-version in ThisBuild := "1.1.7.1"
+version in ThisBuild := "1.1.7.2"
View it on GitLab: https://salsa.debian.org/java-team/snappy-java/commit/12ed654d7af3d93a06950d75be68fc295c5b1e2b
--
View it on GitLab: https://salsa.debian.org/java-team/snappy-java/commit/12ed654d7af3d93a06950d75be68fc295c5b1e2b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181004/7c79d969/attachment.html>
More information about the pkg-java-commits
mailing list