Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2014 05:48:58 GMT
From:      Henry Hu <henry.hu.sh@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185794: [patch] archivers/snappy-java: install native library
Message-ID:  <201401150548.s0F5mwN1012644@oldred.freebsd.org>
Resent-Message-ID: <201401150550.s0F5o2tR038362@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401150548.s0F5mwN1012644>