Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#27591 closed defect (fixed)

python27 2.7.1 fails to patch

Reported by: blair (Blair Zajac) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: skymoo (Adam Mercer), jendave@…, ryandesign (Ryan Carsten Schmidt), jiminaus@…, tonior@…, chiggsy@…, dechaume@…, kurtjaeke@…, gale@…, stromnov (Andrey Stromnov), m214089, christopherjnichols@…
Port: python27

Description

Hello,

I'm seeing this error with 2.7.1:

--->  Verifying checksum(s) for python27
--->  Checksumming Python-2.7.1.tar.bz2
--->  Extracting python27
--->  Extracting Python-2.7.1.tar.bz2
--->  Applying patches to python27
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python27/files/patch-Makefile.pre.in.diff
patching file Makefile.pre.in
Hunk #1 FAILED at 394.
Hunk #2 FAILED at 993.
Hunk #3 succeeded at 1117 (offset 44 lines).
2 out of 3 hunks FAILED -- saving rejects to file Makefile.pre.in.rej
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python27/files/patch-Makefile.pre.in.diff'" returned error 1
Error: Target org.macports.patch returned: shell command failed
Warning: the following items did not execute (for python27): org.macports.destroot org.macports.patch org.macports.configure org.macports.build
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log
Error: Unable to upgrade port: 1

Change History (27)

comment:1 Changed 14 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:2 in reply to:  1 Changed 14 years ago by rabbielvis@…

Getting same error.

Please CC me.

comment:3 Changed 14 years ago by rabbielvis@…

Cc: rabbielvis@… added

Cc Me!

comment:4 Changed 14 years ago by jendave@…

Cc: jendave@… added

Cc Me!

comment:5 Changed 14 years ago by blb@…

Cc: ryandesign@… added

Cc reporter of dup #27595.

comment:6 Changed 14 years ago by blb@…

Owner: changed from jwa to jwa@…

(Must use email addresses in assignments, Cc, etc.)

comment:7 Changed 14 years ago by jiminaus@…

Cc: jiminaus@… added

Cc Me!

comment:8 Changed 14 years ago by tonior@…

Cc: tonior@… added

Cc Me!

comment:9 Changed 14 years ago by chiggsy@…

Cc: chiggsy@… added

Cc Me!

comment:10 Changed 14 years ago by dechaume@…

Cc: dechaume@… added

Cc Me!

comment:11 Changed 14 years ago by kurtjaeke@…

Cc: kurtjaeke@… added

Cc Me!

comment:12 Changed 14 years ago by gale@…

Cc: gale@… added

Cc Me!

comment:13 Changed 14 years ago by stromnov (Andrey Stromnov)

Partially fixed in r74203:

1) Fixed patch-Makefile.pre.in.diff

2) Temporarily disabled broken posixmodule.c.ed

comment:14 Changed 14 years ago by a.y.harano@…

Cc: a.y.harano@… added

Cc Me!

comment:15 Changed 14 years ago by stromnov (Andrey Stromnov)

Cc: stromnov@… added

Cc Me!

comment:16 Changed 14 years ago by m214089

Cc: luis.kornblueh@… added

Cc Me!

comment:17 Changed 14 years ago by christopherjnichols@…

Cc: christopherjnichols@… added

Cc Me!

comment:18 Changed 14 years ago by chiggsy@…

Actually, I grabbed the latest git version and installed it locally successfully. FWIW.

comment:19 Changed 14 years ago by jyrkiwahlstedt

Resolution: fixed
Status: newclosed

fixed in r74208 and r74209

comment:20 Changed 14 years ago by christopherjnichols@…

Resolution: fixed
Status: closedreopened

Prior to it being marked 'fixed' only two out of three hunks would fail when applying the patch. Now all three fail.

comment:21 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Have you already run "sudo port clean python27"?

comment:22 Changed 14 years ago by rabbielvis@…

Cc: rabbielvis@… removed

Cc Me!

comment:23 Changed 14 years ago by christopherjnichols@…

Apparently I had not... works fine now.

comment:24 Changed 14 years ago by a.y.harano@…

Cc: a.y.harano@… removed

Cc Me!

comment:25 Changed 14 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: reopenedclosed

comment:26 Changed 14 years ago by tonior@…

Still not working for me, although a different error:

:info:patch patching file setup.py
:info:patch Hunk #1 succeeded at 1639 (offset 143 lines).
:info:patch Hunk #2 succeeded at 1677 (offset 146 lines).
:info:patch Hunk #3 succeeded at 1727 (offset 148 lines).
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python27/files/patch-Lib-cgi.py.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /usr/bin/patch -p0'
:info:patch patching file Lib/cgi.py
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python27/files/patch-Lib-ctypes-macholib-dyld.py.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1" && /usr/bin/patch -p0'
:info:patch patching file Lib/ctypes/macholib/dyld.py
:debug:patch Executing proc-post-org.macports.patch-patch-0
:info:patch ?
:info:patch shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1 && ed - Modules/posixmodule.c < /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python27/files/posixmodule.c.ed" returned error 2
:error:patch Target org.macports.patch returned: shell command failed (see log for details)
:debug:patch Backtrace: shell command failed (see log for details)
    while executing
"$post $targetname"
:info:patch Warning: the following items did not execute (for python27): org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:patch Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/main.log

(First time posting here, my apologies if I'm posting out of order.)

comment:27 Changed 14 years ago by tonior@…

My bad... neglected to do a selfupdate before re-installing. Worked now. =)

Note: See TracTickets for help on using tickets.