Closed sd-dlinger closed 4 years ago
I haven't really put instructions on how to use this set of ports.
You need to clone the repository somewhere, then edit ${prefix}/etc/sources.conf
and put the full path URI in there, like file:///Users/myname/ports
. Back in the path where you cloned it, you should run portindex
. port info stepmania
should now a correct result.
It is not normal for MacPorts to check checksums in anything that's in the port's files/
directory. It should not be doing this check.
Actually I did all of what you said, my /opt/local/etc/macports/sources.conf file contains only the following two uncommented lines:
rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
file:///Users/dave/ports
and /Users/dave/ports contains games/stepmania/Portfile (from here)
I moved into the ports dir and ran sudo portindex, and the port info matches what is in the Portfile. Is there a way for me to manually specify the actual checksums?
Update - the log file contains the actual checksums of the files, which I was able to put into the Portfile to pass the checks.
I am now working on this issue:
Dave-MacbookPro:ports dave$ sudo port install stepmania
---> Computing dependencies for stepmania
---> Fetching distfiles for stepmania
---> Verifying checksums for stepmania
---> Extracting stepmania
---> Applying patches to stepmania
Error: Failed to patch stepmania: command execution failed
Error: See /opt/local/var/macports/logs/_Users_dave_ports_games_stepmania/stepmania/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port stepmania failed
You have to put the patches in a files/ sub directory next to where the Portfile is. Checksums of the patches are not needed.
:debug:patch patch phase started at Wed Dec 4 08:38:17 EST 2019
:debug:patch Executing org.macports.patch (stepmania)
:notice:patch ---> Applying patches to stepmania
:info:patch ---> Applying noexcept.patch
:debug:patch Environment:
:debug:patch CC_PRINT_OPTIONS='YES'
:debug:patch CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_dave_ports_games_stepmania/stepmania/work/.CC_PRINT_OPTIONS'
:debug:patch CPATH='/opt/local/include'
:debug:patch DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
:debug:patch LIBRARY_PATH='/opt/local/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:patch SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk'
:info:patch Executing: cd "/opt/local/var/macports/build/_Users_dave_ports_games_stepmania/stepmania/work/stepmania-4977f29" && /usr/bin/patch -p1 -R < '/opt/local/var/macports/distfiles/stepmania/noexcept.patch'
:debug:patch system: cd "/opt/local/var/macports/build/_Users_dave_ports_games_stepmania/stepmania/work/stepmania-4977f29" && /usr/bin/patch -p1 -R < '/opt/local/var/macports/distfiles/stepmania/noexcept.patch'
:info:patch can't find file to patch at input line 242
:info:patch Perhaps you used the wrong -p or --strip option?
--removed lots of lines of patch text--
:info:patch --------------------------
:info:patch File to patch:
:info:patch Skip this patch? [y]
:info:patch Skipping patch.
:info:patch /usr/bin/patch: **** /opt/local/var/macports/build/_Users_dave_ports_games_stepmania/stepmania/work/.tmp/pohE3jsQ : No such file or directory
:info:patch Command failed: cd "/opt/local/var/macports/build/_Users_dave_ports_games_stepmania/stepmania/work/stepmania-4977f29" && /usr/bin/patch -p1 -R < '/opt/local/var/macports/distfiles/stepmania/noexcept.patch'
:info:patch Exit code: 2
:error:patch Failed to patch stepmania: command execution failed
:debug:patch Error code: CHILDSTATUS 23524 2
:debug:patch Backtrace: command execution failed
:debug:patch while executing
:debug:patch "system {*}$notty {*}$nice $fullcmdstring"
:debug:patch invoked from within
:debug:patch "command_exec patch "" "< '$patch'""
:debug:patch (procedure "portpatch::patch_main" line 41)
:debug:patch invoked from within
:debug:patch "$procedure $targetname"
:error:patch See /opt/local/var/macports/logs/_Users_dave_ports_games_stepmania/stepmania/main.log for details.
Whoops, my mistake. Let me try that.
Build completed and Stepmania works. Thanks! Must be a bug or bad behavior from macports but ultimately all I needed to do was add all of the calculated checksums from the logfile into the Portfile to make it work.
I apologize if this is a noob issue, I am not sure how to fix this. The referenced log file doesn't seem to contain any additional info.