I'm dealing with the same issue; the fink cdrecord just wouldn't work under 
10.6.

Two things I've found so far:

- Building cdrtools-3.01a04 "outside" of fink works fine.

- Building it "inside" fink produces a binary which only works when it isn't 
installed in /sw/bin.

It seems OS X 10.6 thinks /sw/bin is "special"; just moving /sw/bin/cdrecord to 
(say) /sw/sbin/cdrecord produces a working one.

Copying my working cdrecord to /sw/bin/george (to test the hypothesis that it's 
the directory name not the file name) doesn't work.

So, Something Somewhere has happened to /sw/bin.  I don't know what it is; I 
rather doubt it has anything to do with the Fink project itself.  I don't see 
any 'flags' (ls -lOd / /sw /sw/bin) to get in the way.

'dtruss' on the /sw/bin vs. the one installed elsewhere shows very different 
startup paths; this makes me think something in before main() is Making Choices 
and nuking out privileges--even when you run the program via 'sudo' in the 
first place!

I suggest, therefore, that you do "sudo mv /sw/bin/cdrecord /sw/sbin/cdrecord" 
and give that a shot.  If my hypothesis is right, it will start working again.

Patch to the info file:

--- ./unstable/main/finkinfo/utils/cdrtools.info        2010-04-02 
00:45:15.000000000 -0400
+++ ./local/main/finkinfo/utils/cdrtools.info   2011-05-01 14:29:04.000000000 
-0400
@@ -1,8 +1,8 @@
Package: cdrtools
-Version: 2.01.01
-Revision: 10.4.77
-Source: ftp://ftp.berlios.de/pub/cdrecord/alpha/%n-%va77.tar.bz2
-Source-MD5: 0564e79a18d9a6768dbbb02a7717c5ab
+Version: 3.01
+Revision: 0.4
+Source: ftp://ftp.berlios.de/pub/cdrecord/alpha/%n-%va04.tar.bz2
+Source-MD5: 05b058021ca24cfc3c334fbb94be2e3d
SourceDirectory: %n-%v
Replaces: cdrtools-beta
Conflicts: cdrtools-beta
@@ -31,13 +31,12 @@
CompileScript: make GMAKE_NOWARN=true
InstallScript: <<
  cp README* READMEs/ || true
-  cd cdda2wav; make INS_BASE=%i MANDIR=share/man GMAKE_NOWARN=true install
-  cd cdrecord; make INS_BASE=%i MANDIR=share/man GMAKE_NOWARN=true install
-  cd mkisofs; make INS_BASE=%i MANDIR=share/man GMAKE_NOWARN=true install
-  cd readcd; make INS_BASE=%i MANDIR=share/man GMAKE_NOWARN=true install
-  cd mkisofs/diag; make INS_BASE=%i MANDIR=share/man GMAKE_NOWARN=true install
+  cd cdda2wav; make INS_BASE=%i INS_KBASE=%i INS_RBASE=%i GMAKE_NOWARN=true 
install
+  cd cdrecord; make INS_BASE=%i INS_KBASE=%i INS_RBASE=%i GMAKE_NOWARN=true 
install
+  cd mkisofs; make INS_BASE=%i INS_KBASE=%i INS_RBASE=%i GMAKE_NOWARN=true 
install
+  cd readcd; make INS_BASE=%i INS_KBASE=%i INS_RBASE=%i GMAKE_NOWARN=true 
install
+  cd mkisofs/diag; make INS_BASE=%i INS_KBASE=%i INS_RBASE=%i 
GMAKE_NOWARN=true install

-  chmod a+s %i/bin/cdrecord
  mkdir -p %i/etc/default

  rm -f %i/etc/default/cdrecord

And this patch, on top of the last one, will put cdrecord, readcd, and cdda2wav 
in sbin:

--- ./local/main/finkinfo/utils/cdrtools.info.old       2011-05-01 
14:44:07.000000000 -0400
+++ ./local/main/finkinfo/utils/cdrtools.info   2011-05-01 14:48:27.000000000 
-0400
@@ -26,6 +26,7 @@

  perl -pi -e 's|IOKit/scsi-commands|IOKit/scsi|' libscg/scsi-mac-iokit.c

+  perl -pi -e 's/\bbin\b/sbin/ if /^INSDIR/;' cdrecord/Makefile 
readcd/Makefile cdda2wav/Makefile
<<
Depends: cdda2wav (>= %v-%r), cdrecord (>= %v-%r), mkisofs (>= %v-%r), 
fink-obsolete-packages
CompileScript: make GMAKE_NOWARN=true
@@ -58,7 +59,7 @@
  Package: cdrecord
  Replaces: cdrtools (<= 1.11a27-1), cdrecord-beta
  Conflicts: cdrtools (<= 1.11a27-1), cdrecord-beta
-  Files: bin/cdrecord bin/readcd share/man/man1/cdrecord.1 
share/man/man1/readcd.1 etc/default/cdrecord share/doc/%n
+  Files: sbin/cdrecord sbin/readcd share/man/man1/cdrecord.1 
share/man/man1/readcd.1 etc/default/cdrecord share/doc/%n
  DocFiles: AN* INSTALL READMEs/* ABOUT COPYING Changelog START PORTING COMPILE 
BUILD
  ConfFiles: %p/etc/default/cdrecord
  Description: A command line CD/DVD writing tool
@@ -73,7 +74,7 @@
  Package: cdda2wav
  Replaces: cdrtools (<= 1.11a27-1), cdda2wav-beta
  Conflicts: cdrtools (<= 1.11a27-1), cdda2wav-beta
-  Files: bin/cdda2wav share/man/man1/cdda2wav.1 share/doc/%n
+  Files: sbin/cdda2wav share/man/man1/cdda2wav.1 share/doc/%n
  DocFiles: AN* INSTALL READMEs/* ABOUT COPYING Changelog START PORTING COMPILE 
BUILD
  Description: Creates files from audio CDs
  DescDetail: <<


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to