| 1 |
From: Ryan Kavanagh <[email protected]> |
| 2 |
Date: Tue, 20 May 2025 12:14:31 -0400 |
| 3 |
Subject: Handle missing non-DFSG-free files |
| 4 |
|
| 5 |
Bug-Debian: https://bugs.debian.org/998156 |
| 6 |
Forwarded: not-needed |
| 7 |
Last-Update: 2021-12-19 |
| 8 |
|
| 9 |
We excluded several non-DFSG-free files from the tarball. |
| 10 |
Update the build system to not rely or use these. |
| 11 |
|
| 12 |
We disable building mlnlffigen as collateral damage from |
| 13 |
removing ckit-lib (see dependencies in mlnlffigen/sources.mlb). |
| 14 |
|
| 15 |
We comment out the paths to extracted tarballs in .gitignore |
| 16 |
to keep the clean target from deleting them. |
| 17 |
Last-Update: 2021-12-19 |
| 18 |
--- |
| 19 |
Makefile | 6 ------ |
| 20 |
benchmark/Makefile | 4 ++-- |
| 21 |
benchmark/tests/raytrace.sml | 4 +--- |
| 22 |
lib/mllpt-lib/.gitignore | 2 +- |
| 23 |
lib/mllpt-lib/Makefile | 2 +- |
| 24 |
lib/mlrisc-lib/.gitignore | 2 +- |
| 25 |
lib/mlrisc-lib/Makefile | 2 +- |
| 26 |
lib/smlnj-lib/.gitignore | 2 +- |
| 27 |
lib/smlnj-lib/Makefile | 2 +- |
| 28 |
runtime/.gitignore | 2 +- |
| 29 |
runtime/Makefile | 10 +++------- |
| 30 |
11 files changed, 13 insertions(+), 25 deletions(-) |
| 31 |
|
| 32 |
diff --git a/Makefile b/Makefile |
| 33 |
index 21c4348..123fb18 100644 |
| 34 |
--- a/Makefile |
| 35 |
+++ b/Makefile |
| 36 |
@@ -103,8 +103,6 @@ endef |
| 37 |
|
| 38 |
.PHONY: libraries-no-check |
| 39 |
libraries-no-check: |
| 40 |
- $(MAKE) -C "$(SRC)/lib/ckit-lib" |
| 41 |
- $(call LIBRARIES_NO_CHECK_TEMPLATE,ckit-lib,/ckit/src,) |
| 42 |
$(call LIBRARIES_NO_CHECK_TEMPLATE,cml,,'!' -path '*/tests/*') |
| 43 |
$(MAKE) -C "$(SRC)/lib/mllpt-lib" |
| 44 |
$(call LIBRARIES_NO_CHECK_TEMPLATE,mllpt-lib,/ml-lpt/lib,) |
| 45 |
@@ -123,7 +121,6 @@ endef |
| 46 |
|
| 47 |
.PHONY: libraries-check |
| 48 |
libraries-check: |
| 49 |
- $(call LIBRARIES_CHECK_TEMPLATE,ckit-lib) |
| 50 |
$(call LIBRARIES_CHECK_TEMPLATE,cml) |
| 51 |
$(call LIBRARIES_CHECK_TEMPLATE,mllpt-lib) |
| 52 |
$(call LIBRARIES_CHECK_TEMPLATE,mlnlffi-lib) |
| 53 |
@@ -197,7 +194,6 @@ tools: |
| 54 |
$(call TOOLS_TEMPLATE,mllex) |
| 55 |
$(call TOOLS_TEMPLATE,mlyacc) |
| 56 |
$(call TOOLS_TEMPLATE,mlprof) |
| 57 |
- $(call TOOLS_TEMPLATE,mlnlffigen) |
| 58 |
|
| 59 |
.PHONY: tools-clean |
| 60 |
tools-clean: |
| 61 |
@@ -409,7 +405,6 @@ install: install-no-strip install-strip |
| 62 |
MAN_PAGES := mlton.1 |
| 63 |
MAN_PAGES := $(MAN_PAGES) \ |
| 64 |
mllex.1 \ |
| 65 |
- mlnlffigen.1 \ |
| 66 |
mlprof.1 \ |
| 67 |
mlyacc.1 |
| 68 |
|
| 69 |
@@ -431,7 +426,6 @@ endif |
| 70 |
STRIP_PROGS := "$(TLIB)/$(MLTON_OUTPUT)$(EXE)" |
| 71 |
STRIP_PROGS := $(STRIP_PROGS) \ |
| 72 |
"$(TBIN)/mllex$(EXE)" \ |
| 73 |
- "$(TBIN)/mlnlffigen$(EXE)" \ |
| 74 |
"$(TBIN)/mlprof$(EXE)" \ |
| 75 |
"$(TBIN)/mlyacc$(EXE)" |
| 76 |
|
| 77 |
diff --git a/benchmark/Makefile b/benchmark/Makefile |
| 78 |
index 56a2b26..3918be7 100644 |
| 79 |
--- a/benchmark/Makefile |
| 80 |
+++ b/benchmark/Makefile |
| 81 |
@@ -25,8 +25,8 @@ $(NAME): $(NAME).mlb $(shell $(MLBDEPS) $(NAME).mlb) |
| 82 |
|
| 83 |
$(eval $(MK_COMMON_GOALS)) |
| 84 |
|
| 85 |
-BENCH := barnes-hut boyer checksum count-graphs DLXSimulator even-odd fft fib flat-array hamlet imp-for knuth-bendix lexgen life logic mandelbrot matrix-multiply md5 merge mlyacc model-elimination mpuz nucleic output1 peek psdes-random ratio-regions ray raytrace simple smith-normal-form string-concat tailfib tak tensor tsp tyan vector32-concat vector64-concat vector-rev vliw wc-input1 wc-scanStream zebra zern |
| 86 |
-FPBENCH := barnes-hut fft hamlet mandelbrot matrix-multiply nucleic ray raytrace simple tensor tsp tyan vliw zern |
| 87 |
+BENCH := barnes-hut boyer checksum count-graphs DLXSimulator even-odd fft fib flat-array hamlet imp-for knuth-bendix lexgen life logic mandelbrot matrix-multiply merge mlyacc model-elimination mpuz nucleic output1 peek psdes-random ratio-regions ray raytrace simple smith-normal-form string-concat tailfib tak tensor tsp tyan vector32-concat vector64-concat vector-rev vliw wc-input1 wc-scanStream zebra |
| 88 |
+FPBENCH := barnes-hut fft hamlet mandelbrot matrix-multiply nucleic ray raytrace simple tensor tsp tyan vliw |
| 89 |
|
| 90 |
BFLAGS := -mlton "/usr/bin/mlton" -mlton "mlton -optimize-ssa {false,true}" |
| 91 |
BFLAGS := -wiki -mlton "/usr/bin/mlton" -mlkit -mosml -poly -smlnj |
| 92 |
diff --git a/benchmark/tests/raytrace.sml b/benchmark/tests/raytrace.sml |
| 93 |
index 9edcff2..0c652ba 100644 |
| 94 |
--- a/benchmark/tests/raytrace.sml |
| 95 |
+++ b/benchmark/tests/raytrace.sml |
| 96 |
@@ -2371,9 +2371,7 @@ fun f p = |
| 97 |
end |
| 98 |
structure Main = |
| 99 |
struct |
| 100 |
- fun doit () = |
| 101 |
- Eval.f (Program.read (TextIO.openIn "DATA/chess.gml")) |
| 102 |
- handle _ => () |
| 103 |
+ fun doit () = () |
| 104 |
|
| 105 |
val doit = |
| 106 |
fn n => |
| 107 |
diff --git a/lib/mllpt-lib/.gitignore b/lib/mllpt-lib/.gitignore |
| 108 |
index 59f2934..b5457c4 100644 |
| 109 |
--- a/lib/mllpt-lib/.gitignore |
| 110 |
+++ b/lib/mllpt-lib/.gitignore |
| 111 |
@@ -1 +1 @@ |
| 112 |
-/ml-lpt/ |
| 113 |
+#/ml-lpt/ |
| 114 |
diff --git a/lib/mllpt-lib/Makefile b/lib/mllpt-lib/Makefile |
| 115 |
index 7b3b79b..fa19e87 100644 |
| 116 |
--- a/lib/mllpt-lib/Makefile |
| 117 |
+++ b/lib/mllpt-lib/Makefile |
| 118 |
@@ -10,7 +10,7 @@ include $(ROOT)/Makefile.config |
| 119 |
###################################################################### |
| 120 |
###################################################################### |
| 121 |
|
| 122 |
-all: ml-lpt/README |
| 123 |
+all: |
| 124 |
|
| 125 |
ml-lpt/README: ml-lpt.tgz ml-lpt.patch |
| 126 |
$(RM) ml-lpt |
| 127 |
diff --git a/lib/mlrisc-lib/.gitignore b/lib/mlrisc-lib/.gitignore |
| 128 |
index 53ec553..472f63f 100644 |
| 129 |
--- a/lib/mlrisc-lib/.gitignore |
| 130 |
+++ b/lib/mlrisc-lib/.gitignore |
| 131 |
@@ -1 +1 @@ |
| 132 |
-/MLRISC/ |
| 133 |
+#/MLRISC/ |
| 134 |
diff --git a/lib/mlrisc-lib/Makefile b/lib/mlrisc-lib/Makefile |
| 135 |
index 643cbdf..e9fc97e 100644 |
| 136 |
--- a/lib/mlrisc-lib/Makefile |
| 137 |
+++ b/lib/mlrisc-lib/Makefile |
| 138 |
@@ -12,7 +12,7 @@ include $(ROOT)/Makefile.config |
| 139 |
|
| 140 |
###################################################################### |
| 141 |
|
| 142 |
-all: MLRISC/README.mlton |
| 143 |
+all: |
| 144 |
|
| 145 |
MLRISC/README.mlton: MLRISC.tgz MLRISC.patch |
| 146 |
$(RM) MLRISC |
| 147 |
diff --git a/lib/smlnj-lib/.gitignore b/lib/smlnj-lib/.gitignore |
| 148 |
index bc374cb..3dd9af1 100644 |
| 149 |
--- a/lib/smlnj-lib/.gitignore |
| 150 |
+++ b/lib/smlnj-lib/.gitignore |
| 151 |
@@ -1 +1 @@ |
| 152 |
-/smlnj-lib/ |
| 153 |
+#/smlnj-lib/ |
| 154 |
diff --git a/lib/smlnj-lib/Makefile b/lib/smlnj-lib/Makefile |
| 155 |
index 21703f5..c3ebc9a 100644 |
| 156 |
--- a/lib/smlnj-lib/Makefile |
| 157 |
+++ b/lib/smlnj-lib/Makefile |
| 158 |
@@ -12,7 +12,7 @@ include $(ROOT)/Makefile.config |
| 159 |
|
| 160 |
###################################################################### |
| 161 |
|
| 162 |
-all: smlnj-lib/README.mlton |
| 163 |
+all: |
| 164 |
|
| 165 |
smlnj-lib/README.mlton: smlnj-lib.tgz smlnj-lib.patch |
| 166 |
$(RM) smlnj-lib |
| 167 |
diff --git a/runtime/.gitignore b/runtime/.gitignore |
| 168 |
index c7d8fe3..729d73d 100644 |
| 169 |
--- a/runtime/.gitignore |
| 170 |
+++ b/runtime/.gitignore |
| 171 |
@@ -3,6 +3,6 @@ |
| 172 |
*.d |
| 173 |
*.o |
| 174 |
|
| 175 |
-/gdtoa/ |
| 176 |
+#/gdtoa/ |
| 177 |
/c-types.h |
| 178 |
/ml-types.h |
| 179 |
diff --git a/runtime/Makefile b/runtime/Makefile |
| 180 |
index 5f52ec5..5744321 100644 |
| 181 |
--- a/runtime/Makefile |
| 182 |
+++ b/runtime/Makefile |
| 183 |
@@ -314,13 +314,9 @@ $(eval $(call A_TEMPLATE,gdtoa,GDTOA)) |
| 184 |
gdtoa/gdtoa.h $(GDTOACFILES): gdtoa/README |
| 185 |
@touch $@ |
| 186 |
|
| 187 |
-gdtoa/README: gdtoa.tgz gdtoa.may_alias-unions.patch gdtoa.rename-public-fns.patch gdtoa.hide-private-fns.patch gdtoa.hide-public-fns.patch gdtoa.include-via-gdtoa.patch |
| 188 |
- $(GZIP) -dc gdtoa.tgz | $(TAR) xf - |
| 189 |
- $(PATCH) -s -d gdtoa -p1 <gdtoa.may_alias-unions.patch |
| 190 |
- $(PATCH) -s -d gdtoa -p1 <gdtoa.rename-public-fns.patch |
| 191 |
- $(PATCH) -s -d gdtoa -p1 <gdtoa.hide-private-fns.patch |
| 192 |
- $(PATCH) -s -d gdtoa -p1 <gdtoa.hide-public-fns.patch |
| 193 |
- $(PATCH) -s -d gdtoa -p1 <gdtoa.include-via-gdtoa.patch |
| 194 |
+gdtoa/README: |
| 195 |
+ # We've already extracted and patched the source when we |
| 196 |
+ # repacked the tarball. |
| 197 |
@touch $@ |
| 198 |
|
| 199 |
gdtoa/arith.h: gdtoa/arithchk$(EXE) |