Re: RQ review: [was: Re: make modules kicks the first module directory twice]

2000-11-14 Thread David O'Brien

On Mon, Nov 13, 2000 at 08:02:47PM -0800, Marcel Moolenaar wrote:
 Any objections?

Yes.
 
 (patches follow for your convenience)

[its easier to read patches when they aren't quoted in their entirety ;-)]

modules-depend:
  @mkdir -p ${.OBJDIR}/modules
  !   cd $S/modules; env ${MKMODULESENV} ${MAKE} obj
  !   env ${MKMODULESENV} ${MAKE} depend

This is broken for non -j case.

-- 
-- David  ([EMAIL PROTECTED])
  GNU is Not Unix / Linux Is Not UniX


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: RQ review: [was: Re: make modules kicks the first module directory twice]

2000-11-14 Thread Marcel Moolenaar

David O'Brien wrote:
 
 modules-depend:
   @mkdir -p ${.OBJDIR}/modules
   !   cd $S/modules; env ${MKMODULESENV} ${MAKE} obj
   !   env ${MKMODULESENV} ${MAKE} depend
 
 This is broken for non -j case.

Yes, this was known. The right diff was given at the beginning of the
message including the comment that the original patch had this breakage
:-)

-- 
Marcel Moolenaar
  mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
  tel:  (408) 447-4222


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RQ review: [was: Re: make modules kicks the first module directory twice]

2000-11-13 Thread Marcel Moolenaar

Makoto MATSUSHITA wrote:
 
 Ouch... give me one more chance to submit a patch. Here's summary:

I see no reason to not commit Makoto-san's patches with the fix he sent
me for the modules-depend target. The fix is (modulo indentation):

   modules-depend:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} obj; \
 !   env ${MKMODULESENV} ${MAKE} depend

It contains everything mentioned so far, which is:

 * src/release/Makefile should use 'module-depend' while
   checking dependancy of modules (not kernel-depend).
 * For parallel build: "command  command" - "command; command"
 * For parallel build: "make obj depend" - "make obj; make depend"
 * Avoid to do run "obj" target again in "modules" target
   (comes from an email of [EMAIL PROTECTED])

Any objections?

(patches follow for your convenience)

 Index: Makefile
 ===
 RCS file: /lab/FreeBSD/FreeBSD.cvs/src/release/Makefile,v
 retrieving revision 1.585
 diff -c -r1.585 Makefile
 *** Makefile2000/11/12 11:04:11 1.585
 --- Makefile2000/11/13 05:37:12
 ***
 *** 831,837 
 @rm -f ${RD}/kernels/*.ko
 @cd ${.CURDIR}/../sys/${MACHINE}/conf  config ${KERNEL}
 @cd ${.CURDIR}/../sys/compile/${KERNEL}  \
 !   make kernel-depend  \
 make ${KERNEL_FLAGS} modules  \
 make modules-reinstall DESTDIR=${RD}/kernels  \
 
 --- 831,837 
 @rm -f ${RD}/kernels/*.ko
 @cd ${.CURDIR}/../sys/${MACHINE}/conf  config ${KERNEL}
 @cd ${.CURDIR}/../sys/compile/${KERNEL}  \
 !   make modules-depend  \
 make ${KERNEL_FLAGS} modules  \
 make modules-reinstall DESTDIR=${RD}/kernels  \
 
 Index: Makefile.alpha
 ===
 RCS file: /lab/FreeBSD/FreeBSD.cvs/src/sys/conf/Makefile.alpha,v
 retrieving revision 1.79
 diff -c -r1.79 Makefile.alpha
 *** Makefile.alpha  2000/10/29 09:47:50 1.79
 --- Makefile.alpha  2000/11/14 00:42:39
 ***
 *** 252,258 
 echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
   sort -u | comm -23 - dontlink | \
   sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,'  makelinks
 !   sh makelinks  rm -f dontlink
 
   kernel-tags:
 @[ -f .depend ] || { echo "you must make depend first"; exit 1; }
 --- 252,258 
 echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
   sort -u | comm -23 - dontlink | \
   sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,'  makelinks
 !   sh makelinks; rm -f dontlink
 
   kernel-tags:
 @[ -f .depend ] || { echo "you must make depend first"; exit 1; }
 ***
 *** 309,338 
   MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
 
   modules:
 !   @mkdir -p ${.OBJDIR}/modules
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} obj all
 
   modules-depend:
 @mkdir -p ${.OBJDIR}/modules
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} obj depend
 
   modules-clean:
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} clean
 
   modules-cleandepend:
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} cleandepend
 
   modules-cleandir:
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} cleandir
 
   modules-tags:
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} tags
 
   modules-install modules-install.debug:
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} install
 
   modules-reinstall modules-reinstall.debug:
 !   cd $S/modules  env ${MKMODULESENV} ${MAKE} install
 
   config.o:
 ${NORMAL_C}
 --- 309,342 
   MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
 
   modules:
 !   @if [ ! -d ${.OBJDIR}/modules ]; then \
 !   echo You must run make depend before building modules; \
 !   exit 1; \
 !   fi
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} all
 
   modules-depend:
 @mkdir -p ${.OBJDIR}/modules
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} obj
 !   env ${MKMODULESENV} ${MAKE} depend
 
   modules-clean:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} clean
 
   modules-cleandepend:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} cleandepend
 
   modules-cleandir:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} cleandir
 
   modules-tags:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} tags
 
   modules-install modules-install.debug:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} install
 
   modules-reinstall modules-reinstall.debug:
 !   cd $S/modules; env ${MKMODULESENV} ${MAKE} install
 
   config.o:
 ${NORMAL_C}
 Index: Makefile.i386
 ===
 RCS file: /lab/FreeBSD/FreeBSD.cvs/src/sys/conf/Makefile.i386,v