NetBSD Problem Report #49044

From  Mon Jul 28 06:28:41 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id C612AA7E78
	for <>; Mon, 28 Jul 2014 06:28:41 +0000 (UTC)
Message-Id: <>
Date: Mon, 28 Jul 2014 06:28:39 +0000 (UTC)
Subject: iso-image cannot overwrite CDBUILDEXTRA files
X-Send-Pr-Version: www-1.0

>Number:         49044
>Category:       toolchain
>Synopsis: iso-image cannot overwrite CDBUILDEXTRA files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 28 06:30:00 +0000 2014
>Originator:     Tetsuya Isaki
>Release:        NetBSD-current
NetBSD XXXXXXXX 6.1.4_PATCH NetBSD 6.1.4_PATCH (XXXX) #0: Sat Jul 19 11:11:00 JST 2014  isaki@XXXXXXXX:/var/obj/6-1/amd64/obj/sys/arch/amd64/compile/XXXX amd64
(it is uname -a of build machine)
When I run release iso-image twice, both were
successful but second build's cp(1) cannot overwrite some files.

It is the build log of second one.
===> Successful make release
iso_image ===> distrib
iso_image ===> distrib/notes
iso_image ===> distrib/utils
iso_image ===> distrib/x68k
iso_image ===> distrib/x68k/cdroms
iso_image ===> distrib/x68k/cdroms/installcd
Copying /var/obj/current/release/x68k to /var/obj/current/x68k/obj/distrib/x68k/cdroms/installcd/cdrom/x68k ...
Copying /var/obj/current/x68k/dst/usr/mdec/boot to /var/obj/current/x68k/obj/distrib/x68k/cdroms/installcd/cdrom ...
cp: /var/obj/current/x68k/obj/distrib/x68k/cdroms/installcd/cdrom/boot: Permission denied
iso-image ===> etc

Here, DESTDIR/usr/mdec/boot is set to CDBUILDEXTRA in
distrib/x68k/cdroms/installcd/Makefile and its permission is 444.
But ${CP} without -f is used in distrib/common/Makefile.bootcd
line 194.
>How-To-Repeat: -m x68k release iso-image -m x68k release iso-image

(run twice without cleanup)
Replace ${CP} with ${CP} -f or
insert ${RM} $${release_destdir}/$${cde} before {$CP}
in distrib/common/Makefile.bootcd ?

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.