ports/64638: [PATCH] 'make makesum' broken if distinfo contains SIZE

Dag-Erling Smørgrav des at des.no
Tue Mar 23 23:30:13 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list