tech-pkg archive

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

Re: Regression in dist fetching on Darwin



On Wed, May 17, 2023 at 01:07:47PM -0500, Jason Bacon wrote:
> I just updated my pkgsrc tree and now get this error when trying to
> build any package:
> 
> => Bootstrap dependency digest>=20211023: found digest-20220214
> => Fetching APE-3.5.3.132-8dd3e7898c86d89227beb3d26c9c1172102c1a83.tar.gz
> => Total size: 193348 bytes
> env: /usr/bin/ftp: No such file or directory
> fetch: Unable to fetch expected file
> APE-3.5.3.132-8dd3e7898c86d89227beb3d26c9c11
> 
> It was working fine this morning.  I have not touched my mk.conf or
> anything else.
> 
> Any ideas?

I changed the default fetch tool today.

You might need to re-bootstrap.

I thought that on Darwin you should use /usr/bin/curl by default
though, why is that not used?
 Thomas
--- Begin Message ---
Module Name:	pkgsrc
Committed By:	wiz
Date:		Wed May 17 09:44:11 UTC 2023

Modified Files:
	pkgsrc/mk: bsd.prefs.mk

Log Message:
mk: switch default distfile download backend from ftp to fetch

if no native tool is available, net/fetch will now be used instead of
net/tnftp

As discussed on pkgsrc-users


To generate a diff of this commit:
cvs rdiff -u -r1.429 -r1.430 pkgsrc/mk/bsd.prefs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/bsd.prefs.mk
diff -u pkgsrc/mk/bsd.prefs.mk:1.429 pkgsrc/mk/bsd.prefs.mk:1.430
--- pkgsrc/mk/bsd.prefs.mk:1.429	Wed Nov 23 11:59:08 2022
+++ pkgsrc/mk/bsd.prefs.mk	Wed May 17 09:44:11 2023
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.429 2022/11/23 11:59:08 jperkin Exp $
+# $NetBSD: bsd.prefs.mk,v 1.430 2023/05/17 09:44:11 wiz Exp $
 #
 # This file includes the mk.conf file, which contains the user settings.
 #
@@ -701,14 +701,14 @@ USE_TOOLS+=	awk:pkgsrc cut:pkgsrc echo:p
 .include "${_PKGSRC_TOPDIR}/mk/tools/defaults.mk"
 
 .if ${FETCH_USING} == "auto"
-.  if defined(TOOLS_PLATFORM.fetch)
-FETCH_USING=	fetch
+.  if defined(TOOLS_PLATFORM.ftp)
+FETCH_USING=	ftp
 .  elif defined(TOOLS_PLATFORM.curl)
 FETCH_USING=	curl
 .  elif defined(TOOLS_PLATFORM.wget)
 FETCH_USING=	wget
 .  else
-FETCH_USING=	ftp
+FETCH_USING=	fetch
 .  endif
 .endif
 


--- End Message ---


Home | Main Index | Thread Index | Old Index