Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Mar 2012 18:44:47 +0100 (CET)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        itetcu@FreeBSD.org
Subject:   ports/165937: [patch] port ports-mgmt/tinderbox fix MD5_FILE -> DISTINFO_FILE, MD5 -> SHA256
Message-ID:  <20120311174447.626DD20838@p578be941.dip0.t-ipconnect.de>
Resent-Message-ID: <201203111750.q2BHo9Ga070765@freefall.freebsd.org>

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

>Number:         165937
>Category:       ports
>Synopsis:       [patch] port ports-mgmt/tinderbox fix MD5_FILE -> DISTINFO_FILE, MD5 -> SHA256
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 11 17:50:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Olli Hauer
>Release:        
>Organization:
>Environment:


>Description:
MD5_FILE and MD5 checksum is past, update to use DISTINFO_FILE and SHA25

Fixed already in HEAD.
http://marcuscom.com/pipermail/tinderbox-list/2012-March/002547.html


>How-To-Repeat:
>Fix:


--- patch_tinderbox.txt begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/ports-mgmt/tinderbox/Makefile,v
retrieving revision 1.73
diff -u -r1.73 Makefile
--- Makefile	14 Jan 2012 16:16:08 -0000	1.73
+++ Makefile	11 Mar 2012 17:34:10 -0000
@@ -6,6 +6,7 @@
 
 PORTNAME=	tinderbox
 PORTVERSION=	3.4.1
+PORTREVISION=	1
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	http://tinderbox.marcuscom.com/ \
 		http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/
Index: files/patch-lib__tc_command.sh
===================================================================
RCS file: files/patch-lib__tc_command.sh
diff -N files/patch-lib__tc_command.sh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-lib__tc_command.sh	11 Mar 2012 17:34:10 -0000
@@ -0,0 +1,14 @@
+--- ./lib/tc_command.sh.orig	2012-03-11 18:29:27.000000000 +0100
++++ ./lib/tc_command.sh	2012-03-11 18:30:06.000000000 +0100
+@@ -2299,9 +2299,9 @@
+ 		    oldcwd=${PWD}
+ 		    path=$(tinderLoc portstree ${portstree})
+ 		    cd "${path}/ports/${port}"
+-		    distinfo=$(env PORTSDIR="${path}/ports" make -V MD5_FILE)
++		    distinfo=$(env PORTSDIR="${path}/ports" make -V DISTINFO_FILE)
+ 		    if [ -f "${distinfo}" ]; then
+-			for df in $(grep '^MD5' ${distinfo} | awk -F '[\(\)]' '{print $2}'); do
++			for df in $(grep '^SHA256' ${distinfo} | awk -F '[\(\)]' '{print $2}'); do
+ 			    if ! grep -q "^${df}\$" ${disttmp}; then
+ 				echo ${df} >> ${disttmp}
+ 			    fi
--- patch_tinderbox.txt ends here ---


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



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