-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python39: fix patchfile for older MacOS X
- Loading branch information
Showing
1 changed file
with
8 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138d609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Next we have to figure out why the c bindings are so horribly broken on .. < 10.6 I guess it is. That is harder :>
138d609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance this broke compiling for intel 10.5 ?
I only just installed macports last night and receive this error in the log
:debug:patch CPATH='/opt/local/include'
:debug:patch DEVELOPER_DIR='/Developer'
:debug:patch LIBRARY_PATH='/opt/local/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='10.5'
:info:patch Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pyth
on39/python39/work/Python-3.9.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/pyth
on39/files/patch-no-copyfile-on-Tiger.diff'
:debug:patch system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python
39/python39/work/Python-3.9.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/python
39/files/patch-no-copyfile-on-Tiger.diff'
:info:patch patching file Lib/test/test_shutil.py
:info:patch Hunk #1 succeeded at 2468 (offset 17 lines).
:info:patch patching file Modules/clinic/posixmodule.c.h
:info:patch patching file Modules/posixmodule.c
:info:patch Hunk #1 FAILED at 56.
:info:patch Hunk #2 succeeded at 83 (offset 6 lines).
:info:patch Hunk #3 succeeded at 225 (offset 115 lines).
:info:patch Hunk #4 succeeded at 9906 (offset 421 lines).
:info:patch Hunk #5 succeeded at 15111 (offset 439 lines).
:info:patch 1 out of 5 hunks FAILED -- saving rejects to file Modules/posixmodule.c.rej
:info:patch Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang
_python39/python39/work/Python-3.9.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang
/python39/files/patch-no-copyfile-on-Tiger.diff'
:info:patch Exit code: 1
:error:patch Failed to patch python39: command execution failed
:debug:patch Error code: CHILDSTATUS 9810 1
: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/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python39/python3
9/main.log for details.
138d609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@theadminmanager you need to update your ports. the log shows the original (before this change) issue. All this PR does is if that patchfile to apply cleanly ... and correctly, actually .. .there's a subtle change in the first hunk based on upstream changes to that part of the file ...
138d609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks that worked perfectly now