Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

new permission problem in full build



I did a full build, and then did another build with unmodified sources
(to see how long it takes).  the second one failed:


--- releasekern-GENERIC ---
gzip -c -9 < /usr/obj/gdt-current/i386/sys/arch/i386/compile/GENERIC/netbsd > 
/usr/obj/gdt-current/releasedir/i386/binary/kernel/netbsd-GENERIC.gz
sh: cannot create 
/usr/obj/gdt-current/releasedir/i386/binary/kernel/netbsd-GENERIC.gz: 
permission denied
*** [releasekern-GENERIC] Error code 1
1 error

nbmake: stopped in /usr/ANONCVS/src/etc
*** [release] Error code 2
1 error

nbmake: stopped in /usr/ANONCVS/src

ERROR: Failed to make release
*** BUILD ABORTED ***


The problem seems to be that the previous set is (quite reasonably) read only:

gdt 61 /usr/ANONCVS > l 
/usr/obj/gdt-current/releasedir/i386/binary/kernel/netbsd-GENERIC.gz
-r--r--r--  1 gdt  wheel  4944386 May  7 09:11 
/usr/obj/gdt-current/releasedir/i386/binary/kernel/netbsd-GENERIC.gz


I am building again with this change:

Index: etc/Makefile
===================================================================
RCS file: /cvsroot/src/etc/Makefile,v
retrieving revision 1.351
diff -u -p -r1.351 Makefile
--- etc/Makefile        30 Apr 2008 16:48:53 -0000      1.351
+++ etc/Makefile        7 May 2008 13:45:28 -0000
@@ -609,6 +609,7 @@ releasekern-${configfile}: .PHONY build_
                                [ ! -f $${ks} ] && continue; \
                                
knl_gz="${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/$${ks}-${configfile:C/.*\///}.gz";
 \
                                [ $${knl_gz} -nt $${ks} ] && continue; \
+                               rm -f $${knl_gz}; \
                                echo "gzip -c -9 < $${kerndir}/$${ks} > 
$${knl_gz}"; \
                                gzip -c -9 < $${ks} > $${knl_gz}; \
                        done; \


but am boggled as to why this is now failing - the code is from August 2003.
 


Home | Main Index | Thread Index | Old Index