From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 2 09:50:02 2010 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 B432C1065672 for ; Fri, 2 Jul 2010 09:50:02 +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 736138FC13 for ; Fri, 2 Jul 2010 09:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o629o2nm044626 for ; Fri, 2 Jul 2010 09:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o629o2u5044625; Fri, 2 Jul 2010 09:50:02 GMT (envelope-from gnats) Resent-Date: Fri, 2 Jul 2010 09:50:02 GMT Resent-Message-Id: <201007020950.o629o2u5044625@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, Ashish SHUKLA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 373BF106566C for ; Fri, 2 Jul 2010 09:44:13 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BB3FA8FC15 for ; Fri, 2 Jul 2010 09:44:12 +0000 (UTC) Received: by fxm13 with SMTP id 13so2326125fxm.13 for ; Fri, 02 Jul 2010 02:44:10 -0700 (PDT) Received: by 10.223.112.84 with SMTP id v20mr370916fap.68.1278063849788; Fri, 02 Jul 2010 02:44:09 -0700 (PDT) Received: from chateau.d.if ([122.161.226.200]) by mx.google.com with ESMTPS id y4sm1066834fag.37.2010.07.02.02.44.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Jul 2010 02:44:08 -0700 (PDT) Received: by chateau.d.if (Postfix, from userid 1001) id B1AAA4AF16; Fri, 2 Jul 2010 15:13:59 +0530 (IST) Message-Id: <20100702094359.B1AAA4AF16@chateau.d.if> Date: Fri, 2 Jul 2010 15:13:59 +0530 (IST) From: Ashish SHUKLA Sender: Ashish SHUKLA To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/148310: [PATCH] devel/scons doesn't respect NO_INSTALL_MANPAGES X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ashish SHUKLA List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2010 09:50:02 -0000 >Number: 148310 >Category: ports >Synopsis: [PATCH] devel/scons doesn't respect NO_INSTALL_MANPAGES >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 02 09:50:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Ashish SHUKLA >Release: FreeBSD 8.0-RELEASE-p3 amd64 >Organization: The FreeBSD Project >Environment: System: FreeBSD chateau.d.if 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #4: Thu May 27 19:12:08 IST 2010 root@chateau.d.if:/usr/obj/usr/src/sys/CHATEAU amd64 >Description: When tried to install devel/scons with NOPORTDOCS and NO_INSTALL_MANPAGES defined, I noticed it has installed man pages and haven't recorded them in the pkg-plist. --------8<------------8<----------------- Creating bzip'd tar ball in '/tmp/packages/All/scons-1.3.0.tbz' Deleting scons-1.3.0 pkg_delete: file '/usr/local/lib/scons-1.3.0/scons-1.3.0-py2.6.egg-info' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) ================================================================ === Checking filesystem state list of extra files and directories in / (not present before this port was installed but present after it was deinstalled) 429333 1 -rw-r--r-- 1 root wheel 24768 Mar 24 02:14 usr/local/man/man1/scons-time.1 429331 1 -rw-r--r-- 1 root wheel 395900 Mar 24 02:14 usr/local/man/man1/scons.1 429332 1 -rw-r--r-- 1 root wheel 4711 Mar 24 02:14 usr/local/man/man1/sconsign.1 Deleting python26-2.6.5 --------8<------------8<----------------- The complete build log is available from the URL: http://people.freebsd.org/~ashish/logs/scons-1.3.0.log The attached diff fixes this issue and also removes an entry for the 'egg-info' file from the pkg-plist since its being implicitly recorded already. >How-To-Repeat: % mkdir /var/tmp/$(make -C /usr/ports/devel/scons -V PORTNAME) % sudo mtree -U -f $(make -C /usr/ports/devel/scons -V MTREE_FILE) -d -e -p /var/tmp/$(make -C /usr/ports/devel/scons -V PORTNAME) % sudo make -C /usr/ports/devel/scons -DNOPORTDOCS -DNO_INSTALL_MANPAGES install PREFIX=/var/tmp/$(make -C /usr/ports/devel/scons -V PORTNAME) % sudo make -C /usr/ports/devel/scons -DNOPORTDOCS -DNO_INSTALL_MANPAGES deinstall PREFIX=/var/tmp/$(make -C /usr/ports/devel/scons -V PORTNAME) % find /var/tmp/$(make -C /usr/ports/devel/scons -V PORTNAME) -type f >Fix: diff --git a/devel/scons/Makefile b/devel/scons/Makefile index 5c4bd70..4b333cd 100644 --- a/devel/scons/Makefile +++ b/devel/scons/Makefile @@ -25,4 +25,10 @@ PYDISTUTILS_EGGINFODIR= ${PREFIX}/lib/scons-${PORTVERSION} PLIST_SUB+= SCONS_VER=${PORTVERSION} -.include +.include + +.if defined (NO_INSTALL_MANPAGES) +PYDISTUTILS_INSTALLARGS+= --no-install-man +.endif + +.include diff --git a/devel/scons/pkg-plist b/devel/scons/pkg-plist index 2639982..20f7a6d 100644 --- a/devel/scons/pkg-plist +++ b/devel/scons/pkg-plist @@ -565,7 +565,6 @@ lib/scons-%%SCONS_VER%%/SCons/dblite.pyo lib/scons-%%SCONS_VER%%/SCons/exitfuncs.py lib/scons-%%SCONS_VER%%/SCons/exitfuncs.pyc lib/scons-%%SCONS_VER%%/SCons/exitfuncs.pyo -lib/scons-%%SCONS_VER%%/scons-%%SCONS_VER%%-py2.6.egg-info @dirrm lib/scons-%%SCONS_VER%%/SCons/compat @dirrm lib/scons-%%SCONS_VER%%/SCons/Variables @dirrm lib/scons-%%SCONS_VER%%/SCons/Tool/packaging >Release-Note: >Audit-Trail: >Unformatted: