svn commit: r347857 - head/mail/thunderbird-dictionaries

Alex Kozlov spam at rm-rf.kiev.ua
Tue Mar 11 13:34:46 UTC 2014


On Tue, Mar 11, 2014 at 10:10:43AM +0100, Mathieu Arnold wrote:
> +--On 11 mars 2014 09:00:00 +0000 Alexey Dokuchaev <danfe at FreeBSD.org>
> wrote:
> | The way it's done now generates lots of needless mail traffic and repo
> | churn.  It would also be nice if you could provide some details in the
> | commit logs WRT what's exactly is/was broken.  Thank you,
> 
> Well, what was broken is simple, libarchive can't process the zip file from
> the distfiles, and the port needs to use the unzip command.
I think that in some (many?) cases problem is not in libarchive, but is in
the difference between tar and unzip. E.g for this port:

Index: mail/thunderbird-dictionaries/Makefile
@@ -15,7 +15,7 @@
 
 RUN_DEPENDS=	thunderbird>=6.0:${PORTSDIR}/mail/thunderbird
 
-USES=		zip:infozip
+USES=		zip
 NO_BUILD=	yes
 WRKSRC=		${WRKDIR}/dictionaries
 
@@ -58,7 +58,8 @@
 	@${MKDIR} ${WRKSRC}
 .for f in ${ALLDICTS}
 .if  ${PORT_OPTIONS:M${f}}
-	@${UNZIP_CMD} -q ${DISTDIR}/${DIST_SUBDIR}/${${f}_FILE} -d ${WRKSRC}/${${f}_FILE}
+	@${MKDIR} ${WRKSRC}/${${f}_FILE}
+	@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${${f}_FILE} -C ${WRKSRC}/${${f}_FILE}
 .endif
 .endfor
 

-- 
Alex


More information about the svn-ports-head mailing list