I have a netbsd-current source tree checked out with CVSREAD=t, so all my source files are 444. Building again fails: --- image_md_pre --- mkdir -p cdrom/libexec/dhcpcd-hooks cp /n0/gdt/NetBSD-current/src/distrib/i386/cdroms/bootcd-com/../../../common/10-resolv.conf cdrom/libexec/dhcpcd-hooks cp: cdrom/libexec/dhcpcd-hooks/10-resolv.conf: Permission denied *** [image_md_pre] Error code 1 nbmake: stopped in /n0/gdt/NetBSD-current/src/distrib/i386/cdroms/bootcd-com because the 10-resolv.conf file is mode 444. src/distrib/i386/cdroms/Makefile.cdrom uses ${CP} rather than some form of ${INSTALL}, and apparently ${CP} doesn't have -f, and doesn't force the mode. This is probably not right, but seems to get me past my error Index: distrib/i386/cdroms/Makefile.cdrom =================================================================== RCS file: /cvsroot/src/distrib/i386/cdroms/Makefile.cdrom,v retrieving revision 1.21 diff -u -p -r1.21 Makefile.cdrom --- distrib/i386/cdroms/Makefile.cdrom 2 Aug 2010 10:03:12 -0000 1.21 +++ distrib/i386/cdroms/Makefile.cdrom 26 Oct 2010 23:35:49 -0000 @@ -56,15 +56,15 @@ CDRUNTIME+= ./usr/share/locale image_md_pre: ${MKDIR} cdrom/libexec/dhcpcd-hooks - ${CP} ${.CURDIR}/../../../common/10-resolv.conf cdrom/libexec/dhcpcd-hooks - ${CP} ${.CURDIR}/../../../common/99-print-sysinst cdrom/libexec/dhcpcd-hooks + ${CP} -f ${.CURDIR}/../../../common/10-resolv.conf cdrom/libexec/dhcpcd-hooks + ${CP} -f ${.CURDIR}/../../../common/99-print-sysinst cdrom/libexec/dhcpcd-hooks ${MKDIR} cdrom/etc ${HOST_LN} -fs /tmp/gettytab cdrom/etc/gettytab ${INSTALL} ${COPY} ${.CURDIR}/../etc.ttys cdrom/etc/ttys ${INSTALL} ${COPY} ${.CURDIR}/../etc.rc cdrom/etc/rc ${INSTALL} ${COPY} -m 0555 ${.CURDIR}/../install.sh cdrom/install.sh ${MKDIR} cdrom/mnt2 cdrom/targetroot - ${CP} ${SYSINSTDIR}/sysinst cdrom + ${CP} -f ${SYSINSTDIR}/sysinst cdrom ${CHMOD} ugo+rx cdrom/sysinst - ${CP} ${SYSINSTDIR}/sysinstmsgs.?? cdrom + ${CP} -f ${SYSINSTDIR}/sysinstmsgs.?? cdrom ${MKDIR} cdrom/var
Attachment:
pgp1kHgqYAcNI.pgp
Description: PGP signature