From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

Fix build on existing working directory after system upgrade

After commit c446634, the "httpserver" module no longer has a Makefile
and nothing is built in that directory - it is just a front for other
modules. However, the directory may have old files, notably usr.manifest,
which can break a build after the system was upgraded because some of the
old libraries it refers to no longer exist.
We need to add a Makefile with a "clean" target so at least "scripts/build
clean" will clean up this mess.

Fixes #931

Signed-off-by: Nadav Har'El <n...@scylladb.com>

---
diff --git a/modules/httpserver/Makefile b/modules/httpserver/Makefile
--- a/modules/httpserver/Makefile
+++ b/modules/httpserver/Makefile
@@ -0,0 +1,8 @@
+# This "make clean" should not be needed because we no longer build anything
+# in this directory, but prior to commit c446634 we did create things here,
+# and if we forget to delete them, especially usr.manifest, future builds
+# may fail (see issue #931).
+clean:
+       -rm -rf autogen obj
+       -rm -f libhttpserver*.so usr.manifest
+.PHONY: clean

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to