From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 20 08:00:15 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB58B106566B for ; Sun, 20 Dec 2009 08:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C4AFC8FC19 for ; Sun, 20 Dec 2009 08:00:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBK80EsF085547 for ; Sun, 20 Dec 2009 08:00:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBK80Ern085546; Sun, 20 Dec 2009 08:00:14 GMT (envelope-from gnats) Resent-Date: Sun, 20 Dec 2009 08:00:14 GMT Resent-Message-Id: <200912200800.nBK80Ern085546@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Carlos A. M. dos Santos" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C9F2106566B for ; Sun, 20 Dec 2009 07:57:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5B0438FC0A for ; Sun, 20 Dec 2009 07:57:35 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBK7vZvu084334 for ; Sun, 20 Dec 2009 07:57:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBK7vYuq084310; Sun, 20 Dec 2009 07:57:34 GMT (envelope-from nobody) Message-Id: <200912200757.nBK7vYuq084310@www.freebsd.org> Date: Sun, 20 Dec 2009 07:57:34 GMT From: "Carlos A. M. dos Santos" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/141795: graphics/jasper: ensure that configure script has exec permission [PATCH] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 08:00:16 -0000 >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: