ports/185794: [patch] archivers/snappy-java: install native library
Henry Hu
henry.hu.sh at gmail.com
Wed Jan 15 05:50:02 UTC 2014
>Number: 185794
>Category: ports
>Synopsis: [patch] archivers/snappy-java: install native library
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 15 05:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Henry Hu
>Release: FreeBSD 11-CURRENT
>Organization:
Columbia University
>Environment:
FreeBSD pepsi 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r260031M: Sun Jan 5 18:25:51 EST 2014 root at pepsi:/usr/obj/usr/src/sys/MYKERNEL amd64
>Description:
archivers/snappy-java does not install native library now.
When using the experimental intellij port(PR ports/177300), it failed to load the libsnappyjava.so which should come from this port.
This file is built by this port. It's just not installed.
>How-To-Repeat:
1. Install archivers/snappy-java.
2. libsnappyjava.so is missing.
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (çæ¬ 339705)
+++ Makefile (å·¥ä½å¯æ¬)
@@ -7,6 +7,7 @@
PORTNAME= snappy
PORTVERSION= 1.0.4.1
+PORTREVISION= 1
CATEGORIES= archivers java
MASTER_SITES= GITHUB:source1 \
http://snappy.googlecode.com/files/:source2 \
@@ -37,7 +38,7 @@
USES= gmake
MAKE_ARGS+= Default_CXX=${CXX}
-PLIST_FILES= %%JAVAJARDIR%%/snappy-java.jar
+PLIST_FILES= %%JAVAJARDIR%%/snappy-java.jar %%LOCALBASE%%/lib/libsnappyjava.so
post-patch-script:
@${REINPLACE_CMD} -e 's|curl.*||g' \
@@ -55,5 +56,6 @@
do-install:
${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${PORTVERSION}.jar ${JAVAJARDIR}/snappy-java.jar
+ ${INSTALL_LIB} ${WRKSRC}/target/snappy-${PORTVERSION:R}-Default/libsnappyjava.so ${LOCALBASE}/lib/libsnappyjava.so
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list