rpms/erlang/devel otp_src_R13B02_OTP-8199.patch, NONE, 1.1 erlang.spec, 1.43, 1.44 otp-install.patch, 1.1, 1.2

Lubomir Rintel lkundrak at fedoraproject.org
Mon Nov 2 15:40:50 UTC 2009


Author: lkundrak

Update of /cvs/pkgs/rpms/erlang/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18737

Modified Files:
	erlang.spec otp-install.patch 
Added Files:
	otp_src_R13B02_OTP-8199.patch 
Log Message:
* Thu Oct 22 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - R13B-02-1
- Update to R13B-02 (patched for what's released as 02-1 by upstream)


otp_src_R13B02_OTP-8199.patch:
 reltool_target.erl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE otp_src_R13B02_OTP-8199.patch ---
--- otp_src_R13B02/lib/reltool/src/reltool_target.erl	2009-09-18 16:25:49.000000000 +0200
+++ otp_src_R13B02_patched/lib/reltool/src/reltool_target.erl	2009-09-22 17:45:33.000000000 +0200
@@ -1014,7 +1014,7 @@
     TargetDir2 = filename:join([TargetDir, Dir]),
     cleanup_spec(Files, TargetDir2),
     file:del_dir(TargetDir2);
-cleanup_spec({create_dir, _OldDir, NewDir, Files}, TargetDir) ->
+cleanup_spec({create_dir, NewDir, _OldDir, Files}, TargetDir) ->
     TargetDir2 = filename:join([TargetDir, NewDir]),
     cleanup_spec(Files, TargetDir2),
     file:del_dir(TargetDir2);
@@ -1152,7 +1152,7 @@
 			       "Progname=erl\r\n",
 			       "Rootdir=", NativeRootDir, "\r\n"],
 		    IniFile = filename:join([BinDir, "erl.ini"]),
-                    file:write(IniFile, IniData);
+                    ok = file:write_file(IniFile, IniData);
 		_ ->
 		    subst_src_scripts(start_scripts(), ErtsBinDir, BinDir, 
 				      [{"FINAL_ROOTDIR", TargetDir2}, {"EMU", "beam"}],


Index: erlang.spec
===================================================================
RCS file: /cvs/pkgs/rpms/erlang/devel/erlang.spec,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -p -r1.43 -r1.44
--- erlang.spec	25 Aug 2009 12:22:08 -0000	1.43
+++ erlang.spec	2 Nov 2009 15:40:49 -0000	1.44
@@ -1,9 +1,9 @@
 %define ver R13B
-%define rel 01
+%define rel 02
 
 Name:           erlang
 Version:        %{ver}
-Release:        %{rel}.2%{?dist}
+Release:        %{rel}.1%{?dist}
 Summary:        General-purpose programming language and runtime environment
 
 Group:          Development/Languages
@@ -15,6 +15,9 @@ Source2:        http://www.erlang.org/do
 Patch0:         otp-links.patch
 Patch1:         otp-install.patch
 Patch2:         otp-rpath.patch
+# OTP-8199 In the new release of Reltool (0.5) there is a severe bug that may cause your source files to be deleted. 
+# http://www.erlang.org/download/patches/otp_src_R13B02_OTP-8199.readme
+Patch3:         http://www.erlang.org/download/patches/otp_src_R13B02_OTP-8199.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	ncurses-devel
@@ -50,6 +53,7 @@ Documentation for Erlang.
 %patch0 -p1 -b .links
 %patch1 -p1 -b .install
 %patch2 -p1 -b .rpath
+%patch3 -p1 -b .OTP-8199
 
 # enable dynamic linking for ssl
 sed -i 's|SSL_DYNAMIC_ONLY=no|SSL_DYNAMIC_ONLY=yes|' erts/configure
@@ -123,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Oct 22 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - R13B-02-1
+- Update to R13B-02 (patched for what's released as 02-1 by upstream)
+
 * Tue Aug 25 2009 Tomas Mraz <tmraz at redhat.com> - R13B-01.2
 - rebuilt with new openssl
 

otp-install.patch:
 Install.src |   16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

Index: otp-install.patch
===================================================================
RCS file: /cvs/pkgs/rpms/erlang/devel/otp-install.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- otp-install.patch	6 Sep 2005 15:14:36 -0000	1.1
+++ otp-install.patch	2 Nov 2009 15:40:50 -0000	1.2
@@ -1,15 +1,16 @@
---- otp_src_R9C-0/erts/etc/unix/Install.src.install	2003-10-17 12:52:14.000000000 +0200
-+++ otp_src_R9C-0/erts/etc/unix/Install.src	2003-10-17 14:26:49.000000000 +0200
-@@ -84,7 +84,7 @@
+diff -up otp_src_R13B02/erts/etc/unix/Install.src.install otp_src_R13B02/erts/etc/unix/Install.src
+--- otp_src_R13B02/erts/etc/unix/Install.src.install	2009-09-18 16:07:12.000000000 +0200
++++ otp_src_R13B02/erts/etc/unix/Install.src	2009-10-22 15:49:01.000000000 +0200
+@@ -111,7 +111,7 @@ if [ -h epmd ]; then
    /bin/rm -f epmd
  fi
  
--ln -s $ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
+-ln -s $TARGET_ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
 +ln -s ../erts-%I_VSN%/bin/epmd epmd
  
  cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
  cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .
-@@ -145,16 +145,4 @@
+@@ -160,16 +160,4 @@ if [ "X$TARGET" != "Xsunos5" -a -d $ERL_
  	(ranlib $library) > /dev/null 2>&1
      done
  fi




More information about the fedora-extras-commits mailing list