Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2004 00:23:37 +0100 (CET)
From:      Dag-Erling Smørgrav <des@des.no>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:    ports/64638: [PATCH] 'make makesum' broken if distinfo contains SIZE
Message-ID:  <20040323232337.74D7D33C6C@dwp.des.no>
Resent-Message-ID: <200403232330.i2NNUDKk082451@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64638
>Category:       ports
>Synopsis:       [PATCH] 'make makesum' broken if distinfo contains SIZE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 23 15:30:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dag-Erling Smørgrav
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dwp.des.no 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Thu Mar 18 00:18:28 CET 2004 des@dwp.des.no:/usr/obj/usr/src/sys/dwp_smp i386

ports-current

>Description:

'make makesum' refuses to fetch a new or updated distfile if it is already
listed in distinfo with an incorrect size.

>How-To-Repeat:

Run 'make makesum' for a port whose distfile has been rerolled.

>Fix:

Apply the attached patch.

--- ports-makesum.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -r1.484 bsd.port.mk
--- bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ bsd.port.mk	23 Mar 2004 22:14:40 -0000
@@ -4201,7 +4201,8 @@
 
 .if !target(makesum)
 makesum:
-	@cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} fetch NO_CHECKSUM=yes
+	@cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} fetch DISABLE_SIZE=yes \
+		NO_CHECKSUM=yes
 	@if [ -f ${MD5_FILE} ]; then ${CAT} /dev/null > ${MD5_FILE}; fi
 	@(cd ${DISTDIR}; \
 	 for file in ${_CKSUMFILES}; do \
--- ports-makesum.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323232337.74D7D33C6C>