[arch-commits] Commit in libcdio/trunk (2 files)

Jan de Groot jgc at nymeria.archlinux.org
Tue Jan 14 10:17:12 UTC 2014


    Date: Tuesday, January 14, 2014 @ 11:17:12
  Author: jgc
Revision: 204023

upgpkg: libcdio 0.92-1

Update to 0.92, soname bumps

Modified:
  libcdio/trunk/PKGBUILD
Deleted:
  libcdio/trunk/udf-Dont-return-freed-memory-from-udf_fopen.patch

---------------------------------------------------+
 PKGBUILD                                          |   25 +++++++--------
 udf-Dont-return-freed-memory-from-udf_fopen.patch |   33 --------------------
 2 files changed, 13 insertions(+), 45 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-14 10:04:58 UTC (rev 204022)
+++ PKGBUILD	2014-01-14 10:17:12 UTC (rev 204023)
@@ -3,8 +3,8 @@
 # Contributor: damir <damir at archlinux.org>
 
 pkgname=libcdio
-pkgver=0.90
-pkgrel=2
+pkgver=0.92
+pkgrel=1
 pkgdesc="GNU Compact Disc Input and Control Library"
 arch=('i686' 'x86_64')
 license=('GPL3')
@@ -12,23 +12,24 @@
 depends=('libcddb' 'ncurses' 'gcc-libs')
 install=libcdio.install
 source=(http://ftp.gnu.org/gnu/libcdio/${pkgname}-${pkgver}.tar.gz{,.sig}
-        libcdio-0.83-linking.patch
-        udf-Dont-return-freed-memory-from-udf_fopen.patch)
-md5sums=('1b245b023fb03a58d030fd2800db3247'
-         '45100d90ea49d6f8481eddf709655c0f'
-         '5a7f50209c03d5919d5b932f07871af7'
-         'b7b50c989575e5484d3992b455c9df48')
+        libcdio-0.83-linking.patch)
+md5sums=('86f3f2869c1d34e4c6e52db77992b918'
+         'SKIP'
+         '5a7f50209c03d5919d5b932f07871af7')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i ../libcdio-0.83-linking.patch
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i ../libcdio-0.83-linking.patch
-  patch -Np1 -i ../udf-Dont-return-freed-memory-from-udf_fopen.patch
+  cd ${pkgname}-${pkgver}
   ./configure --prefix=/usr --disable-vcd-info --enable-cpp-progs --disable-static
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   make -j1 DESTDIR="${pkgdir}" install
   
   sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \

Deleted: udf-Dont-return-freed-memory-from-udf_fopen.patch
===================================================================
--- udf-Dont-return-freed-memory-from-udf_fopen.patch	2014-01-14 10:04:58 UTC (rev 204022)
+++ udf-Dont-return-freed-memory-from-udf_fopen.patch	2014-01-14 10:17:12 UTC (rev 204023)
@@ -1,33 +0,0 @@
-From 6c0251d145e44b7cdfeb9767c615646fb8f51320 Mon Sep 17 00:00:00 2001
-From: Christophe Fergeau <cfergeau at redhat.com>
-Date: Thu, 22 Nov 2012 13:53:15 +0100
-Subject: [PATCH] udf: Don't return freed memory from udf_fopen
-
-When trying to open a file located in the root directory of the
-UDF filesystem, we call udf_ff_open with the dirent corresponding
-to the root dir and the filename. In this case, udf_ff_open will
-return the same dirent as the one that was passed as argument, so
-we must not free it as we'll be returning it.
-This causes a crash with iso-read when trying to read a file located
-at the root of the image.
----
- lib/udf/udf_fs.c |    3 ++-
- 1 files changed, 2 insertions(+), 1 deletions(-)
-
-diff --git a/lib/udf/udf_fs.c b/lib/udf/udf_fs.c
-index 5f5add7..1e0601e 100644
---- a/lib/udf/udf_fs.c
-+++ b/lib/udf/udf_fs.c
-@@ -257,7 +257,8 @@ udf_fopen(udf_dirent_t *p_udf_root, const char *psz_name)
- 		       p_udf_root->psz_name, p_udf_root->b_dir, 
- 		       p_udf_root->b_parent);
-       p_udf_file = udf_ff_traverse(p_udf_dirent, psz_token);
--      udf_dirent_free(p_udf_dirent);
-+      if (p_udf_file != p_udf_dirent)
-+        udf_dirent_free(p_udf_dirent);
-     }
-     else if ( 0 == strncmp("/", psz_name, sizeof("/")) ) {
-       return udf_new_dirent(&p_udf_root->fe, p_udf_root->p_udf,
--- 
-1.7.2.5
-




More information about the arch-commits mailing list