Fwd: DragonFly ISO release build failure for 2CSNAP-20050923-2330-Devel

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Sat Sep 24 10:42:00 PDT 2005


Jeroen Ruigrok/asmodai wrote:
-On [20050924 16:34], Simon 'corecode' Schubert (corecode at xxxxxxxxxxxx) wrote:

It's not about "early", it's about "anywhere".  And at the moment ls is 
being used (at least) in sys/boot/i386/boot2/Makefile, 
lib/libcompat/i386/Makefile and in sys/conf/Makefile*
You sure about libcompat/i386?
my bad. lib/compat/i386.  This can use "echo".


Index: src/sys/boot/i386/boot2/Makefile
===================================================================
RCS file: /home/ncvs/DragonFly/src/sys/boot/i386/boot2/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- src/sys/boot/i386/boot2/Makefile	2 Aug 2005 13:03:54 -0000	1.15
+++ src/sys/boot/i386/boot2/Makefile	24 Sep 2005 15:02:44 -0000
@@ -122,7 +122,7 @@
 boot2: boot2.ldr boot2.bin ${BTX}/btx/btx
 	btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \
 		-o boot2.ld -P 1 boot2.bin
-	@ls -l boot2.ld | awk '{ x = 7680 - $$5; \
+	@stat boot2.ld | awk '{ x = 7680 - $$8; \
 		print x " bytes available"; if (x < 0) exit 1 }'
 	dd if=boot2.ld of=${.TARGET} obs=7680 conv=osync 2>/dev/null
We don't build stat as a bootstrap-tool, but we could I think.


Index: src/sys/conf/Makefile.i386
===================================================================
RCS file: /home/ncvs/DragonFly/src/sys/conf/Makefile.i386,v
retrieving revision 1.23
diff -u -r1.23 Makefile.i386
--- src/sys/conf/Makefile.i386	17 Aug 2005 02:51:45 -0000	1.23
+++ src/sys/conf/Makefile.i386	24 Sep 2005 15:22:58 -0000
@@ -302,7 +302,7 @@
 #
 modules-install:
 .if !defined(NO_MODULES_OLD)
-	if [ -d ${DESTDIR}/modules -a -n "`ls ${DESTDIR}/modules`" ]; then \
+	if [ -d ${DESTDIR}/modules -a -n "`echo ${DESTDIR}/modules/*`" ]; then \
 		mkdir -p ${DESTDIR}/modules.old; \
 		for file in ${DESTDIR}/modules/*; do \
 		${OBJCOPY} --strip-debug $$file ${DESTDIR}/modules.old/$${file##*/}; \
This won't work.  The "ls" is to check for files (non-zero output). 
Your echo will always have an output.  Either the list of files or the 
string you passed when the shell just can't glob it.

cheers
  simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




More information about the Bugs mailing list