Coin,

Sorry, i forgot to attach the patch :-).

--
Marc Dequènes (Duck)
diff -Nur orig/libcdio-0.78.2+dfsg1/debian/changelog libcdio-0.78.2+dfsg1/debian/changelog
--- orig/libcdio-0.78.2+dfsg1/debian/changelog	2009-05-25 13:37:27.000000000 +0200
+++ libcdio-0.78.2+dfsg1/debian/changelog	2009-05-25 12:50:38.000000000 +0200
@@ -1,3 +1,9 @@
+libcdio (0.78.2+dfsg1-3+hurdfr1) unreleased; urgency=low
+
+  * Added 'posixness_fix' patch to correct POSIX incompatibilities.
+
+ -- Marc Dequènes (Duck) <[email protected]>  Mon, 25 May 2009 12:50:32 +0200
+
 libcdio (0.78.2+dfsg1-3) unstable; urgency=low
 
   * Fix the time-conversion functions of libiso9660, taking the changes
diff -Nur orig/libcdio-0.78.2+dfsg1/debian/patches/posixness_fix libcdio-0.78.2+dfsg1/debian/patches/posixness_fix
--- orig/libcdio-0.78.2+dfsg1/debian/patches/posixness_fix	1970-01-01 01:00:00.000000000 +0100
+++ libcdio-0.78.2+dfsg1/debian/patches/posixness_fix	2009-05-25 12:56:43.000000000 +0200
@@ -0,0 +1,30 @@
+Index: libcdio-0.78.2+dfsg1/lib/cdda_interface/scan_devices.c
+===================================================================
+--- libcdio-0.78.2+dfsg1.orig/lib/cdda_interface/scan_devices.c	2009-05-25 12:54:40.000000000 +0200
++++ libcdio-0.78.2+dfsg1/lib/cdda_interface/scan_devices.c	2009-05-25 12:54:56.000000000 +0200
+@@ -39,6 +39,10 @@
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #endif
++ 
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
+ 
+ #define MAX_DEV_LEN 20 /* Safe because strings only come from below */
+ /* must be absolute paths! */
+Index: libcdio-0.78.2+dfsg1/lib/driver/gnu_linux.c
+===================================================================
+--- libcdio-0.78.2+dfsg1.orig/lib/driver/gnu_linux.c	2009-05-25 12:54:13.000000000 +0200
++++ libcdio-0.78.2+dfsg1/lib/driver/gnu_linux.c	2009-05-25 12:54:24.000000000 +0200
+@@ -74,6 +74,10 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
++ 
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
+ 
+ typedef enum {
+   _AM_NONE,
diff -Nur orig/libcdio-0.78.2+dfsg1/debian/patches/series libcdio-0.78.2+dfsg1/debian/patches/series
--- orig/libcdio-0.78.2+dfsg1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ libcdio-0.78.2+dfsg1/debian/patches/series	2009-05-25 12:50:09.000000000 +0200
@@ -0,0 +1 @@
+posixness_fix
diff -Nur orig/libcdio-0.78.2+dfsg1/debian/rules libcdio-0.78.2+dfsg1/debian/rules
--- orig/libcdio-0.78.2+dfsg1/debian/rules	2009-05-25 13:37:27.000000000 +0200
+++ libcdio-0.78.2+dfsg1/debian/rules	2009-05-25 12:58:54.000000000 +0200
@@ -6,6 +6,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/quilt/quilt.make
 
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)
@@ -32,7 +33,7 @@
 	CFLAGS="$(CFLAGS)" ./configure --disable-cddb --disable-vcd-info --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
 build: build-stamp
-build-stamp:  config.status
+build-stamp: $(QUILT_STAMPFN) config.status
 	dh_testdir
 
 	# Add here commands to compile the package.
@@ -43,7 +44,7 @@
 endif
 	touch build-stamp
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp 

Attachment: pgpEqEcO9F4Ex.pgp
Description: PGP Digital Signature

Reply via email to