[arch-commits] Commit in libcdio/trunk (PKGBUILD fix-loop.patch)

Jan de Groot jgc at archlinux.org
Wed Apr 15 07:15:42 EDT 2009


    Date: Wednesday, April 15, 2009 @ 07:15:42
  Author: jgc
Revision: 35679

upgpkg: libcdio 0.81-2
    Fix endless loop when no optical devices are present (FS#14233)

Added:
  libcdio/trunk/fix-loop.patch
Modified:
  libcdio/trunk/PKGBUILD

----------------+
 PKGBUILD       |    9 ++++++---
 fix-loop.patch |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-15 11:15:33 UTC (rev 35678)
+++ PKGBUILD	2009-04-15 11:15:42 UTC (rev 35679)
@@ -4,7 +4,7 @@
 
 pkgname=libcdio
 pkgver=0.81
-pkgrel=1
+pkgrel=2
 pkgdesc="GNU Compact Disc Input and Control Library"
 arch=("i686" "x86_64")
 license=('GPL3')
@@ -12,11 +12,14 @@
 depends=('gcc-libs>=4.3.3' 'libcddb' 'ncurses')
 options=('!libtool')
 install=libcdio.install
-source=(http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz)
-md5sums=('2ad1622b672ccf53a3444a0c55724d38')
+source=(http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz
+	fix-loop.patch)
+md5sums=('2ad1622b672ccf53a3444a0c55724d38'
+	 '31cb8c3bf42761c467379c97798f0320')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i "${srcdir}/fix-loop.patch" || return 1
   ./configure --prefix=/usr --disable-vcd-info --enable-cpp-progs || return 1
   make || return 1
   make -j1 DESTDIR="${pkgdir}" install || return 1

Added: fix-loop.patch
===================================================================
--- fix-loop.patch	                        (rev 0)
+++ fix-loop.patch	2009-04-15 11:15:42 UTC (rev 35679)
@@ -0,0 +1,15 @@
+X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=libcdio.git;a=blobdiff_plain;f=lib%2Fdriver%2Fgnu_linux.c;h=092af0d661ecb2c3e9435f0847017e1ff36040ba;hp=7e2f3c449de78af0004dd07ef3b243333bc3a401;hb=7c497a2c735b695cdbedc3cfb80348bad847ba00;hpb=37f248aa4685cae0187f3e100623a94320944251
+
+diff --git a/lib/driver/gnu_linux.c b/lib/driver/gnu_linux.c
+index 7e2f3c4..092af0d 100644
+--- a/lib/driver/gnu_linux.c
++++ b/lib/driver/gnu_linux.c
+@@ -1448,7 +1448,7 @@ cdio_get_default_device_linux(void)
+   /* Scan the system for CD-ROM drives.
+      Not always 100% reliable, so use the USE_MNTENT code above first.
+   */
+-  for ( i=0; checklist2[i].format; ++i ) {
++  for ( i=0; i < checklist2_size; ++i ) {
+     unsigned int j;
+     for ( j=checklist2[i].num_min; j<=checklist2[i].num_max; ++j ) {
+       if (snprintf(drive, sizeof(drive), checklist2[i].format, j) < 0)



More information about the arch-commits mailing list