logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

pgen-timestamp.patch (1266B)


  1. SPDX-FileCopyrightText: 2011 Antoine Pitrou <solipsis@pitrou.net>
  2. SPDX-License-Identifier: PSF-2.0
  3. Don't run pgen twice when using make -j
  4. Don't ignore pgen error (on "make Parser/pgen.stamp")
  5. diff --git a/Makefile.pre.in b/Makefile.pre.in
  6. index 25a82aff01..03f85fd04b 100644
  7. --- Python-2.5.6/Makefile.pre.in
  8. +++ Python-2.5.6/Makefile.pre.in
  9. @@ -471,10 +471,12 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
  10. Modules/python.o: $(srcdir)/Modules/python.c
  11. $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c
  12. -
  13. -$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
  14. +# Use a stamp file to prevent make -j invoking pgen twice
  15. +$(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp
  16. +Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT)
  17. -@ mkdir Include
  18. - -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
  19. + $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
  20. + -touch Parser/pgen.stamp
  21. $(PGEN): $(PGENOBJS)
  22. $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
  23. @@ -1030,7 +1032,7 @@ clean: pycremoval
  24. clobber: clean
  25. -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
  26. - tags TAGS \
  27. + tags TAGS Parser/pgen.stamp \
  28. config.cache config.log pyconfig.h Modules/config.c
  29. -rm -rf build platform
  30. -rm -rf $(PYTHONFRAMEWORKDIR)