From: Ryan Kavanagh Date: Tue, 20 May 2025 12:14:31 -0400 Subject: Handle missing non-DFSG-free files Bug-Debian: https://bugs.debian.org/998156 Forwarded: not-needed Last-Update: 2021-12-19 We excluded several non-DFSG-free files from the tarball. Update the build system to not rely or use these. We disable building mlnlffigen as collateral damage from removing ckit-lib (see dependencies in mlnlffigen/sources.mlb). We comment out the paths to extracted tarballs in .gitignore to keep the clean target from deleting them. Last-Update: 2021-12-19 --- Makefile | 6 ------ benchmark/Makefile | 4 ++-- benchmark/tests/raytrace.sml | 4 +--- lib/mllpt-lib/.gitignore | 2 +- lib/mllpt-lib/Makefile | 2 +- lib/mlrisc-lib/.gitignore | 2 +- lib/mlrisc-lib/Makefile | 2 +- lib/smlnj-lib/.gitignore | 2 +- lib/smlnj-lib/Makefile | 2 +- runtime/.gitignore | 2 +- runtime/Makefile | 10 +++------- 11 files changed, 13 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 21c4348..123fb18 100644 --- a/Makefile +++ b/Makefile @@ -103,8 +103,6 @@ endef .PHONY: libraries-no-check libraries-no-check: - $(MAKE) -C "$(SRC)/lib/ckit-lib" - $(call LIBRARIES_NO_CHECK_TEMPLATE,ckit-lib,/ckit/src,) $(call LIBRARIES_NO_CHECK_TEMPLATE,cml,,'!' -path '*/tests/*') $(MAKE) -C "$(SRC)/lib/mllpt-lib" $(call LIBRARIES_NO_CHECK_TEMPLATE,mllpt-lib,/ml-lpt/lib,) @@ -123,7 +121,6 @@ endef .PHONY: libraries-check libraries-check: - $(call LIBRARIES_CHECK_TEMPLATE,ckit-lib) $(call LIBRARIES_CHECK_TEMPLATE,cml) $(call LIBRARIES_CHECK_TEMPLATE,mllpt-lib) $(call LIBRARIES_CHECK_TEMPLATE,mlnlffi-lib) @@ -197,7 +194,6 @@ tools: $(call TOOLS_TEMPLATE,mllex) $(call TOOLS_TEMPLATE,mlyacc) $(call TOOLS_TEMPLATE,mlprof) - $(call TOOLS_TEMPLATE,mlnlffigen) .PHONY: tools-clean tools-clean: @@ -409,7 +405,6 @@ install: install-no-strip install-strip MAN_PAGES := mlton.1 MAN_PAGES := $(MAN_PAGES) \ mllex.1 \ - mlnlffigen.1 \ mlprof.1 \ mlyacc.1 @@ -431,7 +426,6 @@ endif STRIP_PROGS := "$(TLIB)/$(MLTON_OUTPUT)$(EXE)" STRIP_PROGS := $(STRIP_PROGS) \ "$(TBIN)/mllex$(EXE)" \ - "$(TBIN)/mlnlffigen$(EXE)" \ "$(TBIN)/mlprof$(EXE)" \ "$(TBIN)/mlyacc$(EXE)" diff --git a/benchmark/Makefile b/benchmark/Makefile index 56a2b26..3918be7 100644 --- a/benchmark/Makefile +++ b/benchmark/Makefile @@ -25,8 +25,8 @@ $(NAME): $(NAME).mlb $(shell $(MLBDEPS) $(NAME).mlb) $(eval $(MK_COMMON_GOALS)) -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 -FPBENCH := barnes-hut fft hamlet mandelbrot matrix-multiply nucleic ray raytrace simple tensor tsp tyan vliw zern +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 +FPBENCH := barnes-hut fft hamlet mandelbrot matrix-multiply nucleic ray raytrace simple tensor tsp tyan vliw BFLAGS := -mlton "/usr/bin/mlton" -mlton "mlton -optimize-ssa {false,true}" BFLAGS := -wiki -mlton "/usr/bin/mlton" -mlkit -mosml -poly -smlnj diff --git a/benchmark/tests/raytrace.sml b/benchmark/tests/raytrace.sml index 9edcff2..0c652ba 100644 --- a/benchmark/tests/raytrace.sml +++ b/benchmark/tests/raytrace.sml @@ -2371,9 +2371,7 @@ fun f p = end structure Main = struct - fun doit () = - Eval.f (Program.read (TextIO.openIn "DATA/chess.gml")) - handle _ => () + fun doit () = () val doit = fn n => diff --git a/lib/mllpt-lib/.gitignore b/lib/mllpt-lib/.gitignore index 59f2934..b5457c4 100644 --- a/lib/mllpt-lib/.gitignore +++ b/lib/mllpt-lib/.gitignore @@ -1 +1 @@ -/ml-lpt/ +#/ml-lpt/ diff --git a/lib/mllpt-lib/Makefile b/lib/mllpt-lib/Makefile index 7b3b79b..fa19e87 100644 --- a/lib/mllpt-lib/Makefile +++ b/lib/mllpt-lib/Makefile @@ -10,7 +10,7 @@ include $(ROOT)/Makefile.config ###################################################################### ###################################################################### -all: ml-lpt/README +all: ml-lpt/README: ml-lpt.tgz ml-lpt.patch $(RM) ml-lpt diff --git a/lib/mlrisc-lib/.gitignore b/lib/mlrisc-lib/.gitignore index 53ec553..472f63f 100644 --- a/lib/mlrisc-lib/.gitignore +++ b/lib/mlrisc-lib/.gitignore @@ -1 +1 @@ -/MLRISC/ +#/MLRISC/ diff --git a/lib/mlrisc-lib/Makefile b/lib/mlrisc-lib/Makefile index 643cbdf..e9fc97e 100644 --- a/lib/mlrisc-lib/Makefile +++ b/lib/mlrisc-lib/Makefile @@ -12,7 +12,7 @@ include $(ROOT)/Makefile.config ###################################################################### -all: MLRISC/README.mlton +all: MLRISC/README.mlton: MLRISC.tgz MLRISC.patch $(RM) MLRISC diff --git a/lib/smlnj-lib/.gitignore b/lib/smlnj-lib/.gitignore index bc374cb..3dd9af1 100644 --- a/lib/smlnj-lib/.gitignore +++ b/lib/smlnj-lib/.gitignore @@ -1 +1 @@ -/smlnj-lib/ +#/smlnj-lib/ diff --git a/lib/smlnj-lib/Makefile b/lib/smlnj-lib/Makefile index 21703f5..c3ebc9a 100644 --- a/lib/smlnj-lib/Makefile +++ b/lib/smlnj-lib/Makefile @@ -12,7 +12,7 @@ include $(ROOT)/Makefile.config ###################################################################### -all: smlnj-lib/README.mlton +all: smlnj-lib/README.mlton: smlnj-lib.tgz smlnj-lib.patch $(RM) smlnj-lib diff --git a/runtime/.gitignore b/runtime/.gitignore index c7d8fe3..729d73d 100644 --- a/runtime/.gitignore +++ b/runtime/.gitignore @@ -3,6 +3,6 @@ *.d *.o -/gdtoa/ +#/gdtoa/ /c-types.h /ml-types.h diff --git a/runtime/Makefile b/runtime/Makefile index 5f52ec5..5744321 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -314,13 +314,9 @@ $(eval $(call A_TEMPLATE,gdtoa,GDTOA)) gdtoa/gdtoa.h $(GDTOACFILES): gdtoa/README @touch $@ -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 - $(GZIP) -dc gdtoa.tgz | $(TAR) xf - - $(PATCH) -s -d gdtoa -p1