Bug 70746 - devel/valgrind & devel/valgrind-snapshot: detect FreeBSD 6
Summary: devel/valgrind & devel/valgrind-snapshot: detect FreeBSD 6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 23:20 UTC by Simon Barner
Modified: 2004-08-21 21:29 UTC (History)
0 users

See Also:


Attachments
file.diff (291 bytes, patch)
2004-08-20 23:20 UTC, Simon Barner
no flags Details | Diff
file.diff (291 bytes, patch)
2004-08-20 23:20 UTC, Simon Barner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Barner 2004-08-20 23:20:15 UTC
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.

Fix: devel/valgrind:

devel/valgrind-snapshot:
How-To-Repeat: 
Try to build the devel/valgrind* ports on FreeBSD6
Comment 1 Simon Barner 2004-08-20 23:43:22 UTC
> 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"
Comment 2 Simon Barner 2004-08-21 00:00:10 UTC
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"
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-21 21:29:26 UTC
State Changed
From-To: open->closed

Committed, thanks!