You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. Description: Make builds reproducible
  2. Don't use __DATE__ __TIME__. Use changelog date instead.
  3. Sort exported symbols.
  4. Author: Jean-Michel Vourgère <nirgal@debian.org>
  5. Forwarded: no
  6. Last-Update: 2015-08-11
  7. --- a/server/buildmark.c
  8. +++ b/server/buildmark.c
  9. @@ -17,11 +17,7 @@
  10. #include "ap_config.h"
  11. #include "httpd.h"
  12. -#if defined(__DATE__) && defined(__TIME__)
  13. -static const char server_built[] = __DATE__ " " __TIME__;
  14. -#else
  15. -static const char server_built[] = "unknown";
  16. -#endif
  17. +static const char server_built[] = "";
  18. AP_DECLARE(const char *) ap_get_server_built()
  19. {
  20. --- a/server/Makefile.in
  21. +++ b/server/Makefile.in
  22. @@ -1,3 +1,4 @@
  23. +export LC_ALL = C
  24. CLEAN_TARGETS = gen_test_char test_char.h \
  25. ApacheCoreOS2.def httpd.exp export_files \
  26. @@ -87,8 +88,8 @@ httpd.exp: exports.c export_vars.h
  27. @echo "#! ." > $@
  28. @echo "* This file was AUTOGENERATED at build time." >> $@
  29. @echo "* Please do not edit by hand." >> $@
  30. - $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | grep -v apr_ | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@
  31. - $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | grep -v apr_ | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@
  32. + $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | grep -v apr_ | sed -e 's/^.*[)]\(.*\);$$/\1/' | sort >> $@
  33. + $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | grep -v apr_ | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' | sort >> $@
  34. # developer stuff