logo

blog

My website can't be that messy, right? git clone https://anongit.hacktivis.me/git/blog.git/

0001-lib-javaversion.class-remove-build-from-source.patch (2378B)


  1. From a4c97c5eb4e6ef106db449d313f6a3c05b7ab769 Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Tue, 20 Dec 2022 21:31:28 +0100
  4. Subject: [PATCH gnulib] lib/javaversion.class: remove, build from source
  5. Alternative if javaversion.class is needed while javac is absent
  6. (I doubt so) could be keeping the javaversion.class blob by default
  7. but still providing build & clean recipes in the Makefiles.
  8. ---
  9. .gitignore | 1 +
  10. Makefile | 5 +++++
  11. lib/Makefile | 9 ++++++++-
  12. lib/javaversion.class | Bin 510 -> 0 bytes
  13. 4 files changed, 14 insertions(+), 1 deletion(-)
  14. delete mode 100644 lib/javaversion.class
  15. diff --git a/.gitignore b/.gitignore
  16. index fae3b941a8..aeec48b6c6 100644
  17. --- a/.gitignore
  18. +++ b/.gitignore
  19. @@ -3,6 +3,7 @@
  20. *~
  21. .#*
  22. \#*#
  23. +*.class
  24. allsnippets.tmp
  25. amsnippet.tmp
  26. testdir*
  27. diff --git a/Makefile b/Makefile
  28. index 0ffc677946..1de15d89e3 100644
  29. --- a/Makefile
  30. +++ b/Makefile
  31. @@ -13,6 +13,11 @@ SHELL=bash
  32. # Produce some files that are not stored in the repository.
  33. all:
  34. + $(MAKE) -C lib
  35. +
  36. +.PHONY: clean
  37. +clean:
  38. + $(MAKE) -C lib clean
  39. # ==============================================================================
  40. # Documentation
  41. diff --git a/lib/Makefile b/lib/Makefile
  42. index 2e10203783..8b7c580dac 100644
  43. --- a/lib/Makefile
  44. +++ b/lib/Makefile
  45. @@ -1,6 +1,13 @@
  46. # Run "make check" to ensure that the code passes some simple tests,
  47. # usually (always?) not involving compilation.
  48. -all:
  49. +JAVAC ?= javac
  50. +
  51. +all: javaversion.class
  52. + $(JAVAC) -d . -target 1.1 javaversion.java
  53. check:
  54. ./t-idcache
  55. +
  56. +.PHONY: clean
  57. +clean:
  58. + rm -f javaversion.class
  59. diff --git a/lib/javaversion.class b/lib/javaversion.class
  60. deleted file mode 100644
  61. index d62585b0ecd259dc3d661247c323788c927ff140..0000000000000000000000000000000000000000
  62. GIT binary patch
  63. literal 0
  64. HcmV?d00001
  65. literal 510
  66. zcmZutO;5r=5Pi#6p;SSzh#(>tQ%$5l0OQ5P6HyWj7f(xF$r9R<vL)eX=|PPLe}F&A
  67. zI1407WDhg5Z{NIqGhg2ypGe{YEfWTcIqad7McJghZ^A~!z=44(L*`NjQe815owET$
  68. z>N<QB427-?#BJ;kMRd=H6GBoxmjOe?dFYP$oVybqjNHD8WH9RJMzbHrktc4XCKokj
  69. zE~1$XgSM_MWRWv)XrYEWLrr7t*;IJ)NqSsq+L~_R2n_?r7MeI=$p2AV>#n}O8;*si
  70. zHlY4uri4$EgfTtXE1xoSdt_3PRl)rZDUO8dMd4ILYQb>oY#HZ2#8B2o+)XtGW2&_$
  71. zv>1Dv&;TuDX#e^o!1NL*nsjSWW|Y(CZ(z?<kTHsxC0Hezg&nFj)mgRz)(aA)<U3NY
  72. UNdI=2^a|Q)9(CgHQk_8I2Lx1d^#A|>
  73. base-commit: ed162ab2ffae07a168437c6a65739c6419c5e3e1
  74. --
  75. 2.51.2