From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 19 15:30:18 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA2AB16A4CE for ; Fri, 19 Mar 2004 15:30:18 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 888DF43D41 for ; Fri, 19 Mar 2004 15:30:18 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2JNUIbv058095 for ; Fri, 19 Mar 2004 15:30:18 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2JNUIOs058094; Fri, 19 Mar 2004 15:30:18 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 19 Mar 2004 15:30:18 -0800 (PST) Resent-Message-Id: <200403192330.i2JNUIOs058094@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, Tim Bishop Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B9EE16A4CE for ; Fri, 19 Mar 2004 15:22:32 -0800 (PST) Received: from greendale.ukc.ac.uk (greendale.ukc.ac.uk [129.12.21.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5276B43D1D for ; Fri, 19 Mar 2004 15:22:31 -0800 (PST) (envelope-from t.d.bishop@kent.ac.uk) Received: from pendennis.ukc.ac.uk ([129.12.3.232]) by greendale.ukc.ac.uk with esmtp (Exim 4.22) id 1B4TJl-0004Ys-V6; Fri, 19 Mar 2004 23:22:21 +0000 Received: from tdb by pendennis.ukc.ac.uk with local (Exim 4.30; FreeBSD) id 1B4TJl-0001Ba-Qs; Fri, 19 Mar 2004 23:22:21 +0000 Message-Id: Date: Fri, 19 Mar 2004 23:22:21 +0000 From: Tim Bishop Sender: "T.D.Bishop" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: tim@bishnet.net Subject: ports/64485: Problem with bsd.port.mk and no files to checksum X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tim Bishop List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 23:30:18 -0000 >Number: 64485 >Category: ports >Synopsis: Problem with bsd.port.mk and no files to checksum >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 19 15:30:18 PST 2004 >Closed-Date: >Last-Modified: >Originator: Tim Bishop >Release: FreeBSD 5.2.1-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD pendennis.ukc.ac.uk 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #1: Thu Mar 4 00:16:43 GMT 2004 tdb@pendennis.ukc.ac.uk:/usr/obj/usr/src/sys/PENDENNIS i386 >Description: There seems to be a problem with bsd.port.mk when there are no files to checksum and DIST_SUBDIR is being used. Take security/f-prot-sig as an example port. It has these lines in it's Makefile: DISTFILES= fp-def.zip macrdef2.zip DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} IGNOREFILES= ${DISTFILES} And in it's distinfo: MD5 (f-prot-sig-20040318/fp-def.zip) = IGNORE MD5 (f-prot-sig-20040318/macrdef2.zip) = IGNORE When trying to run the checksum target the following happens: >> No checksum recorded for f-prot-sig-20040318/. This appears to be a problem with line 2541 of bsd.port.mk (revision 1.484): _CKSUMFILES?= ${CKSUMFILES:S/^/${DIST_SUBDIR}\//} This happens when DIST_SUBDIR is set. CKSUMFILES, in this case, is empty which results in _CKSUMFILES being set to ${DIST_SUBDIR}/. The checksum target then tries to find this "file" in distinfo, and fails. >How-To-Repeat: Try the checksum target on security/f-prot-sig. >Fix: Unsure. I guess that line needs to be modified so _CKSUMFILES remains empty if CKSUMFILES is empty (which fixes this problem). I had a dabble, but couldn't fix it myself. >Release-Note: >Audit-Trail: >Unformatted: