<div dir="ltr"><div>as you wish, Chris.<br><br><br></div><div>I was hoping to move this along for the overwhelming benefit of the license, but TBH the push-back so far is 99.99% negative about moving to openssl 3.0.0 this year, so too controversial for me to get involved with. I'll sit back for six to twelve months and see what you guys work out over the coming year.<br><br></div><div>K<br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Mon, Oct 4, 2021 at 8:18 AM Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk">jonesc@hep.phy.cam.ac.uk</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><br>
Reading this thread again, I think there is some confusion over what I <br>
am suggesting, compared to Renee/Ken, as really the differences are <br>
minor and cosmetic packaging differences.<br>
<br>
The main difference is I am suggesting aiming for consistency across <br>
where all the openssl ports install to. Instead of having some install <br>
to libexec, and then one 'blessed' default port install directly into <br>
${prefix} have opensslXYZ ports for *all* versions we need, that all <br>
install to their own libexec area. Then, have a trivial shim port for <br>
the general 'openssl' port that just installs a few sym links from <br>
whatever the 'default' openssl version is deemed to be (currently 1.1.1) <br>
into the primary ${prefix} install.<br>
<br>
We could do this, right now, i.e. move the current openssl port to an <br>
isolated libexec openssl11 port, and update openssl to just be a shim to <br>
that install. This would be completely transparent to all ports using <br>
openssl.<br>
<br>
The advantage of this to me would be<br>
<br>
1. Consistency across all the openssl ports, as they would all, <br>
regardless of their version, be treated (installed) the same way.<br>
<br>
2. Once there, we could then introduce a new port group that extends <br>
what the current old_openssl PG does but in a more general way, as it <br>
would work for not just 'old' openssl versions, but also the current <br>
default and also new ones. e.g. we could then add a openssl30 port and <br>
allow a few ports to experiment with it.<br>
<br>
3. Once we are OK with a few ports using openssl30 we could 'throw the <br>
switch' and update the shim port to point to the 3.0 version.<br>
<br>
The above, if you think about it, is really no different to what <br>
Ken/Renee are suggesting in terms of what ports have to do. If ports are <br>
OK with just relying on the default they can carry on using the <br>
'openssl' (shim) port, just as they are now. Nothing is forcing us to <br>
change these ports. *If* ports wanted to migrate to use the new PG that <br>
is fine, but its an optional choice (unless they are not compatible with <br>
3.0 of course, but then they will need updating anyway once 3.0 is the <br>
default).<br>
<br>
So why do the above instead of what Ken/Renee suggest ? for me the <br>
primary reason is we end up with a system where in future it will be <br>
much easier to deal with future new major versions, without having to <br>
have these discussions again... Say 3.1 or 4.0 comes out, a new isolated <br>
opensslXY port can be added to provide that, that will live alongside <br>
the current ones. A few ports could be tested against it, and as and <br>
when we are ready the default can be flipped again to point to it.<br>
<br>
Chris<br>
<br>
<br>
On 04/10/2021 10:24 am, Christopher Jones wrote:<br>
> <br>
> <br>
>> On 2 Oct 2021, at 8:06 pm, Ken Cunningham <br>
>> <<a target="_blank" href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a> <br>
>> <mailto:<a target="_blank" href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a>>> wrote:<br>
>><br>
>> That is exactly the approach that I don't find workable, Chris.<br>
>><br>
>> Specifically:<br>
>><br>
>> 1. every single port (think: rust, ghc, blah blah) will have to be <br>
>> needlessly managed to build against an alternate openssl location.<br>
> <br>
> why ? They can start of using the shim port and only use the isolated <br>
> builds as and when they are ready<br>
> <br>
>> 2. there will be no default openssl ever in prefix.<br>
> <br>
> why not ? The boost set has one and I see no reason why openssl cannot <br>
> as well.<br>
> <br>
> Chris<br>
> <br>
>><br>
>> So I am not on board for trying to implement that myself, but should <br>
>> that be the selected course I will watch from the sidelines as others <br>
>> proceed down that path.<br>
>><br>
>> K<br>
>><br>
>>> On Oct 2, 2021, at 12:02 PM, Chris Jones <<a target="_blank" href="mailto:jonesc@hep.phy.cam.ac.uk">jonesc@hep.phy.cam.ac.uk</a> <br>
>>> <mailto:<a target="_blank" href="mailto:jonesc@hep.phy.cam.ac.uk">jonesc@hep.phy.cam.ac.uk</a>>> wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> Personally I would strongly recommend following a migration path that <br>
>>> does not require an enmass change but allows ports to migrate  at <br>
>>> their own pace. I would personally very much recommend an approach <br>
>>> similar to that we used for boost recently<br>
>>><br>
>>> 1. Introduced a set of new isolated opensslXYZ ports that install <br>
>>> specific versions into isolated install areas under libexec.<br>
>>> 2. Create a new portgroup that handles the confirmation of ports to <br>
>>> pick the openssl version they wish to use, with some default, and <br>
>>> performs various standard configurations for standard build systems <br>
>>> such that for most ports they work out the box with the new <br>
>>> portgroup. For those that don’t provide various proc methods that <br>
>>> return the configured install paths such that ports can used them to <br>
>>> configure themselves as required.<br>
>>> 3. Make the current openssl port a basic shim port that just installs <br>
>>> sym links into the primary install area to the default openssl <br>
>>> version (for now 1.1.1), so ports building against the current <br>
>>> openssl port carry on working just as they are now, but are <br>
>>> redirected to use the same versioned 1.1.1 port as those using the PG.<br>
>>><br>
>>> Once this is in place, ports can be migrated to use the new PG <br>
>>> individually as and when we want.<br>
>>><br>
>>> Chris<br>
>>><br>
>>>> On 2 Oct 2021, at 6:17 pm, Ken Cunningham <br>
>>>> <<a target="_blank" href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a> <br>
>>>> <mailto:<a target="_blank" href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a>>> wrote:<br>
>>>><br>
>>>> <br>
>>>> openssl 3.0.0 is out, with a new and very favourable Apache-2 <br>
>>>> license that will let many previously non-distributable ports become <br>
>>>> distributable.  However, there are 758 ports that indicate they link <br>
>>>> against openssl. That is a daunting number of ports indeed.<br>
>>>><br>
>>>> One option might be to move all of our openssl ports (1.0, 1.1, and <br>
>>>> 3.x) into subdirectories out of ${prefix}, have no default openssl <br>
>>>> installed in $[prefix} directly, create a new PortGroup, <br>
>>>> openssl_select or some such, add that PG to all 758 ports, default <br>
>>>> it to openssl 1.1.1, and then allow people to gradually move the 758 <br>
>>>> ports to openssl 3.0.0 as they get to it.<br>
>>>><br>
>>>> Although that is possible with suitable effort, I don’t think that <br>
>>>> is workable for many reasons, the most obvious being that we would <br>
>>>> then have to modify every single port in some way to find an openssl <br>
>>>> installed into a non-default prefix. Creating the PG and adding it <br>
>>>> to 758 ports might be work enough, but then finding the right way to <br>
>>>> force all 758 ports to build properly against an openssl that is not <br>
>>>> in the default prefix is the real horror, and seems like a nightmare <br>
>>>> of wasted labours.<br>
>>>><br>
>>>> So it would appear that the same option that was chosen last time, <br>
>>>> ie upgrade the default openssl in ${prefix} to the newer openssl, <br>
>>>> and then fix the subset of ports that will not build against it to <br>
>>>> use an older openssl appears both the better option and lot less <br>
>>>> work (assuming most ports do build against openssl 3.0.0, which <br>
>>>> seems to be the case so far). Some will disagree, but I put it to <br>
>>>> you that it is going to be far less work in the end to force a few % <br>
>>>> of the ports to a specific alternate openssl than force all of them, <br>
>>>> all the time, forever.<br>
>>>><br>
>>>> Most things I have attempted to rebuild over the past few days have <br>
>>>> rebuilt without any issues, but a few things don’t build with <br>
>>>> openssl 3.0.0 yet and will need to stay with openssl 1.1.1 for a <br>
>>>> while until patched or updated (or forever). That will require both <br>
>>>> forcing those ports to find an alternate openssl installation, and <br>
>>>> also (the tricky part) forcing them to ignore the openssl in the <br>
>>>> default prefix.<br>
>>>><br>
>>>> To support this, there is a new openssl11 port that provides openssl <br>
>>>> 1.1.1 tucked away in a subdir, much like we have openssl10, and a <br>
>>>> few new options were added to the old_openssl PortGroup to allow <br>
>>>> most ports to be forced to the alternate openssl with minimal fuss. <br>
>>>> Add the PortGroup, spec the branch, and choose the method, for the <br>
>>>> most part.<br>
>>>><br>
>>>> If this plan holds, I would anticipate that we move ports that we <br>
>>>> find need to stay on openssl 1.1.1 to openssl11 using the <br>
>>>> old_openssl PortGroup soon or now, before we upgrade to openssl <br>
>>>> 3.0.0 to minimize fuss. Then once we have done that, upgrading the <br>
>>>> default openssl to 3.0.0 and revbumping the deps would occur.<br>
>>>><br>
>>>> So I am asking that anyone with an interest in a port that uses <br>
>>>> openssl please try building it against openssl 3.0.0 in the PR <br>
>>>> below, and if there is a problem that can’t be solved by an update <br>
>>>> or a patch, consider trying to use the old_openssl PortGroup to fix <br>
>>>> the build and move it over. As there are so many ports, it would <br>
>>>> help if people pitched in with the ones that are important to them.<br>
>>>><br>
>>>> The openssl 3.0.0 upgrade PR is here:<br>
>>>><br>
>>>> <a target="_blank" rel="noreferrer" href="https://github.com/macports/macports-ports/pull/12410">https://github.com/macports/macports-ports/pull/12410</a> <br>
>>>> <<a target="_blank" rel="noreferrer" href="https://github.com/macports/macports-ports/pull/12410">https://github.com/macports/macports-ports/pull/12410</a>><br>
>>>><br>
>>>> and my own WIP repo of a few ports that I have found won’t build <br>
>>>> with openssl 3.0.0 at present and fixed to use the old_openssl PG is <br>
>>>> here:<br>
>>>><br>
>>>> <a target="_blank" rel="noreferrer" href="https://github.com/kencu/mybigsuroverlay/">https://github.com/kencu/mybigsuroverlay/</a> <br>
>>>> <<a target="_blank" rel="noreferrer" href="https://github.com/kencu/mybigsuroverlay/">https://github.com/kencu/mybigsuroverlay/</a>><br>
>>>><br>
>>>> the idea is that the ports in that repo would be moved into the main <br>
>>>> repo as we work through the main ones that use openssl at least.<br>
>>>><br>
>>>><br>
>>>> K<br>
>>>><br>
>>>> PS. One thing I have not yet sorted out how to do is how to support <br>
>>>> libressl in the setting of needing to force a port to openssl 1.1.1 <br>
>>>> using the old_openssl PortGroup. Open to any thoughts on this. This <br>
>>>> case wsa basically just ignored last time with openssl10, and we may <br>
>>>> have to do the same again unless someone has a bright idea.<br>
>>>><br>
>>>><br>
>><br>
> <br>
</blockquote></div>