Subject: pkg/31081: Support for BSD/OS 5.0 in pkgsrc
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 08/28/2005 01:11:00
>Number:         31081
>Category:       pkg
>Synopsis:       Add support for changed paths in BSD/OS 5.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 28 01:11:00 +0000 2005
>Originator:     T. M. Pederson
>Release:        BSD/OS 5.0
Plethora . Net
	System: BSD/OS hostname 5.0 Wind River Systems, Inc. BSD/OS 5.0 Kernel #0: Fri Jan 10 10:40:18 MST 2003     polk@hephaestus.DELOS.COM:/images/5.0-ISE/sys-obj-exported/bsp/i386/compile/GENERIC  i386
	pkgsrc: current(2005-08-27)
Architecture: i386
Machine: i386
	Paths to some utilities (notably patch and gzip) have changed in
	more recent versions of BSD/OS.
	Attempt to utilize pkgsrc on BSD/OS 5.0.
	Apply the following diff:
--- mk/tools/        Sat Aug 27 08:21:05 2005
+++ mk/tools/     Sat Aug 27 17:23:54 2005
@@ -25,9 +25,21 @@
 TOOLS_PLATFORM.file?=          /usr/bin/file
 TOOLS_PLATFORM.find?=          /usr/bin/find
 TOOLS_PLATFORM.grep?=          /bin/grep
+.if exists(/usr/bin/gunzip)
+TOOLS_PLATFORM.gunzip?=                /usr/bin/gunzip -f
+.elif exists(/usr/contrib/bin/gunzip)
 TOOLS_PLATFORM.gunzip?=                /usr/contrib/bin/gunzip -f
+.if exists(/usr/bin/gzcat)
+TOOLS_PLATFORM.gzcat?=         /usr/bin/gzcat
+.elif exists(/usr/contrib/bin/gzcat)
 TOOLS_PLATFORM.gzcat?=         /usr/contrib/bin/gzcat
+.if exists(/usr/bin/gzip)
+TOOLS_PLATFORM.gzip?=          /usr/bin/gzip -nf ${GZIP}
+.elif exists(/usr/contrib/bin/gzip)
 TOOLS_PLATFORM.gzip?=          /usr/contrib/bin/gzip -nf ${GZIP}
 TOOLS_PLATFORM.head?=          /usr/bin/head
 TOOLS_PLATFORM.hostname?=      /bin/hostname            /usr/bin/id
@@ -42,7 +54,11 @@
 TOOLS_PLATFORM.mtree?=         /usr/sbin/mtree
 TOOLS_PLATFORM.nice?=          /usr/bin/nice
 TOOLS_PLATFORM.nroff?=         /usr/bin/nroff
+.if exists(/usr/bin/patch)
+TOOLS_PLATFORM.patch?=         /usr/bin/patch
+.elif exists(/usr/contrib/bin/patch)
 TOOLS_PLATFORM.patch?=         /usr/contrib/bin/patch
 TOOLS_PLATFORM.pwd?=           /bin/pwd
 TOOLS_PLATFORM.rm?=            /bin/rm
 TOOLS_PLATFORM.rmdir?=         /bin/rmdir