From ad0702c7c35eadaea806f8dbf91dcaf7761ac06d Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Sat, 14 Nov 2009 17:03:14 +0100 Subject: [PATCH] udftools: fixed to build against glibc-2.9 --- filesystem/udftools/gcc41.patch | 27 ------------- filesystem/udftools/hot_fixes.patch | 60 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 27 deletions(-) delete mode 100644 filesystem/udftools/gcc41.patch create mode 100644 filesystem/udftools/hot_fixes.patch diff --git a/filesystem/udftools/gcc41.patch b/filesystem/udftools/gcc41.patch deleted file mode 100644 index 3e658e3b4..000000000 --- a/filesystem/udftools/gcc41.patch +++ /dev/null @@ -1,27 +0,0 @@ -# --- SDE-COPYRIGHT-NOTE-BEGIN --- -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# -# Filename: package/.../udftools/gcc41.patch -# Copyright (C) 2006 The T2 SDE Project -# -# More information can be found in the files COPYING and README. -# -# This patch file is dual-licensed. It is available under the license the -# patched project is licensed under, as long as it is an OpenSource license -# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms -# of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# --- SDE-COPYRIGHT-NOTE-END --- - ---- udftools-1.0.0b3/wrudf/wrudf.c.vanilla 2006-04-19 18:03:09.000000000 +0200 -+++ udftools-1.0.0b3/wrudf/wrudf.c 2006-04-19 18:03:39.000000000 +0200 -@@ -245,7 +245,7 @@ - } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 ) - virtualPartitionNum = i; - } -- (char*)spm += spm->partitionMapLength; -+ spm = ((char*) spm) + spm->partitionMapLength; - } - - if( medium == CDR ) { diff --git a/filesystem/udftools/hot_fixes.patch b/filesystem/udftools/hot_fixes.patch new file mode 100644 index 000000000..2fb023279 --- /dev/null +++ b/filesystem/udftools/hot_fixes.patch @@ -0,0 +1,60 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../udftools/hot_fixes.patch +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Submitted By: Guy Dalziel +Date: 2009-08-06 +Initial Package Version: 1.0.0b3 +Upstream Status: Sent +Origin: Debian, Dan Nicholson, and Guy Dalziel +Description: Fixes compilation issues with gcc-4: + wrudf.c:248: error: lvalue required as left operand of assignment + cdrwtool.c:606: error: 'INT_MAX' undeclared (first use in this function) + pktsetup.c:66: error: 'INT_MAX' undeclared (first use in this function) + +diff -Naur ./cdrwtool/cdrwtool.c.orig ./cdrwtool/cdrwtool.c +--- ./cdrwtool/cdrwtool.c.orig 2002-12-28 04:48:51.000000000 +0000 ++++ ./cdrwtool/cdrwtool.c 2009-08-06 12:41:08.909353809 +0100 +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + #include + #include +diff -Naur ./pktsetup/pktsetup.c.orig ./pktsetup/pktsetup.c +--- ./pktsetup/pktsetup.c.orig 2002-11-26 07:18:51.000000000 +0000 ++++ ./pktsetup/pktsetup.c 2009-08-06 12:41:31.864951075 +0100 +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + #include + #include + +diff -Naur ./wrudf/wrudf.c.orig ./wrudf/wrudf.c +--- ./wrudf/wrudf.c.orig 2002-11-26 07:18:51.000000000 +0000 ++++ ./wrudf/wrudf.c 2009-08-06 12:40:50.258305159 +0100 +@@ -245,7 +245,7 @@ + } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 ) + virtualPartitionNum = i; + } +- (char*)spm += spm->partitionMapLength; ++ spm = (char*)spm + spm->partitionMapLength; + } + + if( medium == CDR ) {