Hi, I updated the patch to actually apply, and added a patch header.
Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
#! /bin/sh /usr/share/dpatch/dpatch-run ## 11-bufsize.dpatch by Miklos Juhasz <[EMAIL PROTECTED]> ## ## DP: _SC_AVPHYS_PAGES is always pretty small, since most RAM is usually taken ## DP: by cache. Use _SC_PHYS_PAGES instead, which allows the user to select an ## DP: appropriate size on his own. ## DP: Ubuntu: https://bugs.launchpad.net/bugs/162736 ## DP: Debian: http://bugs.debian.org/404528 @DPATCH@ diff -urNad dvd+rw-tools-7.0~/growisofs.c dvd+rw-tools-7.0/growisofs.c --- dvd+rw-tools-7.0~/growisofs.c 2008-04-02 12:39:47.000000000 +0200 +++ dvd+rw-tools-7.0/growisofs.c 2008-04-02 12:40:46.000000000 +0200 @@ -3114,12 +3114,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; }
signature.asc
Description: Digital signature