Date: 5 Feb 1999 05:30:48 +0900 From: sada@FreeBSD.ORG To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/9913: make release would fail for lack of /etc/resolv.conf or $DISTFILES/ Message-ID: <19990204203048.2933.sada@rr.iij4u.or.jp>
index | next in thread | raw e-mail
>Number: 9913
>Category: misc
>Synopsis: make release would fail for lack of /etc/resolv.conf or $DISTFILES/
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 4 12:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: SADA Kenji
>Release: FreeBSD 4.0-current i386
>Organization:
Nagoya.Aichi.Japan
>Environment:
FreeBSD 4.0-current i386
>Description:
If you don't have /etc/resolv.conf nor $DISTFILES/,
``make release'' would fail.
This was pointed out by
YAMAMOTO Shigeru <shigeru@bremen.or.jp>.
>How-To-Repeat:
On a machine without /etc/resolv.conf nor /usr/ports/distfiles:
# cd /usr/src/release && make release
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/release/Makefile,v
retrieving revision 1.467
diff -u -r1.467 Makefile
--- Makefile 1999/02/01 18:08:07 1.467
+++ Makefile 1999/02/04 20:20:13
@@ -147,7 +147,9 @@
-mkdir -p ${CHROOTDIR}
cd ${.CURDIR}/../etc && ${MAKE} distrib-dirs DESTDIR=${CHROOTDIR}
cd ${.CURDIR}/../etc && ${MAKE} distribution DESTDIR=${CHROOTDIR}
- [ -f /etc/resolv.conf ] && cp -p /etc/resolv.conf ${CHROOTDIR}/etc
+ if [ -f /etc/resolv.conf ]; then \
+ cp -p /etc/resolv.conf ${CHROOTDIR}/etc; \
+ fi
cd ${.CURDIR}/.. && ${MAKE} installworld DESTDIR=${CHROOTDIR} NOMAN=1
mkdir ${CHROOTDIR}/${BOOTSTRAPDIR}
for i in ${BOOTSTRAPUTILS} ; do \
@@ -171,7 +173,9 @@
.endif
.if !defined(NODOC)
cd ${CHROOTDIR}/usr && rm -rf doc && cvs -R -d ${CVSROOT} co -P ${RELEASEDOCMODULE}
- [ -d ${DISTFILES}/ ] && cp -rp ${DISTFILES} ${CHROOTDIR}/usr/ports/distfiles
+ if [ -d ${DISTFILES}/ ]; then \
+ cp -rp ${DISTFILES} ${CHROOTDIR}/usr/ports/distfiles; \
+ fi
.endif
.endif
.if make(rerelease)
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990204203048.2933.sada>
