Bläddra i källkod

fix extraction problems

Waldemar Brodkorb 13 år sedan
förälder
incheckning
c994348c75

+ 4 - 0
mk/buildhlp.mk

@@ -47,7 +47,11 @@ ${WRKDIST}/.extract_done: ${_CHECKSUM_COOKIE}
 ifeq (${_CHECKSUM_COOKIE},)
 	rm -rf ${WRKDIST} ${WRKSRC} ${WRKBUILD}
 endif
+ifeq ($(EXTRACT_OVERRIDE),1)
+	${MAKE} do-extract
+else	
 	${EXTRACT_CMD}
+endif
 	@${MAKE} post-extract $(MAKE_TRACE)
 	touch $@
 

+ 4 - 3
package/openjdk/Makefile

@@ -30,13 +30,15 @@ ICEDTEA_VERSION:=	1.10
 XALAN_NAME=		xalan-j
 XALAN_VERSION=		2_7_0
 
+# override generic extraction
+EXTRACT_OVERRIDE:=	1
 DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz \
 			$(ICEDTEA_NAME)-$(ICEDTEA_VERSION).tar.gz \
 			jaxp144_01.zip \
 			jdk6-jaf-b20.zip \
 			jdk6-jaxws-b20.zip \
 			${XALAN_NAME}_${XALAN_VERSION}-bin.tar.gz
-NO_DISTFILES:=		1
+
 WRKDIST=		${WRKDIR}
 WRKSRC=			${WRKDIST}/${ICEDTEA_NAME}-${ICEDTEA_VERSION}
 
@@ -86,8 +88,7 @@ MAKE_ENV+=		${OPENJDK_BUILD_ENV}
 
 do-extract:
 	cd ${WRKDIST}; mkdir $(PKG_NAME)-$(PKG_VERSION) ; \
-		tar xzf $(TOPDIR)/dl/$(PKG_NAME)-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz \
-		-C $(PKG_NAME)-$(PKG_VERSION)
+		tar xzf $(TOPDIR)/dl/$(PKG_NAME)-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz -C $(PKG_NAME)-$(PKG_VERSION)
 	cd $(WRKDIST); tar xzf $(TOPDIR)/dl/$(ICEDTEA_NAME)-$(ICEDTEA_VERSION).tar.gz
 	cd ${WRKDIST}; tar xzf ${TOPDIR}/dl/${XALAN_NAME}_${XALAN_VERSION}-bin.tar.gz
 	mkdir -p ${WRKBUILD}/drops

+ 1 - 1
package/openjdk/patches/patch-icedtea6-1_10_Makefile_in

@@ -27,10 +27,10 @@
 -	  $(GCJ) $(IT_CFLAGS) -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \
 -	    --main=org.eclipse.jdt.internal.compiler.batch.Main ${ECJ_JAR} ; \
 -	fi ; \
++	mkdir -p stamps ; \
 +	if test -n "${ADK_ECJ}" && test -x "${ADK_ECJ}"; then \
 +		ln -s "${ADK_ECJ}" native-ecj; \
 +	else \
-+		mkdir -p stamps ; \
 +		if test "x$(GCJ)" != "xno"; then \
 +		  $(GCJ) $(IT_CFLAGS) -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \
 +		    --main=org.eclipse.jdt.internal.compiler.batch.Main ${ECJ_JAR} ; \