On 2011-May-01, at 8:36 PM, Alexander Hansen wrote:
> It would be instructive to find out whether Graham and François are
> using 32-bit or 64-bit Fink installs. (e.g. via "fink -V")
It's all red herrings! There's a missing initialization in
libscg/scsi-mac-iokit.c; masterPort is never set to zero, so unless that
particular part of the heap is already zero, the call to IOMasterPort never
takes place. That would explain the error code that seems to have nothing to
do with IOKit, it really is an IPC error from a bogus port.
--- cdrtools-3.01/libscg/scsi-mac-iokit.c.old 2011-05-01 23:03:16.000000000
-0400
+++ cdrtools-3.01/libscg/scsi-mac-iokit.c 2011-05-01 23:03:20.000000000
-0400
@@ -189,6 +189,7 @@
scglocal(scgp)->scg_if[b][t].flags = 0;
}
}
+ scglocal(scgp)->masterPort = 0;
}
if ((device != NULL && *device != '\0') || (busno == -2 && tgt == -2))
So, let's see what I can do with a spec file... err, there's my Red Hat showing.
--- local/main/finkinfo/utils/cdrtools.info.old 2011-05-01 23:18:26.000000000
-0400
+++ local/main/finkinfo/utils/cdrtools.info 2011-05-01 23:18:43.000000000
-0400
@@ -1,12 +1,14 @@
Package: cdrtools
Version: 3.01
-Revision: 0.4
+Revision: 0.4.1
Source: ftp://ftp.berlios.de/pub/cdrecord/alpha/%n-%va04.tar.bz2
Source-MD5: 05b058021ca24cfc3c334fbb94be2e3d
SourceDirectory: %n-%v
Replaces: cdrtools-beta
Conflicts: cdrtools-beta
BuildDepends: sed
+PatchFile: cdrtools-3.01-libscg-osx-init.patch
+PatchFile-MD5: 8fb4b311cb79c6c8df9bcc15267c414f
PatchScript: <<
if [ $UID -ne 0 ]; then echo "%n cannot be built with --build-as-nobody";
exit 1; fi
@@ -25,6 +27,7 @@
# perl -pi -e
's,defined\(_POSIX_PRIORITY_SCHEDULING\),defined\(_POSIX_PRIORITY_SCHEDULING\)
\&\& \!defined\(__APPLE__\),g' cdrecord/cdrecord.c
perl -pi -e 's|IOKit/scsi-commands|IOKit/scsi|' libscg/scsi-mac-iokit.c
+ patch -p1 < %{PatchFile}
<<
Depends: cdda2wav (>= %v-%r), cdrecord (>= %v-%r), mkisofs (>= %v-%r),
fink-obsolete-packages
------------------------------------------------------------------------------
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