pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/cdparanoia Simplify previous. We don't need to c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d29dac148e3
branches:  trunk
changeset: 393254:6d29dac148e3
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Tue May 19 00:36:06 2009 +0000

description:
Simplify previous. We don't need to call getrawpartition() to find out
whether to use /dev/rcd0c or /dev/rcd0d; we can just try both. This
avoids needing libutil in libcdda_interface.so. Fixes broken build of
mplayer (and others?) without needing a recursive revbump as adding
libutil would have. PKGREVISION++ (now 8).

diffstat:

 audio/cdparanoia/Makefile         |   4 +-
 audio/cdparanoia/distinfo         |   8 +-
 audio/cdparanoia/patches/patch-ab |   6 +-
 audio/cdparanoia/patches/patch-ca |  15 +-----
 audio/cdparanoia/patches/patch-cf |  91 +++++++++++++-------------------------
 5 files changed, 43 insertions(+), 81 deletions(-)

diffs (truncated from 378 to 300 lines):

diff -r 53346cd3a7be -r 6d29dac148e3 audio/cdparanoia/Makefile
--- a/audio/cdparanoia/Makefile Mon May 18 22:18:42 2009 +0000
+++ b/audio/cdparanoia/Makefile Tue May 19 00:36:06 2009 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.26 2009/05/17 21:29:33 dholland Exp $
+# $NetBSD: Makefile,v 1.27 2009/05/19 00:36:06 dholland Exp $
 #
 
 DISTNAME=      cdparanoia-III-alpha9.8
 PKGNAME=       cdparanoia-3.0.9.8
-PKGREVISION=   7
+PKGREVISION=   8
 CATEGORIES=    audio
 MASTER_SITES=  http://www.xiph.org/paranoia/download/
 EXTRACT_SUFX=  .src.tgz
diff -r 53346cd3a7be -r 6d29dac148e3 audio/cdparanoia/distinfo
--- a/audio/cdparanoia/distinfo Mon May 18 22:18:42 2009 +0000
+++ b/audio/cdparanoia/distinfo Tue May 19 00:36:06 2009 +0000
@@ -1,20 +1,20 @@
-$NetBSD: distinfo,v 1.21 2009/05/17 21:29:33 dholland Exp $
+$NetBSD: distinfo,v 1.22 2009/05/19 00:36:06 dholland Exp $
 
 SHA1 (cdparanoia-III-alpha9.8.src.tgz) = 04cc33a7d22d6255f6239e3e74195506b3bdde06
 RMD160 (cdparanoia-III-alpha9.8.src.tgz) = d9225165f83b5386c58db263d6918a7006df1481
 Size (cdparanoia-III-alpha9.8.src.tgz) = 116591 bytes
 SHA1 (patch-aa) = 29fd5767b37360fe804013bb171fc7e5f4d8311f
-SHA1 (patch-ab) = fcbeaf7f3e1318ef8bcc8742adec3a3a7efc937e
+SHA1 (patch-ab) = d02dd70c45ec97e859c024d11d7bc74c79d96f62
 SHA1 (patch-ac) = 6bd7ad7a0e8bcd1f8354c73706cafb0e789b8252
 SHA1 (patch-ad) = 9a1ea1b98b5f3810e1ccae57beb8c68b5e189716
 SHA1 (patch-ae) = 59d74c0392d5bcc37299326efa8ba700722d5cf4
 SHA1 (patch-ba) = 51151796493c946e5bdafbd22005136ea7f27a09
-SHA1 (patch-ca) = 433b7ddd7d1cf0123dadfdff8e550381eaf51f22
+SHA1 (patch-ca) = 9c35254c09a96b622cac44198443f66f7bc0e428
 SHA1 (patch-cb) = c19ee04017b836842bb0f2d2c77e8f35aad0f9bb
 SHA1 (patch-cc) = adea4fd9682c0543e5749c6f3fe73697d8663c6c
 SHA1 (patch-cd) = 81d31fb55db0f982959395cdecc3da826bf23bfb
 SHA1 (patch-ce) = 3a4e9a83753e2eb6595bcb4e7a47c42b72ef5702
-SHA1 (patch-cf) = ae8c19f7df5dbb97c258ea808834c3e13809b185
+SHA1 (patch-cf) = 6236318d39f9d3d1e5f93a91048ec2777291dc63
 SHA1 (patch-cg) = c962cbc84f021e399b6f210d0e7a140fd7004222
 SHA1 (patch-ch) = 8d16dd8c80e8f1ee35ccc299ba927d685adde01c
 SHA1 (patch-ci) = 60db1d1d2e8ec9c6d446543762218b22c597d986
diff -r 53346cd3a7be -r 6d29dac148e3 audio/cdparanoia/patches/patch-ab
--- a/audio/cdparanoia/patches/patch-ab Mon May 18 22:18:42 2009 +0000
+++ b/audio/cdparanoia/patches/patch-ab Tue May 19 00:36:06 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.8 2009/05/17 21:29:34 dholland Exp $
+$NetBSD: patch-ab,v 1.9 2009/05/19 00:36:06 dholland Exp $
 
 --- Makefile.in.orig   2001-03-27 17:46:58.000000000 -0500
 +++ Makefile.in        2009-05-17 17:21:32.000000000 -0400
@@ -32,11 +32,11 @@
 -      LIBS = -lcdda_interface -lcdda_paranoia -lm
 -      LIBDEP = interface/libcdda_interface.so paranoia/libcdda_paranoia.so
 -endif
-+STLIBS = interface/libcdda_interface.a paranoia/libcdda_paranoia.a @LIBUTIL@ -lm
++STLIBS = interface/libcdda_interface.a paranoia/libcdda_paranoia.a -lm
 +STLIBDEP = interface/libcdda_interface.a paranoia/libcdda_paranoia.a
  
 +SHLIBDEP = interface/libcdda_interface.la paranoia/libcdda_paranoia.la
-+SHLIBS = $(SHLIBDEP) @LIBUTIL@ @EXTRA_LIBS@ -lm
++SHLIBS = $(SHLIBDEP) @EXTRA_LIBS@ -lm
  
 -all:  
 +
diff -r 53346cd3a7be -r 6d29dac148e3 audio/cdparanoia/patches/patch-ca
--- a/audio/cdparanoia/patches/patch-ca Mon May 18 22:18:42 2009 +0000
+++ b/audio/cdparanoia/patches/patch-ca Tue May 19 00:36:06 2009 +0000
@@ -1,16 +1,7 @@
-$NetBSD: patch-ca,v 1.6 2009/05/17 21:29:34 dholland Exp $
+$NetBSD: patch-ca,v 1.7 2009/05/19 00:36:06 dholland Exp $
 
---- interface/Makefile.in.orig 1999-12-13 23:27:59.000000000 -0500
-+++ interface/Makefile.in      2009-05-17 17:16:52.000000000 -0400
-@@ -7,7 +7,7 @@ VPATH=@srcdir@
- srcdir=@srcdir@
- 
- @SET_MAKE@
--FLAGS=@SBPCD_H@ @UCDROM_H@ @TYPESIZES@ @CFLAGS@
-+FLAGS=@SBPCD_H@ @UCDROM_H@ @RAWPART@ @TYPESIZES@ @CFLAGS@
- OPT=@OPT@ $(FLAGS)
- DEBUG=@DEBUG@ $(FLAGS) -DCDDA_TEST
- CC=@CC@
+--- interface/Makefile.in.orig 1999-12-13 20:27:59.000000000 -0800
++++ interface/Makefile.in
 @@ -18,12 +18,10 @@ RANLIB=@RANLIB@
  LIBS = -lm
  CPPFLAGS+=-D_REENTRANT
diff -r 53346cd3a7be -r 6d29dac148e3 audio/cdparanoia/patches/patch-cf
--- a/audio/cdparanoia/patches/patch-cf Mon May 18 22:18:42 2009 +0000
+++ b/audio/cdparanoia/patches/patch-cf Tue May 19 00:36:06 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-cf,v 1.9 2009/05/17 21:29:34 dholland Exp $
+$NetBSD: patch-cf,v 1.10 2009/05/19 00:36:06 dholland Exp $
 
 --- interface/scan_devices.c.orig      2001-03-26 00:44:01.000000000 -0500
-+++ interface/scan_devices.c   2009-05-17 16:47:49.000000000 -0400
++++ interface/scan_devices.c   2009-05-18 20:11:24.000000000 -0400
 @@ -1,6 +1,8 @@
  /******************************************************************
   * CopyPolicy: GNU Public License 2 applies
@@ -11,17 +11,7 @@
   * 
   * Autoscan for or verify presence of a cdrom device
   * 
-@@ -14,11 +16,18 @@
- #include <pwd.h>
- #include <sys/stat.h>
- #include <sys/types.h>
-+
-+#ifdef HAVE_GETRAWPARTITION
-+#include <util.h>
-+#endif
-+
- #include "cdda_interface.h"
- #include "low_interface.h"
+@@ -19,6 +21,8 @@
  #include "common_interface.h"
  #include "utils.h"
  
@@ -30,7 +20,7 @@
  #define MAX_DEV_LEN 20 /* Safe because strings only come from below */
  /* must be absolute paths! */
  static char *scsi_cdrom_prefixes[]={
-@@ -49,15 +58,43 @@ static char *cdrom_devices[]={
+@@ -49,11 +53,30 @@ static char *cdrom_devices[]={
    "/dev/cm206cd",
    "/dev/gscd",
    "/dev/optcd",NULL};
@@ -43,7 +33,9 @@
 +#elif defined(__NetBSD__)
 +static char *cdrom_devices[] = {
 +      "/dev/rcd?c",
-+      "/dev/cd?c", NULL};
++      "/dev/rcd?d",
++      "/dev/cd?c",
++      "/dev/cd?d", NULL};
 +#endif
  
  /* Functions here look for a cdrom drive; full init of a drive type
@@ -59,28 +51,7 @@
    /* Brute force... */
    
    int i=0;
-   cdrom_drive *d;
-+#ifdef __NetBSD__
-+  int rawpartition;
-+#endif
-+
-+#ifdef __NetBSD__
-+#ifdef HAVE_GETRAWPARTITION
-+    rawpartition = getrawpartition();
-+#else
-+    rawpartition = 'c' - 'a';
-+#endif
-+#endif
- 
-   while(cdrom_devices[i]!=NULL){
- 
-@@ -72,13 +109,18 @@ cdrom_drive *cdda_find_a_cdrom(int messa
-       /* number, then letter */
-       
-       buffer[pos-(cdrom_devices[i])]=j+48;
-+#ifdef __NetBSD__
-+      buffer[(pos+1)-(cdrom_devices[i])]='a'+rawpartition;
-+#endif
+@@ -75,10 +98,12 @@ cdrom_drive *cdda_find_a_cdrom(int messa
        if((d=cdda_identify(buffer,messagedest,messages)))
          return(d);
        idmessage(messagedest,messages,"",NULL);
@@ -93,7 +64,7 @@
        }
      }else{
        /* Name.  Go for it. */
-@@ -97,8 +139,11 @@ cdrom_drive *cdda_find_a_cdrom(int messa
+@@ -97,8 +122,11 @@ cdrom_drive *cdda_find_a_cdrom(int messa
              temp->pw_name);
    }
    return(NULL);
@@ -105,7 +76,7 @@
  cdrom_drive *cdda_identify(const char *device, int messagedest,char **messages){
    struct stat st;
    cdrom_drive *d=NULL;
-@@ -117,8 +162,14 @@ cdrom_drive *cdda_identify(const char *d
+@@ -117,8 +145,14 @@ cdrom_drive *cdda_identify(const char *d
    }
  #endif
  
@@ -120,7 +91,7 @@
  
  #ifdef CDDA_TEST
    if(!d)d=cdda_identify_test(device,messagedest,messages);
-@@ -146,6 +197,7 @@ char *test_resolve_symlink(const char *f
+@@ -146,6 +180,7 @@ char *test_resolve_symlink(const char *f
  cdrom_drive *cdda_identify_cooked(const char *dev, int messagedest,
                                  char **messages){
  
@@ -128,7 +99,7 @@
    cdrom_drive *d=NULL;
    struct stat st;
    int fd=-1;
-@@ -273,8 +325,60 @@ cdrom_drive *cdda_identify_cooked(const 
+@@ -273,8 +308,60 @@ cdrom_drive *cdda_identify_cooked(const 
    idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",description);
    
    return(d);
@@ -189,7 +160,7 @@
  struct  sg_id {
    long    l1; /* target | lun << 8 | channel << 16 | low_ino << 24 */
    long    l2; /* Unique id */
-@@ -289,12 +393,18 @@ typedef struct scsiid{
+@@ -289,12 +376,18 @@ typedef struct scsiid{
  /* Even *this* isn't as simple as it bloody well should be :-P */
  /* SG has an easy interface, but SCSI overall does not */
  static int get_scsi_id(int fd, scsiid *id){
@@ -208,7 +179,7 @@
    if(ioctl(fd,SCSI_IOCTL_GET_IDLUN,&argid))return(-1);
    id->bus=argid.l2; /* for now */
    id->id=argid.l1&0xff;
-@@ -302,6 +412,13 @@ static int get_scsi_id(int fd, scsiid *i
+@@ -302,6 +395,13 @@ static int get_scsi_id(int fd, scsiid *i
  
    if(ioctl(fd,SCSI_IOCTL_GET_BUS_NUMBER,&busarg)==0)
      id->bus=busarg;
@@ -222,7 +193,7 @@
    
    return(0);
  }
-@@ -390,6 +507,7 @@ matchfail:
+@@ -390,6 +490,7 @@ matchfail:
    if(dev!=-1)close(dev);
    return(NULL);
  }
@@ -230,7 +201,7 @@
  
  void strscat(char *a,char *b,int n){
    int i;
-@@ -401,6 +519,7 @@ void strscat(char *a,char *b,int n){
+@@ -401,6 +502,7 @@ void strscat(char *a,char *b,int n){
    strcat(a," ");
  }
  
@@ -238,7 +209,7 @@
  /* At this point, we're going to punt compatability before SG2, and
     allow only SG2 and SG3 */
  static int verify_SG_version(cdrom_drive *d,int messagedest,
-@@ -430,7 +549,9 @@ static int verify_SG_version(cdrom_drive
+@@ -430,7 +532,9 @@ static int verify_SG_version(cdrom_drive
    idmessage(messagedest,messages,buffer,"");
    return(major);
  }
@@ -248,7 +219,7 @@
  cdrom_drive *cdda_identify_scsi(const char *generic_device, 
                                const char *ioctl_device, int messagedest,
                                char **messages){
-@@ -460,6 +581,7 @@ cdrom_drive *cdda_identify_scsi(const ch
+@@ -460,6 +564,7 @@ cdrom_drive *cdda_identify_scsi(const ch
               generic_device);
        return(NULL);
      }
@@ -256,7 +227,7 @@
      if((int)(g_st.st_rdev>>8)!=SCSI_GENERIC_MAJOR){
        if((int)(g_st.st_rdev>>8)!=SCSI_CDROM_MAJOR){
        idmessage(messagedest,messages,"\t\t%s is not a SCSI device",
-@@ -471,6 +593,7 @@ cdrom_drive *cdda_identify_scsi(const ch
+@@ -471,6 +576,7 @@ cdrom_drive *cdda_identify_scsi(const ch
        ioctl_device=temp;
        }
      }
@@ -264,7 +235,7 @@
    }
    if(ioctl_device){
      if(stat(ioctl_device,&i_st)){
-@@ -478,6 +601,7 @@ cdrom_drive *cdda_identify_scsi(const ch
+@@ -478,6 +584,7 @@ cdrom_drive *cdda_identify_scsi(const ch
               ioctl_device);
        return(NULL);
      }
@@ -272,7 +243,7 @@
      if((int)(i_st.st_rdev>>8)!=SCSI_CDROM_MAJOR){
        if((int)(i_st.st_rdev>>8)!=SCSI_GENERIC_MAJOR){
        idmessage(messagedest,messages,"\t\t%s is not a SCSI device",
-@@ -489,6 +613,7 @@ cdrom_drive *cdda_identify_scsi(const ch
+@@ -489,6 +596,7 @@ cdrom_drive *cdda_identify_scsi(const ch
        ioctl_device=temp;
        }
      }
@@ -280,7 +251,7 @@
    }
  
    /* we need to resolve any symlinks for the lookup code to work */
-@@ -505,6 +630,7 @@ cdrom_drive *cdda_identify_scsi(const ch
+@@ -505,6 +613,7 @@ cdrom_drive *cdda_identify_scsi(const ch
    }
  
    if(!generic_device || !ioctl_device){
@@ -288,7 +259,7 @@
      if(generic_device){
        ioctl_device=



Home | Main Index | Thread Index | Old Index