Opened 11 years ago

Last modified 7 years ago

#39798 new defect

libsdl_sound-framework @1.0.3 doesn't work like the rest of the libsdl_*-framework ports do

Reported by: cooljeanius (Eric Gallager) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: iGhoneim (Ahmed Ghoneim), borisx8@…
Port: libsdl_sound-framework

Description

A user on irc reminded me about this error. Instead of just making symlinks to the relevant dylibs like the rest of the libsdl_*-framework ports do, libsdl_sound-framework has its own Xcode project that it tries to build, which is no longer compatible with more recent versions of Xcode. For example, on Snow Leopard with Xcode 3.2.6, it fails with the following message:

--->  Building libsdl_sound-framework
DEBUG: Executing org.macports.build (libsdl_sound-framework)
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_libsdl_sound-framework/libsdl_sound-framework/work/SDL_sound-1.0.3" && /usr/bin/xcodebuild -project "PBProjects/SDL_sound.pbproj" -target "Framework" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=x86_64 SDKROOT="" GCC_VERSION=4.2 FRAMEWORK_SEARCH_PATHS=/opt/local/Library/Frameworks INSTALL_PATH=/opt/local/Library/Frameworks LIBRARY_SEARCH_PATHS=/opt/local/lib'
(NOTE: project SDL_sound was written by an older Xcode version (34) -- temporarily upgrading it (without modifying project file))

Build settings from command line:
    ARCHS = x86_64
    FRAMEWORK_SEARCH_PATHS = /opt/local/Library/Frameworks
    GCC_VERSION = 4.2
    INSTALL_PATH = /opt/local/Library/Frameworks
    LIBRARY_SEARCH_PATHS = /opt/local/lib
    MACOSX_DEPLOYMENT_TARGET = 10.6
    OBJROOT = build/
    SDKROOT = 
    SYMROOT = build/


=== BUILD FRAMEWORK TARGET Framework OF PROJECT SDL_sound WITH CONFIGURATION Deployment ===
Check dependencies
Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation.
Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation.
** BUILD FAILED **

Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_libsdl_sound-framework/libsdl_sound-framework/work/SDL_sound-1.0.3" && /usr/bin/xcodebuild -project "PBProjects/SDL_sound.pbproj" -target "Framework" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.6 ARCHS=x86_64 SDKROOT="" GCC_VERSION=4.2 FRAMEWORK_SEARCH_PATHS=/opt/local/Library/Frameworks INSTALL_PATH=/opt/local/Library/Frameworks LIBRARY_SEARCH_PATHS=/opt/local/lib
Exit code: 1
Error: org.macports.build for port libsdl_sound-framework returned: command execution failed

On Mountain Lion, the error message is:

:notice:build --->  Building libsdl_sound-framework
:debug:build Executing org.macports.build (libsdl_sound-framework)
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_libsdl_sound-framework/libsdl_sound-framework/work/SDL_sound-1.0.3" && /usr/bin/xcodebuild -project "PBProjects/SDL_sound.pbproj" -target "Framework" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.8 ARCHS=x86_64 SDKROOT="" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 FRAMEWORK_SEARCH_PATHS=/opt/local/Library/Frameworks INSTALL_PATH=/opt/local/Library/Frameworks LIBRARY_SEARCH_PATHS=/opt/local/lib'
:info:build Build settings from command line:
:info:build     ARCHS = x86_64
:info:build     FRAMEWORK_SEARCH_PATHS = /opt/local/Library/Frameworks
:info:build     GCC_VERSION = com.apple.compilers.llvm.clang.1_0
:info:build     INSTALL_PATH = /opt/local/Library/Frameworks
:info:build     LIBRARY_SEARCH_PATHS = /opt/local/lib
:info:build     MACOSX_DEPLOYMENT_TARGET = 10.8
:info:build     OBJROOT = build/
:info:build     SDKROOT =
:info:build     SYMROOT = build/
:info:build
:info:build xcodebuild: error: Unable to read project 'SDL_sound.pbproj' from folder '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_libsdl_sound-framework/libsdl_sound-framework/work/SDL_sound-1.0.3/PBProjects'.
:info:build     Reason: Project file 'SDL_sound' was written by an unsupported Xcode version (34)
:info:build
:info:build
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_libsdl_sound-framework/libsdl_sound-framework/work/SDL_sound-1.0.3" && /usr/bin/xcodebuild -project "PBProjects/SDL_sound.pbproj" -target "Framework" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.8 ARCHS=x86_64 SDKROOT="" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 FRAMEWORK_SEARCH_PATHS=/opt/local/Library/Frameworks INSTALL_PATH=/opt/local/Library/Frameworks LIBRARY_SEARCH_PATHS=/opt/local/lib
:info:build Exit code: 74
:error:build org.macports.build for port libsdl_sound-framework returned: command execution failed

I have my own fork of the project that builds (https://github.com/cooljeanius/SDL_sound-1.0.3), but for the purposes of MacPorts, I'd rather libsdl_sound-framework just did like the rest of the libsdl_*-framework ports and only install symlinks.

Change History (1)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: iGhoneim borisx8@… added

Has duplicate #49850.

Note: See TracTickets for help on using tickets.