From barner@in.tum.de  Fri Aug 20 22:13:46 2004
Return-Path: <barner@in.tum.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9A1B816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 22:13:46 +0000 (GMT)
Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0AA5243D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 22:13:46 +0000 (GMT)
	(envelope-from barner@in.tum.de)
Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000)
	id 6C6DE3FF0; Sat, 21 Aug 2004 00:13:43 +0200 (CEST)
Message-Id: <20040820221343.6C6DE3FF0@zi025.glhnet.mhn.de>
Date: Sat, 21 Aug 2004 00:13:43 +0200 (CEST)
From: Simon Barner <barner@in.tum.de>
Reply-To: Simon Barner <barner@in.tum.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/valgrind & devel/valgrind-snapshot: detect FreeBSD 6
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70746
>Category:       ports
>Synopsis:       devel/valgrind & devel/valgrind-snapshot: detect FreeBSD 6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 20 22:20:15 GMT 2004
>Closed-Date:    Sat Aug 21 20:29:33 GMT 2004
>Last-Modified:  Sat Aug 21 20:29:33 GMT 2004
>Originator:     Simon Barner
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #0: Sat Apr 17 12:06:11 CEST 2004 toor@zi025.glhnet.mhn.de:/usr/src/sys/i386/compile/KISTE i386

>Description:

Valgrind nitpickingly checks the operating system version. Since FreeBSD
5 and 6 are almost identical, the following patch should be enough in
order to build valgrind on FreeBSD 6.

Since I don't have access to a FreeBSD 6 machine (yet), the following
patch is unfortunatelly untested.

>How-To-Repeat:

Try to build the devel/valgrind* ports on FreeBSD6

>Fix:

devel/valgrind:

--- configure.orig	Sat Aug 21 00:06:00 2004
+++ configure	Sat Aug 21 00:06:24 2004
@@ -4010,7 +4010,7 @@
 
         ;;
 
-     *freebsd5*)
+     *freebsd[56]*)
         echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 echo "${ECHO_T}ok (${host_os})" >&6
         VG_PLATFORM="x86-freebsd"



devel/valgrind-snapshot:

--- configure.orig	Sat Aug 21 00:03:33 2004
+++ configure	Sat Aug 21 00:03:13 2004
@@ -4020,7 +4020,7 @@
 
         ;;
 
-     *freebsd5*)
+     *freebsd[45]*)
         echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 echo "${ECHO_T}ok (${host_os})" >&6
         VG_PLATFORM="x86-freebsd"
>Release-Note:
>Audit-Trail:

From: Simon Barner <barner@in.tum.de>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/70746: devel/valgrind & devel/valgrind-snapshot: detect FreeBSD 6
Date: Sat, 21 Aug 2004 00:43:22 +0200

 > devel/valgrind-snapshot:
 > 
 > --- configure.orig	Sat Aug 21 00:03:33 2004
 > +++ configure	Sat Aug 21 00:03:13 2004
 > @@ -4020,7 +4020,7 @@
 >  
 >          ;;
 >  
 > -     *freebsd5*)
 > +     *freebsd[45]*)
 
 Argh! This can't be true... :(
 
 You know how this patch is supposed to look like, but for your convenience's
 sake:
 
 --- configure.orig	Sat Aug 21 00:03:33 2004
 +++ configure	Sat Aug 21 00:03:13 2004
 @@ -4020,7 +4020,7 @@
  
          ;;
  
 -     *freebsd5*)
 +     *freebsd[56]*)
          echo "$as_me:$LINENO: result: ok (${host_os})" >&5
  echo "${ECHO_T}ok (${host_os})" >&6
          VG_PLATFORM="x86-freebsd"
 >          echo "$as_me:$LINENO: result: ok (${host_os})" >&5
 >  echo "${ECHO_T}ok (${host_os})" >&6
 >          VG_PLATFORM="x86-freebsd"
 

From: Simon Barner <barner@in.tum.de>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/70746: devel/valgrind & devel/valgrind-snapshot: detect FreeBSD 6
Date: Sat, 21 Aug 2004 01:00:10 +0200

 Sleeeep! Sorry for the noise. :((
 
 --- configure.orig	Sat Aug 21 00:03:33 2004
 +++ configure	Sat Aug 21 00:03:13 2004
 @@ -4020,7 +4020,7 @@
  
          ;;
  
 -     *freebsd5*)
 +     *freebsd[56]*)
          echo "$as_me:$LINENO: result: ok (${host_os})" >&5
  echo "${ECHO_T}ok (${host_os})" >&6
          VG_PLATFORM="x86-freebsd"
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sat Aug 21 20:29:26 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70746 
>Unformatted:
