Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2008 23:32:09 +0200
From:      nick@anywi.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/123240: rerunning nanobsd.inc.sh fails because of existing directory
Message-ID:  <1209504729.211268.61853.nullmailer@van-laarhoven.org>
Resent-Message-ID: <200804292150.m3TLo527047449@freefall.freebsd.org>

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

>Number:         123240
>Category:       misc
>Synopsis:       rerunning nanobsd.inc.sh fails because of existing directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 29 21:50:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hibma
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
AnyWi Technologies
>Environment:
System: FreeBSD hilde.van-laarhoven.org 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Apr 16 10:26:44 CEST 2008 root@hilde.van-laarhoven.org:/usr/src/sys/i386/compile/HILDE i386


>Description:
## configure nanobsd setup
### log: /usr/obj/nanobsd.VideoConnection/_.dl
# spent 4 seconds
Img Bld: FAILED
nick@hilde:~/AnyWi/demos/VideoConnection % tail /usr/obj/nanobsd.VideoConnection/_.dl
mkdir: etc/local: File exists
>How-To-Repeat:
I don't know how to repeat it in the plain nanobsd.inc.sh case.
>Fix:

Index: nanobsd.sh
===================================================================
RCS file: /home/ncvs/src/tools/tools/nanobsd/nanobsd.sh,v
retrieving revision 1.28
diff -w -u -r1.28 nanobsd.sh
--- nanobsd.sh  26 Aug 2007 14:57:08 -0000      1.28
+++ nanobsd.sh  29 Apr 2008 21:28:04 -0000
@@ -244,7 +244,7 @@
        # have hardcoded paths under ${prefix}/etc are not tweakable.
        if [ -d usr/local/etc ] ; then
                (
-               mkdir etc/local
+               mkdir -p etc/local
                cd usr/local/etc
                find . -print | cpio -dumpl ../../../etc/local
                cd ..
>Release-Note:
>Audit-Trail:
>Unformatted:



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