Date: Sun, 20 Dec 2009 07:57:34 GMT From: "Carlos A. M. dos Santos" <unixmania@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/141795: graphics/jasper: ensure that configure script has exec permission [PATCH] Message-ID: <200912200757.nBK7vYuq084310@www.freebsd.org> Resent-Message-ID: <200912200800.nBK80Ern085546@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 141795 >Category: ports >Synopsis: graphics/jasper: ensure that configure script has exec permission [PATCH] >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 20 08:00:14 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Carlos A. M. dos Santos >Release: 9.0-CURRENT >Organization: N.A. >Environment: FreeBSD avatar 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Mon Dec 7 03:06:31 UTC 2009 root@avatar:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I'm using FreeBSD 9.0-CURRENT, which comes with /usr/bin/unzip. So I added to /etc/make.conf a line containing UNZIP_CMD=/usr/bin/unzip All ports that have zip distfiles have bee working so far but jasper fails because after extraction the configure script does not have execution permission. >How-To-Repeat: On FreeBSD 9, Remove the unzip package, if installed, and add to /etc/make.conf a line containing UNZIP_CMD=/usr/bin/unzip then run cd /usr/ports/graphics/jasper make The build will fail because the configure script is not executable. >Fix: Apply the patch contained in the attachment. Patch attached with submission follows: diff -dur /usr/ports/graphics/jasper/Makefile graphics/jasper/Makefile --- /usr/ports/graphics/jasper/Makefile 2009-08-09 14:56:27.000000000 -0300 +++ graphics/jasper/Makefile 2009-12-20 05:40:52.000000000 -0200 @@ -7,7 +7,7 @@ PORTNAME= jasper PORTVERSION= 1.900.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= graphics MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ \ ${MASTER_SITE_IMAGEMAGICK} @@ -49,6 +49,11 @@ MAN1= imgcmp.1 imginfo.1 jasper.1 jiv.1 .endif +# Ensure exec permission. We extract from a Zip file and unzip(1) in +# FreeBSD 9.X is unable to do this for us. +pre-configure: + @${CHMOD} +x ${WRKSRC}/configure + post-install: .if !defined(NO_INSTALL_MANPAGES) @cd ${WRKSRC}/src/appl && make install-man >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912200757.nBK7vYuq084310>