Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2000 22:25:41 +0200 (CEST)
From:      Johan Karlsson <k@numeri.campus.luth.se>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/20326: [PATCH] installkernel fails if DESTDIR is empty
Message-ID:  <200007312025.WAA04304@numeri.campus.luth.se>

next in thread | raw e-mail | index | archive | help

>Number:         20326
>Category:       misc
>Synopsis:       [PATCH] installkernel fails if DESTDIR is empty
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 31 13:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Johan Karlsson
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
>Environment:

src/Makefile.inc1:
     $FreeBSD: src/Makefile.inc1,v 1.163 2000/07/23 21:30:35 marcel Exp $

>Description:

	When building/installing world and a kernel by:

	# make buildworld
	# make buildkernel
	# make DESTDIR=foo installkernel
	# make DESTDIR=foo installworld
	
	the installkernel will fail if DESTDIR is an empty directory.

	Since this is the recomended way by src/UPDATING one would 
	expect this to work.

>How-To-Repeat:

	# make buildworld
	# make buildkernel
	# make DESTDIR=path_to_empty_dir installkernel

>Fix:
Index: Makefile.inc1
===================================================================
RCS file: /host/queeg.ludd/FreeBSD-mirror/ncvs/src/Makefile.inc1,v
retrieving revision 1.163
diff -u -r1.163 Makefile.inc1
--- Makefile.inc1	2000/07/23 21:30:35	1.163
+++ Makefile.inc1	2000/07/31 18:55:06
@@ -415,6 +415,9 @@
 # Install the kernel defined by INSTALLKERNEL
 #
 installkernel:
+	cd ${.CURDIR}; \
+		${CROSSENV} MACHINE=${MACHINE} \
+		    ${MAKE} -f Makefile.inc1 hierarchy
 	cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
 		${CROSSENV} MACHINE=${MACHINE} KERNEL=kernel ${MAKE} install
 



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007312025.WAA04304>