dhcpcd-discuss

7.x vs 6.x release - subdir Makefile failures don't stop top level iteration - failing the build.

Kenny Napier

Thu Feb 14 18:25:37 2019

   I am building dhcpcd as part of a larger system with a bitbake recipe.   I noticed with the 7.1.0 release a compile error

  does not bubble up so the whole build fails.

  The issue is at the top level make file where it attempts to invoke the subdir make files.  This is new

  for the 7.x releases.


   all: config.h

        for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done


  If the make part fails the 'cd..' always passes so it keeps going.

  For a workaround this works for me by invoking the exit on failure of the make step.


   all: config.h

        for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit ; cd ..; done


 Ken


Follow-Ups:
Re: 7.x vs 6.x release - subdir Makefile failures don't stop top level iteration - failing the build.Roy Marples
Archive administrator: postmaster@marples.name