Ticket #15943 (closed defect: fixed)
py-game 1.8.0 fails to build
| Reported by: | macosforge.org@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | ||
| Port: |
Description
Build log
---> Configuring py-game Error: reinplace: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/Setup": no such file or directory Error: Target org.macports.configure returned: reinplace sed(1) failed Error: Status 1 encountered during processing. crowley:devel mj$ sudo port clean py-game ---> Cleaning py-game crowley:devel mj$ sudo port install py-game ---> Fetching py-game ---> Verifying checksum(s) for py-game ---> Extracting py-game ---> Applying patches to py-game ---> Configuring py-game Error: reinplace: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/Setup": no such file or directory Error: Target org.macports.configure returned: reinplace sed(1) failed Error: Status 1 encountered during processing.
Change History
comment:2 Changed 5 years ago by macosforge.org@…
Oops, a newline was lost there. Workaround commands:
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/ LOCALBASE=/opt/local/ /opt/local/bin/python2.4 config.py cd -
comment:3 Changed 5 years ago by jmr@…
- Milestone set to Port Bugs
Works here without doing anything manually. Could you try installing again after cleaning py-game? I'm thinking it might be the Leopard environment variable bug.
If it doesn't work, please attach the full output of sudo port -d install py-game.
comment:4 Changed 5 years ago by macosforge.org@…
I already tried cleaning, but that didn't help.
Debug output:
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-game
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-game
DEBUG: Requested variant darwin is not provided by port py-game.
DEBUG: Requested variant i386 is not provided by port py-game.
DEBUG: Requested variant macosx is not provided by port py-game.
DEBUG: Executing variant darwin_9 provides darwin_9
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python24
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python24
DEBUG: Requested variant darwin is not provided by port python24.
DEBUG: Requested variant i386 is not provided by port python24.
DEBUG: Requested variant macosx is not provided by port python24.
DEBUG: Executing variant darwin_9 provides darwin_9
DEBUG: Searching for dependency: python24
DEBUG: Found Dependency: receipt exists for python24
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl
DEBUG: Requested variant darwin is not provided by port libsdl.
DEBUG: Requested variant i386 is not provided by port libsdl.
DEBUG: Requested variant macosx is not provided by port libsdl.
DEBUG: Searching for dependency: libsdl
DEBUG: Found Dependency: receipt exists for libsdl
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libsdl_mixer
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libsdl_mixer
DEBUG: Requested variant darwin is not provided by port libsdl_mixer.
DEBUG: Requested variant i386 is not provided by port libsdl_mixer.
DEBUG: Requested variant macosx is not provided by port libsdl_mixer.
DEBUG: Searching for dependency: libsdl_mixer
DEBUG: Found Dependency: receipt exists for libsdl_mixer
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl_image
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl_image
DEBUG: Requested variant darwin is not provided by port libsdl_image.
DEBUG: Requested variant i386 is not provided by port libsdl_image.
DEBUG: Requested variant macosx is not provided by port libsdl_image.
DEBUG: Searching for dependency: libsdl_image
DEBUG: Found Dependency: receipt exists for libsdl_image
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl_ttf
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libsdl_ttf
DEBUG: Requested variant darwin is not provided by port libsdl_ttf.
DEBUG: Requested variant i386 is not provided by port libsdl_ttf.
DEBUG: Requested variant macosx is not provided by port libsdl_ttf.
DEBUG: Searching for dependency: libsdl_ttf
DEBUG: Found Dependency: receipt exists for libsdl_ttf
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/smpeg
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/smpeg
DEBUG: Requested variant darwin is not provided by port smpeg.
DEBUG: Requested variant i386 is not provided by port smpeg.
DEBUG: Requested variant macosx is not provided by port smpeg.
DEBUG: Executing variant darwin_9 provides darwin_9
DEBUG: Searching for dependency: smpeg
DEBUG: Found Dependency: receipt exists for smpeg
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-numeric
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-numeric
DEBUG: Requested variant darwin is not provided by port py-numeric.
DEBUG: Requested variant i386 is not provided by port py-numeric.
DEBUG: Executing variant macosx provides macosx
DEBUG: Searching for dependency: py-numeric
DEBUG: Found Dependency: receipt exists for py-numeric
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pyobjc2
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pyobjc2
DEBUG: Requested variant darwin is not provided by port py-pyobjc2.
DEBUG: Requested variant i386 is not provided by port py-pyobjc2.
DEBUG: Requested variant macosx is not provided by port py-pyobjc2.
DEBUG: Searching for dependency: py-pyobjc2
DEBUG: Found Dependency: receipt exists for py-pyobjc2
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pyobjc2-cocoa
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pyobjc2-cocoa
DEBUG: Requested variant darwin is not provided by port py-pyobjc2-cocoa.
DEBUG: Requested variant i386 is not provided by port py-pyobjc2-cocoa.
DEBUG: Requested variant macosx is not provided by port py-pyobjc2-cocoa.
DEBUG: Searching for dependency: py-pyobjc2-cocoa
DEBUG: Found Dependency: receipt exists for py-pyobjc2-cocoa
DEBUG: Executing org.macports.main (py-game)
---> Fetching py-game
DEBUG: Executing org.macports.fetch (py-game)
---> Verifying checksum(s) for py-game
DEBUG: Executing org.macports.checksum (py-game)
---> Checksumming pygame-1.8.0release.tar.gz
DEBUG: Correct (md5) checksum for pygame-1.8.0release.tar.gz
DEBUG: Correct (sha1) checksum for pygame-1.8.0release.tar.gz
DEBUG: Correct (rmd160) checksum for pygame-1.8.0release.tar.gz
---> Extracting py-game
DEBUG: Executing org.macports.extract (py-game)
---> Extracting pygame-1.8.0release.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/python/pygame-1.8.0release.tar.gz
DEBUG: Environment:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work" && gzip -dc /opt/local/var/macports/distfiles/python/pygame-1.8.0release.tar.gz | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (py-game)
---> Applying patches to py-game
---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-game/files/patch-config_darwin.py.diff
DEBUG: Environment:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release" && patch -p0'
patching file config_darwin.py
---> Configuring py-game
DEBUG: Executing org.macports.configure (py-game)
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing proc-post-org.macports.configure-configure-0
DEBUG: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/Setup": no such file or directory
while executing
"exec /usr/bin/sed {s|-Ddarwin -lSDL|-Ddarwin -lSDL -I/usr/X11R6/include|g} < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macp..."
("eval" body line 1)
invoked from within
"eval exec $cmdline"
Error: reinplace: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/Setup": no such file or directory
Error: Target org.macports.configure returned: reinplace sed(1) failed
Warning: the following items did not execute (for py-game): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
My workaround builds the missing Setup file separately.
comment:5 Changed 5 years ago by kurt@…
I'm getting the same error on my Leopard machine (10.5.4, 2.4 GHz Intel Core 2 Duo):
DEBUG: Executing org.macports.main (py-game)
---> Fetching py-game
DEBUG: Executing org.macports.fetch (py-game)
---> Verifying checksum(s) for py-game
DEBUG: Executing org.macports.checksum (py-game)
---> Checksumming pygame-1.8.0release.tar.gz
DEBUG: Correct (md5) checksum for pygame-1.8.0release.tar.gz
DEBUG: Correct (sha1) checksum for pygame-1.8.0release.tar.gz
DEBUG: Correct (rmd160) checksum for pygame-1.8.0release.tar.gz
---> Extracting py-game
DEBUG: Executing org.macports.extract (py-game)
---> Extracting pygame-1.8.0release.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/python/pygame-1.8.0release.tar.gz
DEBUG: Environment:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work" && gzip -dc /opt/local/var/macports/distfiles/python/pygame-1.8.0release.tar.gz | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (py-game)
---> Applying patches to py-game
---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-game/files/patch-config_darwin.py.diff
DEBUG: Environment:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release" && patch -p0'
patching file config_darwin.py
---> Configuring py-game
DEBUG: Executing org.macports.configure (py-game)
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing proc-post-org.macports.configure-configure-0
DEBUG: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/Setup": no such file or directory
while executing
"exec /usr/bin/sed {s|-Ddarwin -lSDL|-Ddarwin -lSDL -I/usr/X11R6/include|g} < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macp..."
("eval" body line 1)
invoked from within
"eval exec $cmdline"
Error: reinplace: couldn't read file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-game/work/pygame-1.8.0release/Setup": no such file or directory
Error: Target org.macports.configure returned: reinplace sed(1) failed
Warning: the following items did not execute (for py-game): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
The workaround above also works for me. Note that the workaround did not work if I used sudo. Reading more carefully, the instructions do indeed say "run as root". So a heads-up for anyone else who uses the workaround...
comment:7 follow-up: ↓ 8 Changed 4 years ago by toby@…
py-game is at 1.9.1 now, is this still an issue?


Workaround, after running port install py-game once, execute as root:
then execute port install py-game again