Blame otp-0003-Do-not-install-C-sources.patch

Peter Lemenkov 96952b
From: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov 96952b
Date: Fri, 18 Jun 2010 23:41:33 +0400
Hans Ulrich Niedermann 696873
Subject: [PATCH] Do not install C sources
Peter Lemenkov 96952b
5203c4
Don't install *.c and *.o files at all.
5203c4
Peter Lemenkov 96952b
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov 96952b
---
61833a
 lib/asn1/c_src/Makefile             |  2 --
61833a
 lib/crypto/c_src/Makefile.in        |  3 ---
61833a
 lib/erl_interface/src/Makefile.in   | 18 ------------------
61833a
 lib/ic/c_src/Makefile.in            |  2 --
61833a
 lib/megaco/src/flex/Makefile.in     |  2 +-
61833a
 lib/odbc/c_src/Makefile.in          |  3 ---
61833a
 lib/os_mon/c_src/Makefile.in        |  2 --
61833a
 lib/runtime_tools/c_src/Makefile.in |  2 --
61833a
 lib/tools/c_src/Makefile.in         |  2 --
61833a
 9 files changed, 1 insertion(+), 35 deletions(-)
Peter Lemenkov 96952b
Peter Lemenkov 96952b
diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile
61833a
index a73d01a..102d4fb 100644
Peter Lemenkov 96952b
--- a/lib/asn1/c_src/Makefile
Peter Lemenkov 96952b
+++ b/lib/asn1/c_src/Makefile
5d2c88
@@ -112,8 +112,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 release_spec: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
61833a
 	$(INSTALL_PROGRAM) $(NIF_SHARED_OBJ_FILE) "$(RELSYSDIR)/priv/lib"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/c_src"
61833a
-	$(INSTALL_DATA) *.c "$(RELSYSDIR)/c_src"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in
61833a
index 80e95ef..c644ad2 100644
Peter Lemenkov 96952b
--- a/lib/crypto/c_src/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/crypto/c_src/Makefile.in
5d2c88
@@ -133,10 +133,7 @@ docs:
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/priv/obj"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
61833a
-	$(INSTALL_DATA) $(NIF_MAKEFILE) "$(RELSYSDIR)/priv/obj"
61833a
-	$(INSTALL_PROGRAM) $(OBJS) "$(RELSYSDIR)/priv/obj"
61833a
 	$(INSTALL_PROGRAM) $(NIF_LIB) "$(RELSYSDIR)/priv/lib"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs_spec:
Peter Lemenkov 96952b
diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in
61833a
index cb41391..9aeba86 100644
Peter Lemenkov 96952b
--- a/lib/erl_interface/src/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/erl_interface/src/Makefile.in
5d2c88
@@ -846,29 +846,11 @@ release: opt
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/lib"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/bin"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/auxdir"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/connect"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/decode"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/encode"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/epmd"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/legacy"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/misc"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/prog"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src/registry"
61833a
 	$(INSTALL_DATA) $(HEADERS)     "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(OBJ_TARGETS) "$(RELSYSDIR)/lib"
Peter Lemenkov 96952b
 ifneq ($(EXE_TARGETS),)
61833a
 	$(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin"
Peter Lemenkov 96952b
 endif
61833a
-	$(INSTALL_DATA) $(EXTRA)        "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) connect/*.[ch]  "$(RELSYSDIR)/src/connect"
61833a
-	$(INSTALL_DATA) decode/*.[ch]   "$(RELSYSDIR)/src/decode"
61833a
-	$(INSTALL_DATA) encode/*.[ch]   "$(RELSYSDIR)/src/encode"
61833a
-	$(INSTALL_DATA) epmd/*.[ch]     "$(RELSYSDIR)/src/epmd"
61833a
-	$(INSTALL_DATA) misc/*.[ch]     "$(RELSYSDIR)/src/misc"
61833a
-	$(INSTALL_DATA) registry/*.[ch] "$(RELSYSDIR)/src/registry"
61833a
-	$(INSTALL_DATA) legacy/*.[ch]   "$(RELSYSDIR)/src/legacy"
61833a
-	$(INSTALL_DATA) prog/*.[ch]     "$(RELSYSDIR)/src/prog"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_docs:
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/ic/c_src/Makefile.in b/lib/ic/c_src/Makefile.in
61833a
index de46ead..b30ce1e 100644
Peter Lemenkov 96952b
--- a/lib/ic/c_src/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/ic/c_src/Makefile.in
5d2c88
@@ -140,10 +140,8 @@ $(OBJDIR)/%.o: %.c
Peter Lemenkov 96952b
 include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/c_src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
61833a
-	$(INSTALL_DATA) ic.c ic_tmo.c "$(RELSYSDIR)/c_src"
61833a
 	$(INSTALL_DATA) $(IDL_FILES) $(H_FILES) "$(RELSYSDIR)/include"
61833a
 	$(INSTALL_DATA) $(LIBRARY) "$(RELSYSDIR)/priv/lib"
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in
61833a
index 69c2425..b36ef26 100644
Peter Lemenkov 96952b
--- a/lib/megaco/src/flex/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/megaco/src/flex/Makefile.in
Peter Lemenkov 96952b
@@ -279,7 +279,7 @@ release_spec: opt
61833a
 	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex"
61833a
 	$(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin"
Peter Lemenkov 96952b
 ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true)
61833a
-	$(INSTALL_DATA) $(FLEX_FILES) $(C_TARGETS) "$(RELSYSDIR)/src/flex"
61833a
+	$(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex"
61833a
 	$(INSTALL_PROGRAM) $(SOLIBS) "$(RELSYSDIR)/priv/lib"
Peter Lemenkov 96952b
 endif
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/odbc/c_src/Makefile.in b/lib/odbc/c_src/Makefile.in
61833a
index 026da39..3a568e4 100644
Peter Lemenkov 96952b
--- a/lib/odbc/c_src/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/odbc/c_src/Makefile.in
5d2c88
@@ -128,11 +128,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: opt
Peter Lemenkov 96952b
 ifdef EXE_TARGET
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/c_src"
61833a
-	$(INSTALL_DATA) $(C_FILES) $(H_FILES) "$(RELSYSDIR)/c_src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/bin"
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/priv/obj"
61833a
 	$(INSTALL_PROGRAM) $(EXE_TARGET) "$(RELSYSDIR)/priv/bin"
Peter Lemenkov 96952b
 endif
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
diff --git a/lib/os_mon/c_src/Makefile.in b/lib/os_mon/c_src/Makefile.in
61833a
index 2b16789..1241014 100644
Peter Lemenkov 96952b
--- a/lib/os_mon/c_src/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/os_mon/c_src/Makefile.in
61833a
@@ -131,8 +131,6 @@ ifeq ($(findstring vxworks_simso,$(TARGET)),vxworks_simso)
61833a
 release_spec:
Peter Lemenkov 96952b
 else
Peter Lemenkov 96952b
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/src"
61833a
-	$(INSTALL_DATA) $(C_FILES) "$(RELSYSDIR)/src"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/bin"
61833a
 	$(INSTALL_PROGRAM) $(TARGET_FILES) "$(RELSYSDIR)/priv/bin"
Peter Lemenkov 96952b
 endif
5203c4
diff --git a/lib/runtime_tools/c_src/Makefile.in b/lib/runtime_tools/c_src/Makefile.in
61833a
index 754e6cc..1c367ef 100644
5203c4
--- a/lib/runtime_tools/c_src/Makefile.in
5203c4
+++ b/lib/runtime_tools/c_src/Makefile.in
5203c4
@@ -193,9 +193,7 @@ docs:
5203c4
 include $(ERL_TOP)/make/otp_release_targets.mk
5203c4
 
5203c4
 release_spec: opt
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/priv/obj"
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/priv/lib"
61833a
-	$(INSTALL_PROGRAM) $(DYNTRACE_OBJS) "$(RELSYSDIR)/priv/obj"
61833a
 	$(INSTALL_PROGRAM) $(NIF_LIB) $(SOLIBS) "$(RELSYSDIR)/priv/lib"
5203c4
 
5203c4
 release_docs_spec:
Peter Lemenkov 96952b
diff --git a/lib/tools/c_src/Makefile.in b/lib/tools/c_src/Makefile.in
61833a
index 0382d32..f74eb5a 100644
Peter Lemenkov 96952b
--- a/lib/tools/c_src/Makefile.in
Peter Lemenkov 96952b
+++ b/lib/tools/c_src/Makefile.in
5203c4
@@ -188,8 +188,6 @@ include ../vsn.mk
Peter Lemenkov 96952b
 RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(TOOLS_VSN)
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 release_spec: all
61833a
-	$(INSTALL_DIR) "$(RELSYSDIR)/c_src"
61833a
-	$(INSTALL_DATA) $(EMEM_SRCS) $(EMEM_HEADERS) "$(RELSYSDIR)/c_src"
Peter Lemenkov 96952b
 ifneq ($(PROGS),)
61833a
 	$(INSTALL_DIR) "$(RELSYSDIR)/bin"
61833a
 	$(INSTALL_PROGRAM) $(PROGS) "$(RELSYSDIR)/bin"