Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#4132 closed defect (fixed)

libsdl 1.2.8 broken install

Reported by: ejt@… Owned by: ben@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

501 EthansBaby:~$ sudo port install libsdl ... ---> Building libsdl with target all Error: Target com.apple.build returned: shell command "cd "/Users/ejt/bin/darwinports/dports/devel/ libsdl/work/SDL-1.2.8/Xcode/SDL" && /usr/bin/xcodebuild -buildstyle Deployment -target Framework" returned error 1 Command output: echo Completed phase "<RezResourceManagerFiles>" for "<RezResourceManagerFiles>SDL.framework" Completed phase <RezResourceManagerFiles> for <RezResourceManagerFiles>SDL.framework

PhaseScriptExecution <Execution>/Users/ejt/bin/darwinports/dports/devel/libsdl/work/SDL-1.2.8/ Xcode/SDL/build/SDL.build/Deployment/Framework.build/BPTag005-script.sh

echo "=== Script ===" cat /Users/ejt/bin/darwinports/dports/devel/libsdl/work/SDL-1.2.8/Xcode/SDL/build/SDL.build/

Deployment/Framework.build/BPTag005-script.sh

echo "--- Output ---" /Users/ejt/bin/darwinports/dports/devel/libsdl/work/SDL-1.2.8/Xcode/SDL/build/SDL.build/

Deployment/Framework.build/BPTag005-script.sh

_result=$? echo "=== Exit code: ${_result} ===" exit ${_result}

Script

#!/bin/sh # make sure only public API's are exported # nmedit -s ../../src/main/macosx/SDL.x build/SDL.framework/Versions/Current/SDL # make frameworks directory if it doesn't already exist mkdir -p ./build/Frameworks # delete the old framework rm -rf ./build/Frameworks/SDL.framework # copy framework to its home /Developer/Tools/CpMac -r build/SDL.framework ./build/Frameworks/ # precompile header for speedier compiles /usr/bin/cc -precomp ./build/Frameworks/SDL.framework/Headers/SDL.h -o ./build/Frameworks/ SDL.framework/Headers/SDL.p --- Output --- failed to resolve one of the sources (-43) powerpc-apple-darwin8-gcc-4.0.0: ./build/Frameworks/SDL.framework/Headers/SDL.h: No such file or directory powerpc-apple-darwin8-gcc-4.0.0: no input files

Exit code: 1

...failed PhaseScriptExecution <Execution>/Users/ejt/bin/darwinports/dports/devel/libsdl/work/ SDL-1.2.8/Xcode/SDL/build/SDL.build/Deployment/Framework.build/BPTag005-script.sh ... BUILD FAILED

Change History (8)

comment:1 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to ben@…

I assume this error has gone with the new framework-version of the sdl port? (assigning to maintainer)

comment:2 Changed 19 years ago by ejt@…

Well, it was whatever version of SDL was being fetched by 'port install libsdl' as of 2005-07-25; I forgot to mention that I am using XCode 2.1, since that's probably where the problem stems from.

comment:3 Changed 19 years ago by ben@…

Resolution: fixed
Status: newclosed

I fixed all the SDL-* ports except sound. Do a 'port sync' to get the new ones.

You'll find that each SDL port is now in two parts: e.g. libsdl and

libsdl-framework.

If you find that dependent ports are broken, it's probably because they need the -framework parts, but only claim to require the non-framework parts. In which case, please file bugs. As a workaround you can install the framework parts by hand (e.g. port install libsdl-framework).

comment:4 Changed 19 years ago by ejt@…

I'm afraid something is still not quite right. I'll try the -framework ports as you suggest, and reopen it if I can't get those to work either (but either way, a clean port install libsdl isn't happy on Tiger with XCode 2.1)

501 EthansBaby:~$ sudo port sync #No output 502 EthansBaby:~$ sudo port install libsdl #Same error as before #503-505 reading man page and giving erroneous command line options 506 EthansBaby:~$ sudo port clean --all libsdl ---> Cleaning libsdl 507 EthansBaby:~$ sudo port install libsdl ---> Fetching libsdl ---> Attempting to fetch SDL-1.2.8.tar.gz from http://www.libsdl.org/release/ ---> Verifying checksum(s) for libsdl ---> Extracting libsdl ---> Configuring libsdl ---> Building libsdl with target all Error: Target com.apple.build returned: shell command "cd "/Users/ejt/bin/darwinports/dports/devel/ libsdl/work/SDL-1.2.8/Xcode/SDL" && /usr/bin/xcodebuild -buildstyle Deployment -target Framework" returned error 1 Command output: echo Completed phase "<RezResourceManagerFiles>" for "<RezResourceManagerFiles>SDL.framework" Completed phase <RezResourceManagerFiles> for <RezResourceManagerFiles>SDL.framework

PhaseScriptExecution <Execution>/Users/ejt/bin/darwinports/dports/devel/libsdl/work/SDL-1.2.8/ Xcode/SDL/build/SDL.build/Deployment/Framework.build/BPTag005-script.sh

echo "=== Script ===" cat /Users/ejt/bin/darwinports/dports/devel/libsdl/work/SDL-1.2.8/Xcode/SDL/build/SDL.build/

Deployment/Framework.build/BPTag005-script.sh

echo "--- Output ---" /Users/ejt/bin/darwinports/dports/devel/libsdl/work/SDL-1.2.8/Xcode/SDL/build/SDL.build/

Deployment/Framework.build/BPTag005-script.sh

_result=$? echo "=== Exit code: ${_result} ===" exit ${_result}

Script

#!/bin/sh # make sure only public API's are exported # nmedit -s ../../src/main/macosx/SDL.x build/SDL.framework/Versions/Current/SDL # make frameworks directory if it doesn't already exist mkdir -p ./build/Frameworks # delete the old framework rm -rf ./build/Frameworks/SDL.framework # copy framework to its home /Developer/Tools/CpMac -r build/SDL.framework ./build/Frameworks/ # precompile header for speedier compiles /usr/bin/cc -precomp ./build/Frameworks/SDL.framework/Headers/SDL.h -o ./build/Frameworks/ SDL.framework/Headers/SDL.p --- Output --- failed to resolve one of the sources (-43) powerpc-apple-darwin8-gcc-4.0.0: ./build/Frameworks/SDL.framework/Headers/SDL.h: No such file or directory powerpc-apple-darwin8-gcc-4.0.0: no input files

Exit code: 1

...failed PhaseScriptExecution <Execution>/Users/ejt/bin/darwinports/dports/devel/libsdl/work/ SDL-1.2.8/Xcode/SDL/build/SDL.build/Deployment/Framework.build/BPTag005-script.sh ... BUILD FAILED

508 EthansBaby:~$

comment:5 Changed 19 years ago by ben@…

Ethan --

Unless you did a 'port sync' first, you're still using the old versions (and the build log seems to confirm this). I updated the code on opendarwin.org, but you have to download these before doing 'port install ....'. To be on the safe side, do this:

sudo port selfupdate sudo port sync sudo port clean --all libsdl sudo port install libsdl-framework

And let me know you you get on

Ben

comment:6 Changed 19 years ago by ejt@…

yeah, I can't find a libsdl-framework package, either from searching the "Available ports" or just running:

509 EthansBaby:~$ sudo port install libsdl-framework Port libsdl-framework not found

This is all after running the 'port sync' command (as shown in the previous console log, command 501) However, there may be something wrong with my ports installation? Take a look at this:

526 EthansBaby:~$ sudo port selfupdate Unable to open port: Could not find Portfile in ./

thanks, -ethan

comment:7 Changed 19 years ago by ben@…

Oh, ok, you have wider problems than just SDL. port sync is clearly not working and port selfupdate is broken too. I don't know why. Things to try:

  1. makes sure you typed selfupdate correctly (the error you're getting is the

one you would get if you mistyped it).

  1. check your path is set correctly

(http://darwinports.opendarwin.org/docs/ch01s03.html#configure_dports)

  1. do port -vd selfupdate and port -vd sync and, if they're not right, post the

output in a new bug

  1. reinstall DP from scratch

comment:8 Changed 19 years ago by ejt@…

success! port was out of date -- a cvs update and make from base did the trick, now the selfupdate command is recognized and things work as expected

Thanks!!! (should I mark the bug 'verified'?)

564 EthansBaby:~/bin/darwinports$ sudo port install libsdl ---> Fetching libsdl ---> Attempting to fetch SDL-1.2.8.tar.gz from http://www.libsdl.org/release/ ---> Verifying checksum(s) for libsdl ---> Extracting libsdl ---> Configuring libsdl ---> Building libsdl with target all ---> Staging libsdl into destroot ---> Packaging tgz archive for libsdl 1.2.8_3 ---> Installing libsdl 1.2.8_3 ---> Activating libsdl 1.2.8_3 ---> Cleaning libsdl

Note: See TracTickets for help on using tickets.