Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61023 closed defect (duplicate)

Failed to patch curl: command execution failed

Reported by: 1o1o1 (1o1o1) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: hadrabap (Petr Hadraba)
Port: curl

Description

version:1
:debug:sysinfo macOS 10.15 (darwin/19.6.0) arch i386
:debug:sysinfo MacPorts 2.6.3
:debug:sysinfo Xcode none
:debug:sysinfo SDK 10.15
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:msg:clean --->  Computing dependencies for curl:info:clean .:debug:clean curl has no conflicts
:debug:clean Searching for dependency: xz
:debug:clean Found Dependency: receipt exists for xz
:debug:clean Searching for dependency: pkgconfig
:debug:clean Found Dependency: receipt exists for pkgconfig
:debug:clean Searching for dependency: libidn2
:debug:clean Found Dependency: receipt exists for libidn2
:debug:clean Searching for dependency: libpsl
:debug:clean Found Dependency: receipt exists for libpsl
:debug:clean Searching for dependency: zlib
:debug:clean Found Dependency: receipt exists for zlib
:debug:clean Searching for dependency: openssl
:debug:clean Found Dependency: receipt exists for openssl
:debug:clean Searching for dependency: curl-ca-bundle
:debug:clean Found Dependency: receipt exists for curl-ca-bundle
:debug:main Executing org.macports.main (curl)
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:archivefetch archivefetch phase started at Wed Aug 19 15:10:28 EEST 2020
:msg:archivefetch --->  Fetching archive for curl
:debug:archivefetch Executing org.macports.archivefetch (curl)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  curl-7.72.0_0+ssl.darwin_19.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch curl-7.72.0_0+ssl.darwin_19.x86_64.tbz2 from https://mse.uk.packages.macports.org/curl
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch curl-7.72.0_0+ssl.darwin_19.x86_64.tbz2 from http://nue.de.packages.macports.org/curl
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch curl-7.72.0_0+ssl.darwin_19.x86_64.tbz2 from https://lil.fr.packages.macports.org/curl
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Aug 19 15:10:28 EEST 2020
:notice:fetch --->  Fetching distfiles for curl
:debug:fetch Executing org.macports.fetch (curl)
:info:fetch --->  curl-7.72.0.tar.xz does not exist in /opt/local/var/macports/distfiles/curl
:notice:fetch --->  Attempting to fetch curl-7.72.0.tar.xz from https://curl.haxx.se/download/
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Wed Aug 19 15:10:39 EEST 2020
:notice:checksum --->  Verifying checksums for curl
:debug:checksum Executing org.macports.checksum (curl)
:info:checksum --->  Checksumming curl-7.72.0.tar.xz
:debug:checksum Calculated (rmd160) is f9bce9f71e9a0a591cda110e634421d9926a6eb3
:debug:checksum Correct (rmd160) checksum for curl-7.72.0.tar.xz
:debug:checksum Calculated (sha256) is 0ded0808c4d85f2ee0db86980ae610cc9d165e9ca9da466196cc73c346513713
:debug:checksum Correct (sha256) checksum for curl-7.72.0.tar.xz
:debug:checksum Calculated (size) is 2390040
:debug:checksum Correct (size) checksum for curl-7.72.0.tar.xz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Wed Aug 19 15:10:39 EEST 2020
:notice:extract --->  Extracting curl
:debug:extract setting option extract.cmd to /opt/local/bin/xz
:debug:extract Executing org.macports.extract (curl)
:info:extract --->  Extracting curl-7.72.0.tar.xz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/curl/curl-7.72.0.tar.xz'
:debug:extract Environment: 
:debug:extract CC_PRINT_OPTIONS='YES'
:debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/.CC_PRINT_OPTIONS'
:debug:extract CPATH='/opt/local/include'
:debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:extract LIBRARY_PATH='/opt/local/lib'
:debug:extract MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:extract SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/curl/curl-7.72.0.tar.xz' | /usr/bin/tar -xf - 
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/curl/curl-7.72.0.tar.xz' | /usr/bin/tar -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Wed Aug 19 15:10:41 EEST 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='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/.CC_PRINT_OPTIONS'
:debug:patch CPATH='/opt/local/include'
:debug:patch DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:patch LIBRARY_PATH='/opt/local/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:patch SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
:info:patch Executing:  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'
:debug:patch system:  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'
:info:patch patching file configure
:info:patch --->  Applying libressl.patch
:debug:patch Environment: 
:debug:patch CC_PRINT_OPTIONS='YES'
:debug:patch CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/.CC_PRINT_OPTIONS'
:debug:patch CPATH='/opt/local/include'
:debug:patch DEVELOPER_DIR='/Library/Developer/CommandLineTools'
:debug:patch LIBRARY_PATH='/opt/local/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='10.15'
:debug:patch SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
:info:patch Executing:  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/libressl.patch'
:debug:patch system:  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/libressl.patch'
:info:patch patching file lib/vtls/openssl.c
: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 lib/vtls/openssl.c.rej
: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/libressl.patch'
:info:patch Exit code: 1
:error:patch Failed to patch curl: command execution failed
:debug:patch Error code: CHILDSTATUS 94971 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_release_tarballs_ports_net_curl/curl/main.log for details.


    

Attachments (2)

main.log (8.8 KB) - added by 1o1o1 (1o1o1) 4 years ago.
curl.log (10.0 KB) - added by hadrabap (Petr Hadraba) 4 years ago.
curl patch failure

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by 1o1o1 (1o1o1)

Attachment: main.log added

Changed 4 years ago by hadrabap (Petr Hadraba)

Attachment: curl.log added

curl patch failure

comment:1 Changed 4 years ago by hadrabap (Petr Hadraba)

The same issue here (see curl.log). It seems the LibreSSL patch is somehow odd. I removed the reference to the patch in the Portfile and everything compiled well.

comment:2 Changed 4 years ago by hadrabap (Petr Hadraba)

Cc: hadrabap added

comment:3 Changed 4 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)

The LibreSSL patch has been included in the new version. It is no longer needed.

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

Resolution: duplicate
Status: newclosed
Type: updatedefect

comment:6 Changed 4 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula removed
Note: See TracTickets for help on using tickets.