rpms/dvd+rw-tools/FC-6 dvd+rw-tools-7.0-pthread.patch, NONE, 1.1 dvd+rw-tools.spec, 1.25, 1.26

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Dec 14 17:33:59 UTC 2006


Author: harald

Update of /cvs/dist/rpms/dvd+rw-tools/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv12597

Modified Files:
	dvd+rw-tools.spec 
Added Files:
	dvd+rw-tools-7.0-pthread.patch 
Log Message:
- set pthread stack size according to limit (#215818)


dvd+rw-tools-7.0-pthread.patch:
 mp.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

--- NEW FILE dvd+rw-tools-7.0-pthread.patch ---
--- dvd+rw-tools-7.0/mp.h.pthread	2006-09-23 19:45:50.000000000 +0200
+++ dvd+rw-tools-7.0/mp.h	2006-12-14 15:48:45.000000000 +0100
@@ -31,15 +31,19 @@
 #include <sched.h>
 #include <semaphore.h>
 #include <stdlib.h>
+#include <limits.h>
 
 #define THR_TYPE int
 
 static void *__thread_create(int (*func)(void *),void *arg)
 { pthread_t h;
   pthread_attr_t attr;
+  size_t stack_sz;
+
+  stack_sz = (PTHREAD_STACK_MIN > 64*1024) ? PTHREAD_STACK_MIN : 64*1024;
 
     if (pthread_attr_init(&attr)==0 &&
-	pthread_attr_setstacksize(&attr,64*1024)==0 &&
+	pthread_attr_setstacksize(&attr,stack_sz)==0 &&
 	pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 &&
 	pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 )
 	return (void *)h;


Index: dvd+rw-tools.spec
===================================================================
RCS file: /cvs/dist/rpms/dvd+rw-tools/FC-6/dvd+rw-tools.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- dvd+rw-tools.spec	13 Dec 2006 14:00:39 -0000	1.25
+++ dvd+rw-tools.spec	14 Dec 2006 17:33:57 -0000	1.26
@@ -1,12 +1,13 @@
 Summary:	Toolchain to master DVD+RW/+R media
 Name:		dvd+rw-tools
 Version:	7.0
-Release: 	0%{dist}.3
+Release: 	0%{dist}.4
 License:	GPL
 Group:		Applications/Multimedia
 Source:		http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-%{version}.tar.gz
 Source1: 	index.html
-Patch: 		dvd+rw-tools-7.0-phys.patch
+Patch1:		dvd+rw-tools-7.0-phys.patch
+Patch2:		dvd+rw-tools-7.0-pthread.patch
 URL:		http://fy.chalmers.se/~appro/linux/DVD+RW/
 Requires:	mkisofs >= 2.0
 BuildRoot:	%{_tmppath}/%{name}-root
@@ -18,7 +19,8 @@
 
 %prep
 %setup -q  -n %{name}-%{version}
-%patch -p1 -b .phys
+%patch1 -p1 -b .phys
+%patch2 -p1 -b .pthread
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS"
@@ -45,6 +47,9 @@
 %{_mandir}/man1/growisofs.1*
 
 %changelog
+* Thu Dec 14 2006 Harald Hoyer <harald at redhat.com> - 7.0-0%{dist}.4
+- set pthread stack size according to limit (#215818)
+
 * Wed Dec 13 2006 Harald Hoyer <harald at redhat.com> - 7.0-0%{dist}.3
 - use _SC_PHYS_PAGES instead of _SC_AVPHYS_PAGES to determine available memory
 - Resolves: rhbz#216794




More information about the fedora-cvs-commits mailing list