Subject: pkg/25732: patch for sysutils/cdrdao (update to 1.1.8)
To: None <gnats-bugs@gnats.NetBSD.org>
From: Stefan Krüger <space7@meinberlikomm.de>
List: pkgsrc-bugs
Date: 05/27/2004 23:03:14
>Number:         25732
>Category:       pkg
>Synopsis:       newer version of cdrdao is available
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 27 21:04:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Krüger
>Release:        NetBSD 2.0F
>Organization:
	
>Environment:
	
	
System: NetBSD dsl-217-9-35-68.berlikomm.net 2.0F NetBSD 2.0F (PLUTO) #0: Thu May 27 21:59:29 CEST 2004 space7@dsl-217-9-35-68.berlikomm.net:/usr/obj/cvsroot/src/sys/arch/i386/compile/PLUTO i386
Architecture: i386
Machine: i386
>Description:
	Changelog:
	* Improved performance of the new L-EC code by up to a factor 2
	  depending on the hardware.
	* 'read-test' runs L-EC encoder over mode 1 or mode 2 form 1 sectors to
	  allow performance testing in conjunction with option --speed.
	* Fix for building on Mac OS X with gcc-3.1 (SF patch 611423).
	* Support for ATAPI drives: device is now specified as [path:]<x,y,z>,
	  such as '--device 0,0,0' or '--device ATAPI:0,1,0'. If you run Linux
	  2.6, you can also use the latest /dev/hd* interface with
	  '--device ATA:0,0,0' (Denis Leroy)
	* etc.

	patch-ac was rejected, that's why I used patch-ac from
	sysutils/cdrecord, hope this is ok...
>How-To-Repeat:
	$ cd /usr/pkgsrc/sysutils/cdrdao; make
>Fix:
	pls also close pkg/25406 when you commit this! the fix there
	doesn't need to be applied!!!

diff -uNr --exclude CVS cdrdao.orig/Makefile cdrdao/Makefile
--- cdrdao.orig/Makefile	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/Makefile	2004-05-27 22:20:03.000000000 +0200
@@ -1,8 +1,8 @@
 # $NetBSD: Makefile,v 1.15 2004/04/16 21:27:36 snj Exp $
 #
 
-DISTNAME=		${PKGNAME}.src
-PKGNAME=		cdrdao-1.1.7
+DISTNAME=		${PKGNAME}
+PKGNAME=		cdrdao-1.1.8
 CATEGORIES=		sysutils
 MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=cdrdao/}
 
@@ -16,11 +16,14 @@
 USE_LANGUAGES=		c c++
 CONFIGURE_ARGS+=	--with-pcctsbin=${PREFIX}/bin
 CONFIGURE_ARGS+=	--with-pcctsinc=${PREFIX}/include/pccts
-CONFIGURE_ARGS+=	--without-posix-threads
 CONFIGURE_ARGS+=	--with-gtkmm-exec-prefix=/dev/null
 # don't pick up an installed libcdda_paranoia
 LDFLAGS+=		-L../paranoia
 
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+=	--without-posix-threads
+.endif
+
 #override ARCH to avoid picking up a bad ${ARCH} during the build
 MAKE_ENV+=      ARCH=""
 
@@ -62,5 +65,6 @@
 		${INSTALL_MAN} ${WRKSRC}/contrib/wav2dao/wav2dao.pl \
 			${PREFIX}/share/examples/cdrdao
 
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../devel/pccts/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -uNr --exclude CVS cdrdao.orig/PLIST cdrdao/PLIST
--- cdrdao.orig/PLIST	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/PLIST	2004-05-27 22:44:01.000000000 +0200
@@ -1,7 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2002/10/29 16:47:52 drochner Exp $
+@comment $NetBSD$
 bin/cdrdao
+bin/cue2toc
 bin/toc2cue
 man/man1/cdrdao.1
+man/man1/cue2toc.1
 share/cdrdao/drivers
 share/doc/cdrdao/COPYING
 share/doc/cdrdao/CREDITS
diff -uNr --exclude CVS cdrdao.orig/distinfo cdrdao/distinfo
--- cdrdao.orig/distinfo	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/distinfo	2004-05-27 22:38:25.000000000 +0200
@@ -1,8 +1,8 @@
 $NetBSD: distinfo,v 1.6 2002/10/29 16:47:52 drochner Exp $
 
-SHA1 (cdrdao-1.1.7.src.tar.gz) = d688f8b117de367841958f1ca977100fc4e8484b
-Size (cdrdao-1.1.7.src.tar.gz) = 1433366 bytes
-SHA1 (patch-aa) = 1856f36a9dd0a5d248e94a079a63fafcff045554
-SHA1 (patch-ab) = 071fedfbc598400d9d41e050aa01c5902e97caaa
-SHA1 (patch-ac) = 7392aad2b18b670023396b47715b292d8046b495
-SHA1 (patch-ad) = e10ec407f4c4200e443364077ab6d56e1d3cd2d3
+SHA1 (cdrdao-1.1.8.tar.gz) = 6980acbf55817f83964b66205a9e8aa75e595695
+Size (cdrdao-1.1.8.tar.gz) = 1535530 bytes
+SHA1 (patch-aa) = 7a137f1907ae1d44324ee89b86217a40cb2f0e31
+SHA1 (patch-ab) = 88f7f255926204d8a907e2748141a51a3fc3f792
+SHA1 (patch-ac) = 4608827f9202ef5aed35ddda426dc7a9574bc18f
+SHA1 (patch-ad) = 905ad1573a42b0753483e1b494c55a85ae5e5746
diff -uNr --exclude CVS cdrdao.orig/patches/patch-aa cdrdao/patches/patch-aa
--- cdrdao.orig/patches/patch-aa	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/patches/patch-aa	2004-05-27 22:22:31.000000000 +0200
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.3 2002/01/07 10:16:45 tron Exp $
+$NetBSD$
 
---- dao/cdrdao.drivers.orig	Sun Apr 29 15:42:09 2001
-+++ dao/cdrdao.drivers	Mon Jan  7 10:45:34 2002
-@@ -105,6 +105,7 @@
+--- dao/cdrdao.drivers.orig	2002-09-22 18:10:52.000000000 +0200
++++ dao/cdrdao.drivers
+@@ -157,6 +157,7 @@ W|PLEXTOR|CD-R   PX-R820|generic-mmc
  W|PLEXTOR|CD-R   PX-W1210|generic-mmc|OPT_MMC_CD_TEXT
  W|PLEXTOR|CD-R   PX-W124|generic-mmc
  W|PLEXTOR|CD-R   PX-W1610|generic-mmc|OPT_MMC_CD_TEXT
diff -uNr --exclude CVS cdrdao.orig/patches/patch-ab cdrdao/patches/patch-ab
--- cdrdao.orig/patches/patch-ab	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/patches/patch-ab	2004-05-27 22:23:42.000000000 +0200
@@ -1,11 +1,12 @@
-$NetBSD: patch-ab,v 1.2 2000/07/07 16:25:04 dmcmahill Exp $
+$NetBSD$
 
 have a default scsi device which is likely to be correct (at least
 on single CD systems).
 
---- dao/main.cc.orig	Tue Oct 26 12:13:46 1999
-+++ dao/main.cc	Fri Jul  7 12:20:08 2000
-@@ -157,5 +157,9 @@
+--- dao/main.cc.orig	2004-02-12 02:13:31.000000000 +0100
++++ dao/main.cc
+@@ -111,7 +111,11 @@ static int FIFO_BUFFERS = 32;
+ 
  #else
  
 -static const char *SCSI_DEVICE = "0,0,0";
@@ -16,3 +17,4 @@
 +#endif /* __i386__ */
  static int FIFO_BUFFERS = 32;
  
+ #endif
diff -uNr --exclude CVS cdrdao.orig/patches/patch-ac cdrdao/patches/patch-ac
--- cdrdao.orig/patches/patch-ac	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/patches/patch-ac	2004-05-27 22:37:56.000000000 +0200
@@ -1,49 +1,23 @@
-$NetBSD: patch-ac,v 1.3 2002/10/29 16:47:53 drochner Exp $
+$NetBSD$
 
---- ./scsilib/include/btorder.h.orig	Sun Nov 25 16:35:10 2001
-+++ ./scsilib/include/btorder.h	Tue Oct 29 09:33:02 2002
-@@ -63,35 +63,21 @@
+--- scsilib/include/btorder.h.orig	2004-02-10 00:34:00.000000000 +0100
++++ scsilib/include/btorder.h
+@@ -28,6 +28,9 @@
+ #include <sys/types.h>			/* try to load isa_defs.h on Solaris */
+ #define	_INCL_SYS_TYPES_H
  #endif
++#ifdef __NetBSD__
++#include <machine/endian.h>
++#endif
  
+ #ifndef _MCONFIG_H
+ #include <mconfig.h>			/* load bit/byte-oder from xmconfig.h*/
+@@ -108,7 +111,7 @@ error  Only one of _BIT_FIELDS_LTOH or _
+ #	if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
+ 	    defined(__PPC) || defined(powerpc) || defined(__powerpc__)
  
--/*
-- * Convert byte-order definitions from xconfig.h into our values
-- * and verify them.
-- */
--#if defined(HAVE_C_BIGENDIAN)	&& \
--   !defined(WORDS_BIGENDIAN)
--#define	WORDS_LITTLEENDIAN
--#define	_LITTLE_ENDIAN
--#endif
--
--#if defined(HAVE_C_BIGENDIAN)	&& \
--    defined(WORDS_BIGENDIAN)
--#define	_BIG_ENDIAN
--#endif
--
--#if	defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
--/*
-- * #error will not work for all compilers (e.g. sunos4)
-- * The following line will abort compilation on all compilers
-- * if none of the above is defines. And that's  what we want.
-- */
--error  Only one of _LITTLE_ENDIAN or _BIG_ENDIAN may be defined
--#endif
- 
- 
- #if	defined(_BIT_FIELDS_LTOH) || defined(_BIT_FIELDS_HTOL)
- /*
-  * Bitorder is already known.
-  */
-+
-+#elif defined(__NetBSD__)
-+#include <machine/endian.h>
-+#if   BYTE_ORDER == LITTLE_ENDIAN
-+#define _BIT_FIELDS_LTOH
-+#else
-+#define _BIT_FIELDS_HTOL
-+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
-+
- #else
- /*
-  * Bitorder not yet known.
+-#		if	defined(__BIG_ENDIAN__)
++#		if	defined(__BIG_ENDIAN__) || BYTE_ORDER == BIG_ENDIAN
+ #			define _BIT_FIELDS_HTOL
+ #		else
+ #			define _BIT_FIELDS_LTOH
diff -uNr --exclude CVS cdrdao.orig/patches/patch-ad cdrdao/patches/patch-ad
--- cdrdao.orig/patches/patch-ad	2004-05-27 22:12:57.000000000 +0200
+++ cdrdao/patches/patch-ad	2004-05-27 22:38:18.000000000 +0200
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.1 2002/08/30 08:19:12 drochner Exp $
+$NetBSD$
 
---- dao/GenericMMC.cc.orig	Thu Aug 15 17:54:49 2002
-+++ dao/GenericMMC.cc	Thu Aug 15 17:57:53 2002
-@@ -1693,6 +1693,7 @@
+--- dao/GenericMMC.cc.orig	2004-02-12 02:13:30.000000000 +0100
++++ dao/GenericMMC.cc
+@@ -2011,6 +2011,7 @@ CdRawToc *GenericMMC::getRawToc(int sess
    }
  
    dataLen = ((reqData[0] << 8) | reqData[1]) + 2;
>Release-Note:
>Audit-Trail:
>Unformatted: