Bug 185794 - [patch] archivers/snappy-java: install native library
Summary: [patch] archivers/snappy-java: install native library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 05:50 UTC by Henry Hu
Modified: 2014-02-01 13:10 UTC (History)
0 users

See Also:


Attachments
file.diff (848 bytes, patch)
2014-01-15 05:50 UTC, Henry Hu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Hu 2014-01-15 05:50:01 UTC
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.

Fix: Patch attached with submission follows:
How-To-Repeat: 1. Install archivers/snappy-java.
2. libsnappyjava.so is missing.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-15 05:50:09 UTC
Maintainer of archivers/snappy-java,

Please note that PR ports/185794 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/185794

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-15 05:50:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2014-01-31 16:38:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-02-01 13:01:31 UTC
Author: pawel
Date: Sat Feb  1 13:01:24 2014
New Revision: 342131
URL: http://svnweb.freebsd.org/changeset/ports/342131
QAT: https://qat.redports.org/buildarchive/r342131/

Log:
  - Install native library [1]
  - Support staging
  
  PR:		ports/185794 [1]
  Submitted by:	Henry Hu <henry.hu.sh@gmail.com>

Modified:
  head/archivers/snappy-java/Makefile

Modified: head/archivers/snappy-java/Makefile
==============================================================================
--- head/archivers/snappy-java/Makefile	Sat Feb  1 12:56:41 2014	(r342130)
+++ head/archivers/snappy-java/Makefile	Sat Feb  1 13:01:24 2014	(r342131)
@@ -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 \
@@ -31,13 +32,13 @@ GH_TAGNAME=	snappy-java-${PORTVERSION}
 GH_COMMIT=	487f82d
 USE_GITHUB=	yes
 
-NO_STAGE=	yes
 USE_JAVA=	yes
 JAVA_VERSION=	1.7
 USES=		gmake
+USE_LDCONFIG=	yes
 MAKE_ARGS+=	Default_CXX=${CXX}
 
-PLIST_FILES=	%%JAVAJARDIR%%/snappy-java.jar
+PLIST_FILES=	%%JAVAJARDIR%%/snappy-java.jar lib/libsnappyjava.so
 
 post-patch-script:
 	@${REINPLACE_CMD} -e 's|curl.*||g' \
@@ -54,6 +55,9 @@ do-build: pre-build
 	${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} && ${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/repository --offline test
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${PORTVERSION}.jar ${JAVAJARDIR}/snappy-java.jar
+	${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${PORTVERSION}.jar \
+		${STAGEDIR}${JAVAJARDIR}/snappy-java.jar
+	${INSTALL_LIB} ${WRKSRC}/target/snappy-${PORTVERSION:R}-Default/libsnappyjava.so \
+		${STAGEDIR}${LOCALBASE}/lib
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Pawel Pekala freebsd_committer freebsd_triage 2014-02-01 13:01:50 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!