logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0001-Remove-date-from-version-info-to-make-build-reproduc.patch (2077B)


  1. From b6860ea26851edb599bfe0e2d08d212c6a7aaeec Mon Sep 17 00:00:00 2001
  2. From: Val Lorentz <progval@progval.net>
  3. Date: Sun, 29 Jan 2017 17:39:54 -0800
  4. Subject: [PATCH] Remove date from version info to make build reproducible
  5. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
  6. ---
  7. asm/nasm.c | 4 ++--
  8. disasm/ndisasm.c | 4 ++--
  9. include/ver.h | 1 -
  10. nasmlib/ver.c | 1 -
  11. 4 files changed, 4 insertions(+), 6 deletions(-)
  12. diff --git a/asm/nasm.c b/asm/nasm.c
  13. index e5ae89af..70024db5 100644
  14. --- a/asm/nasm.c
  15. +++ b/asm/nasm.c
  16. @@ -977,8 +977,8 @@ static const struct textargs textopts[] = {
  17. static void show_version(void)
  18. {
  19. - printf("NASM version %s compiled on %s%s\n",
  20. - nasm_version, nasm_date, nasm_compile_options);
  21. + printf("NASM version %s%s\n",
  22. + nasm_version, nasm_compile_options);
  23. exit(0);
  24. }
  25. diff --git a/disasm/ndisasm.c b/disasm/ndisasm.c
  26. index 01e0c557..7424b282 100644
  27. --- a/disasm/ndisasm.c
  28. +++ b/disasm/ndisasm.c
  29. @@ -120,8 +120,8 @@ int main(int argc, char **argv)
  30. case 'r':
  31. case 'v':
  32. fprintf(stderr,
  33. - "NDISASM version %s compiled on %s\n",
  34. - nasm_version, nasm_date);
  35. + "NDISASM version %s\n",
  36. + nasm_version);
  37. return 0;
  38. case 'u': /* -u for -b 32, -uu for -b 64 */
  39. if (bits < 64)
  40. diff --git a/include/ver.h b/include/ver.h
  41. index a5bbf384..7a6ce42a 100644
  42. --- a/include/ver.h
  43. +++ b/include/ver.h
  44. @@ -41,7 +41,6 @@
  45. #include "compiler.h"
  46. extern const char nasm_version[];
  47. -extern const char nasm_date[];
  48. extern const char nasm_compile_options[];
  49. extern bool reproducible;
  50. diff --git a/nasmlib/ver.c b/nasmlib/ver.c
  51. index 96260b6c..8f02eaca 100644
  52. --- a/nasmlib/ver.c
  53. +++ b/nasmlib/ver.c
  54. @@ -36,7 +36,6 @@
  55. /* This is printed when entering nasm -v */
  56. const char nasm_version[] = NASM_VER;
  57. -const char nasm_date[] = __DATE__;
  58. const char nasm_compile_options[] = ""
  59. #ifdef DEBUG
  60. " with -DDEBUG"
  61. --
  62. 2.28.0