2007-02-28 [email protected]
authorbmarkgraf
Thu, 01 Mar 2007 09:58:59 +0000
changeset 154 9f2e7c7417ea
parent 153 beb249666e26
child 155 be3fdd993e3f
2007-02-28 [email protected] * netpbm needs to include stdlib.h in generator/ppmrough.c for RAND_MAX
ChangeLog
SFEnetpbm.spec
patches/netpbm-02-stdlib.diff
--- a/ChangeLog	Thu Mar 01 06:23:21 2007 +0000
+++ b/ChangeLog	Thu Mar 01 09:58:59 2007 +0000
@@ -1,3 +1,8 @@
+2007-02-28   [email protected]
+
+	* netpbm needs to include stdlib.h in generator/ppmrough.c
+	  for RAND_MAX
+
 2007-03-01  simon.zheng  <[email protected]>
 
 	* SFEgnomescan.spec: Bump to 0.4.0.4
--- a/SFEnetpbm.spec	Thu Mar 01 06:23:21 2007 +0000
+++ b/SFEnetpbm.spec	Thu Mar 01 09:58:59 2007 +0000
@@ -11,6 +11,7 @@
 Version:                 10.35
 Patch1:			 netpbm-01-strings.diff
 Patch2:			 netpbm-Makefile.conf
+Patch3:			 netpbm-02-stdlib.diff
 SUNW_BaseDir:            %{_basedir}
 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
 %include default-depend.inc
@@ -34,6 +35,7 @@
 [ ! -d netpbm ] && bunzip2 -c ../../SOURCES/netpbm-%version.tar.bz2 | tar fxp -
 cd netpbm
 %patch1 -p1
+%patch3 -p1
 cat Makefile.config.in %{PATCH2} > Makefile.config
 touch Makefile.depend
 
@@ -85,5 +87,7 @@
 %{_includedir}/*
 
 %changelog
+* Wed Feb 28 2007 - [email protected]
+- need to include stdlib.h in generator/ppmrough.c
 * Thu Nov 22 2006 - [email protected]
 - Initial version
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/netpbm-02-stdlib.diff	Thu Mar 01 09:58:59 2007 +0000
@@ -0,0 +1,11 @@
+diff -urN netpbm/generator/ppmrough.c netpbm.n/generator/ppmrough.c
+--- netpbm/generator/ppmrough.c	2007-02-28 18:26:22.363728990 +0100
++++ netpbm.n/generator/ppmrough.c	2007-02-28 18:26:00.958746785 +0100
+@@ -10,6 +10,7 @@
+ ** documentation.  This software is provided "as is" without express or
+ ** implied warranty.  */
+ 
++#include <stdlib.h>
+ #include <math.h>
+ #include <sys/time.h>
+ #include "ppm.h"