pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31081: Support for BSD/OS 5.0 in pkgsrc



>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
>Organization:
Plethora . Net
>Environment:
        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@localhost:/images/5.0-ISE/sys-obj-exported/bsp/i386/compile/GENERIC
  i386
        pkgsrc: current(2005-08-27)
Architecture: i386
Machine: i386
>Description:
        Paths to some utilities (notably patch and gzip) have changed in
        more recent versions of BSD/OS.
>How-To-Repeat:
        Attempt to utilize pkgsrc on BSD/OS 5.0.
>Fix:
        Apply the following diff:
--- mk/tools/tools.BSDOS.mk.orig        Sat Aug 27 08:21:05 2005
+++ mk/tools/tools.BSDOS.mk     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
+.endif
+.if exists(/usr/bin/gzcat)
+TOOLS_PLATFORM.gzcat?=         /usr/bin/gzcat
+.elif exists(/usr/contrib/bin/gzcat)
 TOOLS_PLATFORM.gzcat?=         /usr/contrib/bin/gzcat
+.endif
+.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}
+.endif
 TOOLS_PLATFORM.head?=          /usr/bin/head
 TOOLS_PLATFORM.hostname?=      /bin/hostname
 TOOLS_PLATFORM.id?=            /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
+.endif
 TOOLS_PLATFORM.pwd?=           /bin/pwd
 TOOLS_PLATFORM.rm?=            /bin/rm
 TOOLS_PLATFORM.rmdir?=         /bin/rmdir




Home | Main Index | Thread Index | Old Index