Subject: pkg/4757: bsd.port.mk should look for fetch in /usr/local/bin
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 12/30/1997 20:49:12
>Number:         4757
>Category:       pkg
>Synopsis:       bsd.port.mk should look for fetch in /usr/local/bin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 30 11:50:01 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.owl.de/~tron/
>Release:        971229
>Environment:
System: NetBSD lyssa 1.3_BETA NetBSD 1.3_BETA (LYSSA) #0: Mon Dec 22 03:43:27 MET 1997 tron@lyssa:/src/src/sys/arch/i386/compile/LYSSA i386

>Description:
"bsd.port.mk" looks for a local command to fetch the distribution files
in "/usr/bin". But because this is a local command per definition it
should of course reside in "/usr/local/bin".

>How-To-Repeat:
Look into "/usr/share/mk/bsd.port.mk".

>Fix:
*** src/share/mk/bsd.port.mk.orig	Sun Dec 21 14:08:30 1997
--- src/share/mk/bsd.port.mk	Tue Dec 30 20:35:23 1997
*************** NetBSD_MAINTAINER=	agc@netbsd.org
*** 196,202 ****
  #				  (default: none).
  #
  # FETCH_CMD		  - Full path to ftp/http fetch command if not in $PATH
! #				  (default: /usr/bin/fetch).
  # FETCH_BEFORE_ARGS -
  #				  Arguments to ${FETCH_CMD} before filename (default: none).
  # FETCH_AFTER_ARGS -
--- 196,202 ----
  #				  (default: none).
  #
  # FETCH_CMD		  - Full path to ftp/http fetch command if not in $PATH
! #				  (default: /usr/local/bin/fetch).
  # FETCH_BEFORE_ARGS -
  #				  Arguments to ${FETCH_CMD} before filename (default: none).
  # FETCH_AFTER_ARGS -
*************** MAKE_FLAGS?=	-f
*** 462,469 ****
  MAKEFILE?=		Makefile
  MAKE_ENV+=		PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}"
  
! .if exists(/usr/bin/fetch)
! FETCH_CMD?=		/usr/bin/fetch
  .else
  FETCH_CMD?=		/usr/bin/ftp
  .endif
--- 462,469 ----
  MAKEFILE?=		Makefile
  MAKE_ENV+=		PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}"
  
! .if exists(/usr/local/bin/fetch)
! FETCH_CMD?=		/usr/local/bin/fetch
  .else
  FETCH_CMD?=		/usr/bin/ftp
  .endif
>Audit-Trail:
>Unformatted: