the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: cctools-extra
Epoch: 1
Version: 590.18
Revision: 1002
Distribution: 10.3, 10.4
Source: mirror:sourceforge:fink/cctools-%v.tar.gz
Source-MD5: f50c32165c29d3f7ef789d546003da7d
SourceDirectory: cctools-%v
Patch: %n.patch
Essential: no
Depends: base-files
CompileScript: <<
#!/bin/sh -ex
pushd libstuff
perl -pi.bak -e 's|profile64 static_kld|profile64|g' Makefile
make
popd
pushd misc
make
popd
<<
InstallScript: <<
#!/bin/sh -ex
install -d -m 755 %i/sbin %i/share/man/man1 %i/share/man/man3 %i/share/man/man5
install -c -m 755 misc/check_dylib.NEW %i/sbin/check_dylib
install -c -m 755 misc/checksyms.NEW %i/sbin/checksyms
install -c -m 755 misc/dylib_pcsampler.NEW %i/sbin/dylib_pcsampler
install -c -m 755 misc/indr.NEW %i/sbin/indr
install -c -m 755 misc/kern_tool.NEW %i/sbin/kern_tool
install -c -m 755 misc/seg_addr_table.NEW %i/sbin/seg_addr_table
install -c -m 755 misc/seg_hack.NEW %i/sbin/seg_hack
install -c -m 644 man/check_dylib.1 %i/share/man/man1/
install -c -m 644 man/checksyms.1 %i/share/man/man1/
install -c -m 644 man/indr.1 %i/share/man/man1/
install -c -m 644 man/seg_addr_table.1 %i/share/man/man1/
<<
DocFiles: APPLE_LICENSE
Description: Extra software from cctools
DescDetail: <<
This package contains some extra tools from the cctools source
distribution that aren't part of Apple's official dev tools.
<<
License: OSI-Approved
Maintainer: Fink Core Group
Homepage: http://www.opendarwin.org/
diff -uNr cctools-590.18/libstuff/guess_short_name.c cctools-590.18-new/libstuff/guess_short_name.c
--- cctools-590.18/libstuff/guess_short_name.c 2004-12-08 20:44:49.000000000 -0500
+++ cctools-590.18-new/libstuff/guess_short_name.c 2005-11-29 09:44:48.000000000 -0500
@@ -206,6 +206,10 @@
*return_suffix = allocate(s + 1);
strncpy(*return_suffix, suffix, s);
(*return_suffix)[s] = '\0';
+ if (strcmp(*return_suffix, "_debug") != 0 && strcmp(*return_suffix, "_profile") != 0) {
+ l = l + strlen(*return_suffix);
+ *return_suffix = NULL;
+ }
}
else
l = a - (b+1);
diff -uNr cctools-590.18/misc/seg_addr_table.c cctools-590.18-new/misc/seg_addr_table.c
--- cctools-590.18/misc/seg_addr_table.c 2005-04-14 18:15:31.000000000 -0400
+++ cctools-590.18-new/misc/seg_addr_table.c 2005-11-29 09:44:48.000000000 -0500
@@ -42,13 +42,13 @@
* These are the default addresses use when re-laying out the images. These
* changed in Mac OS X in the 10.2 release.
*/
-#define DEFAULT_SEG1ADDR_X10_1 0x41300000 /* low to high allocation */
-#define DEFAULT_READ_ONLY_ADDR_X10_1 0x70000000
-#define DEFAULT_READ_WRITE_ADDR_X10_1 0x80000000
-
-#define DEFAULT_SEG1ADDR_X10_2 0x8fe00000 /* high to low allocation */
-#define DEFAULT_READ_ONLY_ADDR_X10_2 0x90000000
-#define DEFAULT_READ_WRITE_ADDR_X10_2 0xa0000000
+#define DEFAULT_SEG1ADDR_X10_1 0x00000000 /* low to high allocation */
+#define DEFAULT_READ_ONLY_ADDR_X10_1 0x50000000
+#define DEFAULT_READ_WRITE_ADDR_X10_1 0x60000000
+
+#define DEFAULT_SEG1ADDR_X10_2 0x3fe00000 /* high to low allocation */
+#define DEFAULT_READ_ONLY_ADDR_X10_2 0x50000000
+#define DEFAULT_READ_WRITE_ADDR_X10_2 0x60000000
/*
* Starting in 10.3, we will put all the debug and profile libraries together,
Package: cctools-extra
Epoch: 1
Version: 590.18
Revision: 1002
Distribution: 10.3, 10.4
Source: mirror:sourceforge:fink/cctools-%v.tar.gz
Source-MD5: f50c32165c29d3f7ef789d546003da7d
SourceDirectory: cctools-%v
Patch: %n.patch
Essential: no
Depends: base-files
CompileScript: <<
#!/bin/sh -ex
pushd libstuff
perl -pi.bak -e 's|profile64 static_kld|profile64|g' Makefile
make
popd
pushd misc
make
popd
<<
InstallScript: <<
#!/bin/sh -ex
install -d -m 755 %i/sbin %i/share/man/man1 %i/share/man/man3 %i/share/man/man5
install -c -m 755 misc/check_dylib.NEW %i/sbin/check_dylib
install -c -m 755 misc/checksyms.NEW %i/sbin/checksyms
install -c -m 755 misc/dylib_pcsampler.NEW %i/sbin/dylib_pcsampler
install -c -m 755 misc/indr.NEW %i/sbin/indr
install -c -m 755 misc/kern_tool.NEW %i/sbin/kern_tool
install -c -m 755 misc/seg_addr_table.NEW %i/sbin/seg_addr_table
install -c -m 755 misc/seg_hack.NEW %i/sbin/seg_hack
install -c -m 644 man/check_dylib.1 %i/share/man/man1/
install -c -m 644 man/checksyms.1 %i/share/man/man1/
install -c -m 644 man/indr.1 %i/share/man/man1/
install -c -m 644 man/seg_addr_table.1 %i/share/man/man1/
<<
DocFiles: APPLE_LICENSE
Description: Extra software from cctools
DescDetail: <<
This package contains some extra tools from the cctools source
distribution that aren't part of Apple's official dev tools.
<<
License: OSI-Approved
Maintainer: Fink Core Group
Homepage: http://www.opendarwin.org/
diff -uNr cctools-590.18/libstuff/guess_short_name.c cctools-590.18-new/libstuff/guess_short_name.c
--- cctools-590.18/libstuff/guess_short_name.c 2004-12-08 20:44:49.000000000 -0500
+++ cctools-590.18-new/libstuff/guess_short_name.c 2005-11-29 09:44:48.000000000 -0500
@@ -206,6 +206,10 @@
*return_suffix = allocate(s + 1);
strncpy(*return_suffix, suffix, s);
(*return_suffix)[s] = '\0';
+ if (strcmp(*return_suffix, "_debug") != 0 && strcmp(*return_suffix, "_profile") != 0) {
+ l = l + strlen(*return_suffix);
+ *return_suffix = NULL;
+ }
}
else
l = a - (b+1);
diff -uNr cctools-590.18/misc/seg_addr_table.c cctools-590.18-new/misc/seg_addr_table.c
--- cctools-590.18/misc/seg_addr_table.c 2005-04-14 18:15:31.000000000 -0400
+++ cctools-590.18-new/misc/seg_addr_table.c 2005-11-29 09:44:48.000000000 -0500
@@ -42,13 +42,13 @@
* These are the default addresses use when re-laying out the images. These
* changed in Mac OS X in the 10.2 release.
*/
-#define DEFAULT_SEG1ADDR_X10_1 0x41300000 /* low to high allocation */
-#define DEFAULT_READ_ONLY_ADDR_X10_1 0x70000000
-#define DEFAULT_READ_WRITE_ADDR_X10_1 0x80000000
-
-#define DEFAULT_SEG1ADDR_X10_2 0x8fe00000 /* high to low allocation */
-#define DEFAULT_READ_ONLY_ADDR_X10_2 0x90000000
-#define DEFAULT_READ_WRITE_ADDR_X10_2 0xa0000000
+#define DEFAULT_SEG1ADDR_X10_1 0x00000000 /* low to high allocation */
+#define DEFAULT_READ_ONLY_ADDR_X10_1 0x50000000
+#define DEFAULT_READ_WRITE_ADDR_X10_1 0x60000000
+
+#define DEFAULT_SEG1ADDR_X10_2 0x3fe00000 /* high to low allocation */
+#define DEFAULT_READ_ONLY_ADDR_X10_2 0x50000000
+#define DEFAULT_READ_WRITE_ADDR_X10_2 0x60000000
/*
* Starting in 10.3, we will put all the debug and profile libraries together,