diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2008-06-15 06:23:08 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2008-06-15 06:23:08 +0000 |
commit | 1b8b2dca23f322fc1f44674eb0b503abbabd15c0 (patch) | |
tree | 75d08d7b2b621cb84ed9eb449e57b925107be9f7 /app-cdr/dvd+rw-tools/files | |
parent | Bug #226505 - For compatibility with phase execution order in (diff) | |
download | historical-1b8b2dca23f322fc1f44674eb0b503abbabd15c0.tar.gz historical-1b8b2dca23f322fc1f44674eb0b503abbabd15c0.tar.bz2 historical-1b8b2dca23f322fc1f44674eb0b503abbabd15c0.zip |
old
Package-Manager: portage-2.1.5.5
Diffstat (limited to 'app-cdr/dvd+rw-tools/files')
-rw-r--r-- | app-cdr/dvd+rw-tools/files/01_all_samsung-media-fix.patch | 16 | ||||
-rw-r--r-- | app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-thread-stack-size.patch | 41 |
2 files changed, 0 insertions, 57 deletions
diff --git a/app-cdr/dvd+rw-tools/files/01_all_samsung-media-fix.patch b/app-cdr/dvd+rw-tools/files/01_all_samsung-media-fix.patch deleted file mode 100644 index c9e92e8867c7..000000000000 --- a/app-cdr/dvd+rw-tools/files/01_all_samsung-media-fix.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- dvd+rw-tools-5.21.4.10.8/transport.hxx 2004-08-25 01:36:29.000000000 +0200 -+++ dvd+rw-tools-5.21.4.10.8/transport.hxx 2004-10-21 12:46:33.260850008 +0200 -@@ -1551,7 +1551,12 @@ - p[3] &= 0x3F; // always Single-session? - - // setup Data Block Type -- if ((track[6]&0x0F)==1) p[4] = 8; -+ // Some units [e.g. Toshiba/Samsung TS-H542A] return "unknown Data -+ // Block Type" in track[6]&0x0F field. Essentially it's a firmware -+ // glitch, yet it makes certain sense, as track may not be written -+ // yet... -+ if ((track[6]&0x0F)==1 || (track[6]&0x0F)==0x0F) -+ p[4] = 8; - else fprintf (stderr,":-( none Mode 1 track\n"), - exit(FATAL_START(EMEDIUMTYPE)); - diff --git a/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-thread-stack-size.patch b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-thread-stack-size.patch deleted file mode 100644 index ab0f1173634a..000000000000 --- a/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-thread-stack-size.patch +++ /dev/null @@ -1,41 +0,0 @@ -Respect PTHREAD_STACK_MIN when defined - -Some systems (like PowerPC) cannot work with 64k thread stacks. Setting the -stack lower will error and the whole process aborts. An example error: -$ growisofs -dvd-compat -Z /dev/hda=my.iso -Executing 'builtin_dd if=my.iso of=/dev/hda obs=32k seek=0' -:-( failed to create thread: Input/output error - -So if the minimum required size is larger than 64k, we'll just use whatever -the system defines. If it is smaller, we'll stick with 64k. - -Signed-off-by: Mike Frysinger <vapier@gentoo.org> - ---- dvd+rw-tools-7.0/mp.h -+++ dvd+rw-tools-7.0/mp.h -@@ -31,6 +31,16 @@ - #include <sched.h> - #include <semaphore.h> - #include <stdlib.h> -+#include <limits.h> -+ -+/* some systems (like powerpc) cannot work with 64k stacks */ -+#define MY_STACK_SIZE 64*1024 -+#ifdef PTHREAD_STACK_MIN -+# if MY_STACK_SIZE < PTHREAD_STACK_MIN -+# undef MY_STACK_SIZE -+# define MY_STACK_SIZE PTHREAD_STACK_MIN -+# endif -+#endif - - #define THR_TYPE int - -@@ -39,7 +49,7 @@ - pthread_attr_t attr; - - if (pthread_attr_init(&attr)==0 && -- pthread_attr_setstacksize(&attr,64*1024)==0 && -+ pthread_attr_setstacksize(&attr,MY_STACK_SIZE)==0 && - pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 && - pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 ) - return (void *)h; |