Opened 3 years ago

Last modified 3 years ago

#51183 new defect

MacPorts did not install curl's dependency openssl

Reported by: larry.schapker@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Schmidt), jmroot (Joshua Root)
Port:

Description

Mac version: El Capitan

commandline output:

larry.schapker@LSCHAPKER-01:~ 10:09:38 $ sudo port install pango +no_x11 +quartz +universal
--->  Computing dependencies for pango
--->  Dependencies to be installed: harfbuzz graphite2 cmake curl
--->  Staging curl into destroot
Error: org.macports.destroot for port curl returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/destroot" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/destroot-x86_64/destroot": file already exists
Error: Failed to install curl
Please see the log file for port curl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/main.log
Error: The following dependencies were not installed: harfbuzz graphite2 cmake curl
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port pango failed

I've deleted the "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work" folder and re-executed the command. That execution returned the same error. My guess is there is an issue with the building/staging of the curl object code (but not certain about that).

I am very new to OSx (but have a lot of experience with Linux) and request a little guidance for this issue.

Thank you!

Attachments (2)

main.log (3.4 KB) - added by larry.schapker@… 3 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/main.log
main.2.log (266.5 KB) - added by larry.schapker@… 3 years ago.
log file after "sudo port clean curl".

Download all attachments as: .zip

Change History (12)

Changed 3 years ago by larry.schapker@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/main.log

comment:1 Changed 3 years ago by larry.schapker@…

Cc: larry.schapker@… added

Cc Me!

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Cc: larry.schapker@… removed
Keywords: pango curl removed
Owner: changed from macports-tickets@… to ryandesign@…

In the future, please Cc the port maintainers (port info --maintainers curl), if any. As reporter, you do not need to Cc yourself.

comment:3 Changed 3 years ago by ryandesign (Ryan Schmidt)

The reason for this particular failure is that you did not clean before trying again, as listed in the ticket filing instructions. Please run sudo port clean curl

Changed 3 years ago by larry.schapker@…

Attachment: main.2.log added

log file after "sudo port clean curl".

comment:4 in reply to:  3 Changed 3 years ago by larry.schapker@…

Thank you for the quick reply. I'm barely 1 step ahead of you.

larry.schapker@LSCHAPKER-01:~ 10:42:46 $ sudo port clean curl
--->  Cleaning curl                                    http://guide.macports.org/#project.tickets
larry.schapker@LSCHAPKER-01:~ 10:43:06 $ sudo port install pango +no_x11 +quartz +universal
--->  Computing dependencies for pango
--->  Dependencies to be installed: harfbuzz graphite2 cmake curl
--->  Fetching archive for curl
--->  Attempting to fetch curl-7.48.0_0+ssl+universal.darwin_15.i386-x86_64.tbz2 from https://packages.macports.org/curl
--->  Attempting to fetch curl-7.48.0_0+ssl+universal.darwin_15.i386-x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/curl
--->  Attempting to fetch curl-7.48.0_0+ssl+universal.darwin_15.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/curl
--->  Fetching distfiles for curl
--->  Verifying checksums for curl
--->  Extracting curl
--->  Applying patches to curl
--->  Configuring curl
--->  Building curl
--->  Staging curl into destroot
Error: org.macports.destroot for port curl returned: curl-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/destroot-i386//opt/local/bin and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/work/destroot-x86_64//opt/local/bin and cannot be merged
Error: Failed to install curl
Please see the log file for port curl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_curl/curl/main.log
Error: The following dependencies were not installed: harfbuzz graphite2 cmake curl
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port pango failed

Replying to ryandesign@…:

The reason for this particular failure is that you did not clean before trying again, as listed in the ticket filing instructions. Please run sudo port clean curl

comment:5 Changed 3 years ago by ryandesign (Ryan Schmidt)

What version of Xcode do you have?

comment:6 in reply to:  5 Changed 3 years ago by larry.schapker@…

I installed xcode 7.3 (via the Apple apps store)

as they state: Xcode 7.3 includes Swift 2.2 and SDKs for iOS 9.3, watchOS 2.2, tvOS 9.2, and OS X 10.11 El Capitan.

Replying to ryandesign@…:

What version of Xcode do you have?

comment:7 Changed 3 years ago by ryandesign (Ryan Schmidt)

The log shows that for the x86_64 portion of the build, it found openssl 1.0.0, and for the i386 portion of the build it did not find openssl at all. Both of those results are weird; it should be finding openssl 1.0.2 for both portions of the build.

Verify what version of the MacPorts openssl port you have installed by running:

/opt/local/bin/port -v installed openssl
/opt/local/bin/openssl version
/usr/bin/file /opt/local/bin/openssl

comment:8 Changed 3 years ago by larry.schapker@…

Thank you for the very quick response and guidance!

When I executed the first command you provided, MacPort reported that openssl was not installed.

larry.schapker@LSCHAPKER-01:~ 07:47:49 $ /opt/local/bin/port -v installed openssl
None of the specified ports are installed.

My guess is that ssl was installed as part of the base El Capitan install, but wasn't under MacPorts.

I manually installed openssl via MacPorts (sudo port install openssl +no_x11 +quartz +universal) and it appeared to install properly. After "cleaning" the install of curl, I re-executed the install of "pango". Pango appears to be installed now.

Would changing the dependencies for curl to include "openssl" correct this issue in the future?

Thanks again for your assistance!!!

comment:9 Changed 3 years ago by ryandesign (Ryan Schmidt)

Component: portsbase
Port: curl removed
Summary: Curl failure while attempting to install pangoMacPorts did not install curl's dependency openssl

The curl dependencies do include openssl, if you use the ssl variant, which MacPorts curl does by default and which your terminal output shows is being used in your case, so MacPorts should have installed it prior to attempting to install curl. If you were to deliberately deselect the ssl variant, curl would not attempt to use openssl.

The only explanation I can think of is that you've found a bug in MacPorts base where it did not compute the dependencies of curl properly. I note that the log you attached does not contain any of the usual dependency verification output. I know that one such bug was fixed in r138461 but that situation might be different.

comment:10 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… jmr@… added
Owner: changed from ryandesign@… to macports-tickets@…

Josh, any idea about this one?

Note: See TracTickets for help on using tickets.