[erlang-bugs] R13A patch for lib/wx/examples

Kenji Rikitake <>
Sun Apr 12 07:33:33 CEST 2009


This is a patch for compiling Erlang R13A on FreeBSD 7.1-RELEASE.
Note that I apply all Giacomo's patches for Erlang R12B5
(available on FreeBSD port lang/erlang) BEFORE applying
this patch.

Kenji Rikitake

R13A patch to solve lib/wx/examples installation errors 
on FreeBSD 7.1-RELEASE
by Kenji Rikitake 12-APR-2009

Symptom:

R13A lib/wx/examples files causes installation error on FreeBSD
7.1-RELEASE.  This is caused by the Makefile code which errorneously
trying to install BEAM binaries and other files as OS executables.

Workaround:

Using INSTALL_DATA instead of INSTALL_PROGRAM in the Makefiles solves
this issue.

Apply the following patches:

--- ./lib/wx/examples/simple/Makefile.FCS	2009-03-13 00:04:24.000000000 +0900
+++ ./lib/wx/examples/simple/Makefile	2009-04-12 14:10:58.000000000 +0900
@@ -52,11 +52,11 @@
 docs: 
 
 release_spec: 
 	$(INSTALL_DIR) $(EXRELSYSDIR)
 	$(INSTALL_DATA) $(TESTSRC) $(EXRELSYSDIR)
-	$(INSTALL_PROGRAM) copy.xpm sample.xpm $(TESTTARGETS) $(EXRELSYSDIR)
+	$(INSTALL_DATA) copy.xpm sample.xpm $(TESTTARGETS) $(EXRELSYSDIR)
 
 release_tests_spec:
 
 release_docs_spec:
 
--- ./lib/wx/examples/sudoku/Makefile.FCS	2009-03-12 23:44:22.000000000 +0900
+++ ./lib/wx/examples/sudoku/Makefile	2009-04-12 14:11:32.000000000 +0900
@@ -52,11 +52,11 @@
 docs: 
 
 release_spec: 
 	$(INSTALL_DIR) $(EXRELSYSDIR)
 	$(INSTALL_DATA) $(TESTSRC) sudoku.hrl $(EXRELSYSDIR)
-	$(INSTALL_PROGRAM) $(TESTTARGETS) $(EXRELSYSDIR)
+	$(INSTALL_DATA) $(TESTTARGETS) $(EXRELSYSDIR)
 
 release_tests_spec:
 
 release_docs_spec:
 



More information about the erlang-bugs mailing list