pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/fetch If DISTDIR points to a non-existing location ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e1691ec6b490
branches:  trunk
changeset: 533003:e1691ec6b490
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Sep 06 20:54:53 2007 +0000

description:
If DISTDIR points to a non-existing location and a package has neither
PATCHFILES nor DISTFILES, make fetch would complain about an unbuildable
dependency. Fix this by explicitly checking that _ALLFILES is not empty.
Reported by Sean Boudreau.

diffstat:

 mk/fetch/fetch.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 7a967699858a -r e1691ec6b490 mk/fetch/fetch.mk
--- a/mk/fetch/fetch.mk Thu Sep 06 20:25:21 2007 +0000
+++ b/mk/fetch/fetch.mk Thu Sep 06 20:54:53 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: fetch.mk,v 1.29 2007/08/14 14:19:19 joerg Exp $
+# $NetBSD: fetch.mk,v 1.30 2007/09/06 20:54:53 joerg Exp $
 
 _MASTER_SITE_BACKUP=   ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
 _MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -113,8 +113,13 @@
 .PHONY: pre-fetch do-fetch post-fetch
 
 .if !target(do-fetch)
+.  if !empty(_ALLFILES)
 do-fetch: ${_ALLFILES:S/^/${DISTDIR}\//}
        @${DO_NADA}
+.  else
+do-fetch:
+       @${DO_NADA}
+.  endif
 .endif
 
 .if !target(pre-fetch)



Home | Main Index | Thread Index | Old Index