Package: dvd+rw-tools
Version: 7.0-9
Tags: patch
Followup-For: Bug #404528
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch
Please find attached the patch to fix this.
It has been provided by Miklós Juhász at
https://launchpad.net/bugs/162736.
Thank you.
--- dvd+rw-tools-7.0.orig/debian/patches/11-bufsize.dpatch
+++ dvd+rw-tools-7.0/debian/patches/11-bufsize.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11-bufsize.dpatch by Miklos Juhasz <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
[EMAIL PROTECTED]@
+diff -urNad dvd+rw-tools-7.0~/growisofs.c dvd+rw-tools-7.0/growisofs.c
+--- dvd+rw-tools-7.0~/growisofs.c 2006-09-24 19:28:53.000000000 +0200
++++ dvd+rw-tools-7.0/growisofs.c 2008-03-21 19:47:58.000000000 +0100
+@@ -3096,12 +3096,12 @@
+
+ #if defined(__unix) || defined(__unix__)
+
+-#if defined(_SC_PAGESIZE) && defined(_SC_AVPHYS_PAGES)
+- { size_t phys_mem = (size_t)sysconf(_SC_AVPHYS_PAGES) *
++#if defined(_SC_PAGESIZE) && defined(_SC_PHYS_PAGES)
++ { size_t phys_mem = (size_t)sysconf(_SC_PHYS_PAGES) *
+ (size_t)sysconf(_SC_PAGESIZE);
+
+ if (phys_mem)
+- { phys_mem /= 2; /* normally AVPHYS is a bit smaller, so
++ { phys_mem /= 2; /* normally PHYS is a bit smaller, so
+ * we commonly land on 1/4 RAM */
+ while (the_buffer_size > phys_mem) the_buffer_size /= 2;
+ }