Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63623 closed defect (worksforme)

dependency on openssl broken???

Reported by: mouse07410 (Mouse) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mascguy (Christopher Nielsen), jmroot (Joshua Root)
Port: openssl

Description

MacOS Big Sur 11.6, Xcode-13.0, current Macports.

Port seems to believe that openssl @1.1.1l_1 is older than and needs to be updated to openssl @1.1_0.

$ port version
Version: 2.7.1
$ port outdated
The following installed ports are outdated:
links                          2.24_0 < 2.25_0           
openssl                        1.1.1l_1 < 1.1_0  (epoch 1 < 2)  
$ port installed openssl
The following ports are currently installed:
  openssl @1.1_0
  openssl @1.1.1l_1 (active)

Then, something weird - not sure if it's related:

$ port -d outdated
The following installed ports are outdated:
links                          2.24_0 < 2.25_0           
openssl                        1.1.1l_1 < 1.1_0  (epoch 1 < 2)  
p5.26-algorithm-diff (1.201.0_0 is installed; the port was not found in the port index)
p5.26-authen-sasl (2.160.0_0 is installed; the port was not found in the port index)
p5.26-b-cow (0.4.0_0 is installed; the port was not found in the port index)
p5.26-capture-tiny (0.480.0_0 is installed; the port was not found in the port index)
p5.26-cgi (4.530.0_0 is installed; the port was not found in the port index)
p5.26-clone (0.450.0_0 is installed; the port was not found in the port index)
p5.26-cpan-meta (2.150.10_0 is installed; the port was not found in the port index)
p5.26-cpan-meta-requirements (2.140.0_0 is installed; the port was not found in the port index)
p5.26-cpan-meta-yaml (0.18.0_0 is installed; the port was not found in the port index)
p5.26-devel-checkbin (0.40.0_0 is installed; the port was not found in the port index)
p5.26-digest-hmac (1.40.0_0 is installed; the port was not found in the port index)
p5.26-digest-sha1 (2.130.0_4 is installed; the port was not found in the port index)
p5.26-encode (3.100.0_0 is installed; the port was not found in the port index)
p5.26-encode-locale (1.50.0_0 is installed; the port was not found in the port index)
p5.26-error (0.170.290_0 is installed; the port was not found in the port index)
p5.26-extutils-makemaker (7.600.0_0 is installed; the port was not found in the port index)
p5.26-extutils-manifest (1.730.0_0 is installed; the port was not found in the port index)
p5.26-gssapi (0.280.0_3 is installed; the port was not found in the port index)
p5.26-html-parser (3.760.0_0 is installed; the port was not found in the port index)
p5.26-html-tagset (3.200.0_4 is installed; the port was not found in the port index)
p5.26-http-date (6.50.0_0 is installed; the port was not found in the port index)
p5.26-http-message (6.320.0_0 is installed; the port was not found in the port index)
p5.26-inc-latest (0.500.0_0 is installed; the port was not found in the port index)
p5.26-io (1.450.0_0 is installed; the port was not found in the port index)
p5.26-io-html (1.4.0_0 is installed; the port was not found in the port index)
p5.26-io-socket-inet6 (2.720.0_0 is installed; the port was not found in the port index)
p5.26-io-socket-ip (0.410.0_0 is installed; the port was not found in the port index)
p5.26-io-socket-ssl (2.71.0_0 is installed; the port was not found in the port index)
p5.26-locale-gettext (1.70.0_0 is installed; the port was not found in the port index)
p5.26-lwp-mediatypes (6.40.0_0 is installed; the port was not found in the port index)
p5.26-module-build (0.423.100_0 is installed; the port was not found in the port index)
p5.26-module-metadata (1.0.37_0 is installed; the port was not found in the port index)
p5.26-mozilla-ca (20200520_0 is installed; the port was not found in the port index)
p5.26-net-libidn (0.120.0_5 is installed; the port was not found in the port index)
p5.26-net-smtp-ssl (1.40.0_0 is installed; the port was not found in the port index)
p5.26-net-ssleay (1.900.0_0 is installed; the port was not found in the port index)
p5.26-perl-ostype (1.10.0_0 is installed; the port was not found in the port index)
p5.26-pod-escapes (1.70.0_0 is installed; the port was not found in the port index)
p5.26-pod-simple (3.420.0_0 is installed; the port was not found in the port index)
p5.26-podlators (4.140.0_0 is installed; the port was not found in the port index)
p5.26-scalar-list-utils (1.560.0_0 is installed; the port was not found in the port index)
p5.26-socket (2.31.0_0 is installed; the port was not found in the port index)
p5.26-socket6 (0.290.0_0 is installed; the port was not found in the port index)
p5.26-sub-name (0.260.0_0 is installed; the port was not found in the port index)
p5.26-sub-uplevel (0.280.0_0 is installed; the port was not found in the port index)
p5.26-term-readkey (2.380.0_0 is installed; the port was not found in the port index)
p5.26-test-deep (1.130.0_0 is installed; the port was not found in the port index)
p5.26-test-exception (0.430.0_0 is installed; the port was not found in the port index)
p5.26-test-fatal (0.16.0_0 is installed; the port was not found in the port index)
p5.26-test-needs (0.2.9_0 is installed; the port was not found in the port index)
p5.26-test-nowarnings (1.40.0_1 is installed; the port was not found in the port index)
p5.26-test-warn (0.360.0_0 is installed; the port was not found in the port index)
p5.26-time-local (1.300.0_0 is installed; the port was not found in the port index)
p5.26-timedate (2.330.0_0 is installed; the port was not found in the port index)
p5.26-try-tiny (0.300.0_0 is installed; the port was not found in the port index)
p5.26-uri (5.90.0_0 is installed; the port was not found in the port index)
p5.26-version (0.992.900_0 is installed; the port was not found in the port index)
$ 

Change History (14)

comment:1 Changed 3 years ago by mouse07410 (Mouse)

I removed all the ports via sudo port -f uninstall installed, and tried from scratch.

OpenSSL port screw-up still breaks it:

$ port -vd installed
No ports are installed.
$ sync
$ port info python39
python39 @3.9.7 (lang)
Variants:             dtrace, [+]lto, [+]optimizations, universal

Description:          Python is an interpreted, interactive, object-oriented programming language.
Homepage:             https://www.python.org/

Extract Dependencies: xz
Build Dependencies:   pkgconfig
Library Dependencies: bzip2, expat, gettext, libedit, libffi, ncurses, openssl, sqlite3, xz, zlib
Runtime Dependencies: python_select, python3_select
Platforms:            darwin
License:              PSF
Maintainers:          Email: jmr@macports.org, GitHub: jmroot
$ sudo port install python39
--->  Computing dependencies for python39
The following dependencies will be installed: 
 bzip2
 expat
 gettext
 libedit
 libffi
 libiconv
 ncurses
 openssl
 openssl11
 python3_select
 python_select
 sqlite3
 xz
 zlib
Continue? [Y/n]: y
--->  Fetching archive for bzip2
--->  Attempting to fetch bzip2-1.0.8_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.8_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/bzip2
--->  Installing bzip2 @1.0.8_0
--->  Activating bzip2 @1.0.8_0
--->  Cleaning bzip2
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.4.1_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/expat
--->  Attempting to fetch expat-2.4.1_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/expat
--->  Installing expat @2.4.1_0
--->  Activating expat @2.4.1_0
--->  Cleaning expat
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.16_1.darwin_20.x86_64.tbz2 from https://packages.macports.org/libiconv
--->  Attempting to fetch libiconv-1.16_1.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/libiconv
--->  Installing libiconv @1.16_1
--->  Activating libiconv @1.16_1
--->  Cleaning libiconv
--->  Fetching archive for ncurses
--->  Attempting to fetch ncurses-6.2_1.darwin_20.x86_64.tbz2 from https://packages.macports.org/ncurses
--->  Attempting to fetch ncurses-6.2_1.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/ncurses
--->  Installing ncurses @6.2_1
--->  Activating ncurses @6.2_1
--->  Cleaning ncurses
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.19.8.1_2.darwin_20.x86_64.tbz2 from https://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.19.8.1_2.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/gettext
--->  Installing gettext @0.19.8.1_2
--->  Activating gettext @0.19.8.1_2
--->  Cleaning gettext
--->  Fetching archive for libedit
--->  Attempting to fetch libedit-20210216-3.1_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/libedit
--->  Attempting to fetch libedit-20210216-3.1_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/libedit
--->  Installing libedit @20210216-3.1_0
--->  Activating libedit @20210216-3.1_0
--->  Cleaning libedit
--->  Fetching archive for libffi
--->  Attempting to fetch libffi-3.4.2_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/libffi
--->  Attempting to fetch libffi-3.4.2_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/libffi
--->  Installing libffi @3.4.2_0
--->  Activating libffi @3.4.2_0
--->  Cleaning libffi
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.11_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/zlib
--->  Attempting to fetch zlib-1.2.11_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/zlib
--->  Installing zlib @1.2.11_0
--->  Activating zlib @1.2.11_0
--->  Cleaning zlib
--->  Fetching archive for openssl11
--->  Attempting to fetch openssl11-1.1.1l_3.darwin_20.x86_64.tbz2 from https://packages.macports.org/openssl11
--->  Attempting to fetch openssl11-1.1.1l_3.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/openssl11
--->  Attempting to fetch openssl11-1.1.1l_3.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/openssl11
--->  Fetching distfiles for openssl11
--->  Verifying checksums for openssl11
--->  Extracting openssl11
--->  Applying patches to openssl11
--->  Configuring openssl11
--->  Building openssl11                                 
--->  Staging openssl11 into destroot                    
--->  Installing openssl11 @1.1.1l_3                     
--->  Activating openssl11 @1.1.1l_3
--->  Cleaning openssl11
--->  Fetching archive for openssl
--->  Attempting to fetch openssl-1.1_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/openssl
--->  Attempting to fetch openssl-1.1_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/openssl
--->  Installing openssl @1.1_0
--->  Activating openssl @1.1_0
Error: Failed to activate openssl: Image error: /opt/local/include/openssl already exists and does not belong to a registered port.  Unable to activate port openssl. Use 'port -f activate openssl' to force the activation.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl/openssl/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port python39 failed

comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:3 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: jmroot added
Owner: set to cjones051073
Status: newassigned

I saw something similar in one of my macOS installations last night... 10.12 maybe?

@cjones/@jmroot, any thoughts?

comment:4 Changed 3 years ago by cjones051073 (Chris Jones)

Please make sure your ports tree is fully up to date and try again ? The current version of openssl is 1.1_3 and the above is 1.1_0

 > port info openssl
openssl @1.1_3 (devel, security)
Variants:             universal

Description:          Shim port installing symbolic links in primary prefix pointing to the openssl11 installation.

Library Dependencies: openssl11
Conflicts with:       libressl, libressl-devel
Platforms:            darwin
License:              MIT
Maintainers:          none

comment:5 Changed 3 years ago by mouse07410 (Mouse)

Please make sure your ports tree is fully up to date and try again ?

I tried multiple times, and I always do sudo port sync && sudo port selfupdate before doing (or re-doing) something. So, absolutely, got the same result.

Maybe it's less relevant now, as I deleted all of the installed ports, and re-populating one-by-one. Royal pain in the neck, because restore_ports.tcl never ever worked for me.

I'd like to add that making v1.1 newer than v1.1.1 was, in my opinion, a very bad idea:

openssl                        1.1.1l_1 < 1.1_0  (epoch 1 < 2)

comment:6 Changed 3 years ago by cjones051073 (Chris Jones)

Changing the numbering scheme, dropping the minor patch versions from the shim port was necessary, and the epoch is there for this very scenario. Nothing wrong with doing this.

I suspect you must of had some manual intervention on your install area, to get a message like

Error: Failed to activate openssl: Image error: /opt/local/include/openssl already exists and does not belong to a registered port.

It would have been useful if you had deactivated all openssl and the curl-ca-bundle ports, and then had a look to see what was there, but I guess thats not an option now.

comment:7 Changed 3 years ago by cjones051073 (Chris Jones)

Also, your port tree *cannot* have been up to date if you had been trying to in stall openssl 1.1_0.....

comment:8 Changed 3 years ago by cjones051073 (Chris Jones)

Resolution: worksforme
Status: assignedclosed

comment:9 Changed 3 years ago by mouse07410 (Mouse)

I suspect you must of had some manual intervention on your install area

No, Macports simply got confused by versioning, and did not install 1.1_0 over deactivated 1.1.1l. I did not know which one to force out either.

Also, your port tree *cannot* have been up to date if you had been trying to install openssl 1.1_0

It was - at the date/time of this ticket creation! Of course, during the last 37 hours openssl moved from 1.1_0 to 1.1_3 and then 1.1_5.

I suspect 1.1_0 broke things, subsequently improved in 1.1_3 and fixed in 1.1_5. I was "lucky" to catch the half-baked release 1.1_0.

comment:10 in reply to:  9 Changed 3 years ago by cjones051073 (Chris Jones)

Replying to mouse07410:

I suspect you must of had some manual intervention on your install area

No, Macports simply got confused by versioning, and did not install 1.1_0 over deactivated 1.1.1l. I did not know which one to force out either.

No, Macports had no issues with the versions. It understands epochs just fine. Your error message was clear - there where files under /opt/local/include/openssl that where not registered to any port and hence openssl could not activate as it wanted to create that area. Since you wiped the area before investigating we cannot at this point know what they where.

Also, your port tree *cannot* have been up to date if you had been trying to install openssl 1.1_0

It was - at the date/time of this ticket creation! Of course, during the last 37 hours openssl moved from 1.1_0 to 1.1_3 and then 1.1_5.

there is no openssl 1.1_5 version..... 1.1_3 is still the latest. (openssl11 is at 1.1.1l_5 but that is a different port).

Yes, at the time you opened the ticket 1.1_0 might still have been the latest. But things have been fixed since then which is why I asked you to try again with the latest versions, which at the time (and still is) openssl 1.1_3.

I suspect 1.1_0 broke things, subsequently improved in 1.1_3 and fixed in 1.1_5. I was "lucky" to catch the half-baked release 1.1_0.

Last edited 3 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:11 Changed 3 years ago by mouse07410 (Mouse)

here is no openssl 1.1_5 version..... 1.1_3 is still the latest. (openssl11 is at 1.1.1l_5 but that is a different port).

Could you please explain what I'm observing now on all of my machines after successful update? Does it look correct to you?

$ port -v installed | grep openssl
  openssl @1.1_3 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-14T15:42:14-0400'
  openssl11 @1.1.1l_5 (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-14T15:41:59-0400'
  py39-openssl @19.1.0_1 (active) requested_variants='' platform='darwin 20' archs='noarch' date='2021-10-13T22:11:35-0400'
  qt5-qtbase @5.15.2_2+openssl (active) requested_variants='' platform='darwin 20' archs='x86_64' date='2021-10-13T19:35:06-0400'

Note that OpenSSL was not installed explicitly, but (in this case) as a dependency of other ports.

comment:12 Changed 3 years ago by cjones051073 (Chris Jones)

looks fine to me. what exactly confuses you ?

comment:13 Changed 3 years ago by mascguy (Christopher Nielsen)

@Mouse, bear in mind that port openssl is now a shim port, which creates symlinks to openssl11. So it's correct that you have both installed.

comment:14 Changed 3 years ago by mouse07410 (Mouse)

looks fine to me. what exactly confuses you ?

This:

"1.1_3 is still the latest. (openssl11 is at 1.1.1l_5 but that is a different port)."

port openssl is now a shim port, which creates symlinks to openssl11. So it's correct that you have both installed.

Thanks

Last edited 3 years ago by mouse07410 (Mouse) (previous) (diff)
Note: See TracTickets for help on using tickets.