packages: erlang/erlang.spec, erlang/erlang-fortify.patch (NEW) - up to R14...
arekm
arekm at pld-linux.org
Mon Jan 10 12:19:05 CET 2011
Author: arekm Date: Mon Jan 10 11:19:05 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- up to R14B01; replace strcpy with memcpy because fortify source won't allow to strcpy into too short array
---- Files affected:
packages/erlang:
erlang.spec (1.61 -> 1.62) , erlang-fortify.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/erlang/erlang.spec
diff -u packages/erlang/erlang.spec:1.61 packages/erlang/erlang.spec:1.62
--- packages/erlang/erlang.spec:1.61 Thu Sep 2 10:23:59 2010
+++ packages/erlang/erlang.spec Mon Jan 10 12:19:00 2011
@@ -16,19 +16,20 @@
Summary(pl.UTF-8): Erlang/OTP z otwartymi źródłami
Name: erlang
# A - unstable, B - stable line, keep stable
-Version: R14A
-Release: 1.1
+Version: R14B01
+Release: 1
Epoch: 1
%define _version %(echo %{version} | tr _ -)
License: distributable
Group: Development/Languages
Source0: http://www.erlang.org/download/otp_src_%{_version}.tar.gz
-# Source0-md5: a24873bbace9ab3c307f3d2492d9e134
+# Source0-md5: ce595447571128bc66f630a8fa13339a
Source1: http://www.erlang.org/download/otp_doc_man_%{_version}.tar.gz
-# Source1-md5: b57a7846818ad144b1b6ecc0a54de2ae
+# Source1-md5: 55376d3b1994d083cd21c9d849517c6c
Patch0: %{name}-fPIC.patch
Patch1: %{name}-tinfo.patch
Patch2: %{name}-link.patch
+Patch3: %{name}-fortify.patch
URL: http://www.erlang.org/
%{?with_java:BuildRequires: /usr/bin/jar}
BuildRequires: xorg-lib-libX11-devel
@@ -65,25 +66,16 @@
#%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
find . -name config.sub | xargs -n 1 cp -f /usr/share/automake/config.sub
-%{__autoconf}
-cd lib
-%{__autoconf}
-cd erl_interface
-%{__autoconf}
-cd ../gs
-%{__autoconf}
-cd ../megaco
-%{__autoconf}
-cd ../odbc
-%{__autoconf}
-cd ../snmp
-%{__autoconf}
-cd ../../erts/
-%{__autoconf}
-cd ..
+curd=$(pwd)
+for i in $(find . -type f -name configure.in); do
+ cd $(dirname $i)
+ %{__autoconf}
+ cd $curd
+done
%configure \
%ifarch sparc
CFLAGS="%{rpmcflags} -mv8plus" \
@@ -184,6 +176,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.62 2011/01/10 11:19:00 arekm
+- up to R14B01; replace strcpy with memcpy because fortify source won't allow to strcpy into too short array
+
Revision 1.61 2010/09/02 08:23:59 arekm
- rel 1.1; A is unstable it seems :/
================================================================
Index: packages/erlang/erlang-fortify.patch
diff -u /dev/null packages/erlang/erlang-fortify.patch:1.1
--- /dev/null Mon Jan 10 12:19:05 2011
+++ packages/erlang/erlang-fortify.patch Mon Jan 10 12:19:00 2011
@@ -0,0 +1,11 @@
+--- otp_src_R14B01/erts/emulator/drivers/common/efile_drv.c~ 2010-12-07 16:07:22.000000000 +0100
++++ otp_src_R14B01/erts/emulator/drivers/common/efile_drv.c 2011-01-10 12:05:42.950806366 +0100
+@@ -174,7 +174,7 @@
+
+ #else
+ # define FILENAME_BYTELEN(Str) strlen(Str)
+-# define FILENAME_COPY(To,From) strcpy(To,From)
++# define FILENAME_COPY(To,From) memcpy(To,From,strlen(From)+1)
+ # define FILENAME_CHARSIZE 1
+ #endif
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/erlang/erlang.spec?r1=1.61&r2=1.62&f=u
More information about the pld-cvs-commit
mailing list