SSHKeychain on Snow Leopard

I am an avid user of MacPorts, but it seems some things are broken with Snow Leopard. In particular it seems one cannot build SSHKeychain:

[~]% sudo port install SSHKeychain
--->  Computing dependencies for SSHKeychain
--->  Fetching SSHKeychain
--->  Verifying checksum(s) for SSHKeychain
--->  Extracting SSHKeychain
--->  Applying patches to SSHKeychain
--->  Configuring SSHKeychain
--->  Building SSHKeychain
Error: Target org.macports.build returned: shell command "cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_SSHKeychain/work/0.8.2" && xcodebuild  -target "SSHKeychain" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=x86_64 SDKROOT= ARCHS=i386" returned error 1
Command output:
=== BUILD NATIVE TARGET TunnelRunner OF PROJECT SSHKeychain WITH CONFIGURATION Deployment ===
Check dependencies
GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file TunnelRunner.c)
GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file TunnelRunner.c)
** BUILD FAILED **


Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

To fix this, I simply changed “10.4u” and “10.4” on lines 922 and 924 to “10.5” in the xcodeproj file:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_SSHKeychain/work/0.8.2/SSHKeychain.xcodeproj/project.pbxproj

  CC39D6380921118A00FE3BC5 /* Development */ = {
                        isa = XCBuildConfiguration;
           buildSettings = {
ARCHS = (
                                ppc,
                        i386,
                );
                MACOSX_DEPLOYMENT_TARGET_i386 = 10.5;
                MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
                SDKROOT_i386 = /Developer/SDKs/MacOSX10.5.sdk;
                SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk;
        };
        name = Development;
};

Also further down on lines 936 and 938:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_SSHKeychain/work/0.8.2/SSHKeychain.xcodeproj/project.pbxproj

CC39D6390921118A00FE3BC5 /* Deployment */ = {
        isa = XCBuildConfiguration;
        buildSettings = {
                ARCHS = (
                                        ppc,
                                        i386,
);
                                MACOSX_DEPLOYMENT_TARGET_i386 = 10.5;
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
SDKROOT_i386 = /Developer/SDKs/MacOSX10.5.sdk;
SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk;
};
                        name = Deployment;
};

…and then…

[~]% sudo port install SSHKeychain
--->  Computing dependencies for SSHKeychain
--->  Building SSHKeychain
--->  Staging SSHKeychain into destroot
--->  Installing SSHKeychain @0.8.2_0
--->  Activating SSHKeychain @0.8.2_0
--->  Cleaning SSHKeychain

Alternatively, if you wish to just download it, it is available at http://fs.maz.nu/sshkeychain-0.8.2-sl.app.zip.

Category: