Opened 4 years ago

Closed 4 years ago

#61025 closed defect (fixed)

curl @7.72.0_0 Failed to patch

Reported by: dbl001 (dbl) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: High Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: blair (Blair Zajac), tristancollins (Tristan Collins), dershow, jonasjonas (Frank Hellenkamp)
Port: curl

Description

OS X 10.11.6

:info:patch Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/curl-7.72.0" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/curl/files/configure.patch'

Attachments (1)

main.log (19.0 KB) - added by dbl001 (dbl) 4 years ago.

Download all attachments as: .zip

Change History (11)

Changed 4 years ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 4 years ago by blair (Blair Zajac)

Owner: set to ryandesign
Status: newassigned

Confirm that I'm seeing this also

--->  Applying libressl.patch
Executing:  cd "/opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-ports.git_net_curl/curl/work/curl-7.72.0" && /usr/bin/patch -p0 < '/Users/blair/Code/MacPorts/macports-ports.git/net/curl/files/libressl.patch'
patching file lib/vtls/openssl.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/vtls/openssl.c.rej

comment:2 Changed 4 years ago by blair (Blair Zajac)

Cc: blair added

comment:3 Changed 4 years ago by tristancollins (Tristan Collins)

Cc: tristancollins added

comment:5 Changed 4 years ago by dershow

Cc: dershow added

comment:6 Changed 4 years ago by jmroot (Joshua Root)

Keywords: curl removed
Port: curl added; curl-7.72.0_0 removed
Summary: Error: Failed to patch curl: command execution failedcurl @7.72.0_0 Failed to patch

comment:7 Changed 4 years ago by AgilentGCMS

I also have a problem updating curl, likely the same bug. Here's the relevant section from my log:

:debug:patch patch phase started at Wed Aug 19 13:16:09 EDT 2020
:debug:patch Executing org.macports.patch (curl)
:notice:patch --->  Applying patches to curl
:info:patch --->  Applying configure.patch
:debug:patch Environment:
:debug:patch CC_PRINT_OPTIONS='YES'
:debug:patch CC_PRINT_OPTIONS_FILE='/Users/sbasu1/packages/macports/var/macports/build/_Users_sbasu1_packages_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_curl/curl/work/.CC_PRINT_OPTIONS'
:debug:patch CPATH='/Users/sbasu1/packages/macports/include'
:debug:patch DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:patch LIBRARY_PATH='/Users/sbasu1/packages/macports/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:patch SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
:info:patch Executing:  cd "/Users/sbasu1/packages/macports/var/macports/build/_Users_sbasu1_packages_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_curl/curl/work/curl-7.72.0" && /usr/bin/patch -p0 < '/Users/sbasu1/packages/macports/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/net/curl/files/configure.patch'
:debug:patch system:  cd "/Users/sbasu1/packages/macports/var/macports/build/_Users_sbasu1_packages_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_curl/curl/work/curl-7.72.0" && /usr/bin/patch -p0 < '/Users/sbasu1/packages/macports/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/net/curl/files/configure.patch'
:info:patch patching file configure
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n]
:info:patch Apply anyway? [n]
:info:patch Skipping patch.
:info:patch 1 out of 1 hunk ignored -- saving rejects to file configure.rej
:info:patch Command failed:  cd "/Users/sbasu1/packages/macports/var/macports/build/_Users_sbasu1_packages_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_curl/curl/work/curl-7.72.0" && /usr/bin/patch -p0 < '/Users/sbasu1/packages/macports/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/net/curl/files/configure.patch'
:info:patch Exit code: 1
:error:patch Failed to patch curl: command execution failed
:debug:patch Error code: CHILDSTATUS 47470 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 /Users/sbasu1/packages/macports/var/macports/logs/_Users_sbasu1_packages_macports_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_curl/curl/main.log for details.

comment:8 Changed 4 years ago by jonasjonas (Frank Hellenkamp)

Cc: jonasjonas added

comment:9 Changed 4 years ago by neverpanic (Clemens Lang)

Priority: NormalHigh

curl is a common dependency, so this affects many ports. Bumping priority.

comment:10 Changed 4 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

In ce2a7eea7ad5a03008465ac0169518c7622b4858/macports-ports (master):

curl: Drop patchfile merged upstream (https://github.com/macports/macports-ports/pull/8152)

Port currently fails to build because the patch to lib/vtls/openssl.c
fails as already applied. I'm assuming this is because upstream adopted
the change, and am thus removing it.

No revbump is required, because this did not build at all.

Closes: #61025

Note: See TracTickets for help on using tickets.