opendjk-8 fails to extract
Mikhail T.
mi at aldan.algebra.com
Wed Nov 19 04:14:38 UTC 2014
Hello!
I wanted to build java/opendjk8, but it kept failing to extract: unzip
was complaining about "invalid archive".
That's probably because the port uses both .zip and .tar.gz files
-- and BOTH are fed to unzip. This breaks things -- at least, when
archivers/unzip is installed (and used) instead of the /usr/bin/unzip.
Instead of guessing that, the below patch changes the Makefile so that
tar(1) is used for both files instead. Our tar will eat anything today.
Yours,
-mi
Index: Makefile
===================================================================
--- Makefile (revision 372759)
+++ Makefile (working copy)
@@ -9,7 +9,7 @@
LOCAL/jkim:jdk,jtreg
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
DISTNAME= ${PORTNAME}-${JDK_MAJOR_VERSION}-src-b${DIST_BUILD_NUMBER}-03_mar_2014
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:jdk
+DISTFILES= ${DISTNAME}.zip:jdk
MAINTAINER= java at FreeBSD.org
COMMENT?= Java Development Kit ${JDK_MAJOR_VERSION}
@@ -26,7 +26,7 @@
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper \
${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
-USES= compiler:features dos2unix gmake iconv pkgconfig shebangfix zip
+USES= compiler:features dos2unix gmake iconv pkgconfig shebangfix
USE_AUTOTOOLS= autoconf
USE_XORG= x11 xext xi xrender xt xtst
More information about the freebsd-java
mailing list