Bug 270357 - ftp/curl: Update to 8.0.1
Summary: ftp/curl: Update to 8.0.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Many People
Assignee: Port Management Team
URL: https://curl.se/changes.html#8_0_1
Keywords: security
: 270578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-20 09:13 UTC by Yasuhiro Kimura
Modified: 2023-04-18 21:32 UTC (History)
30 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)
yasu: merge-quarterly?
antoine: exp-run+


Attachments
Patch file (1.22 KB, patch)
2023-03-20 09:13 UTC, Yasuhiro Kimura
no flags Details | Diff
Updated patch file (1.22 KB, application/mbox)
2023-03-21 05:23 UTC, Yasuhiro Kimura
no flags Details
Updated patch file (1.22 KB, patch)
2023-03-21 05:25 UTC, Yasuhiro Kimura
no flags Details | Diff
net-mgmt/ettercap: Fix build with cURL 8.0 (360 bytes, patch)
2023-03-29 01:42 UTC, Jung-uk Kim
no flags Details | Diff
math/R: Fix build with cURL 8.0 (1.06 KB, patch)
2023-03-29 02:14 UTC, Jung-uk Kim
no flags Details | Diff
math/libRmath: patch for cURL 8 (1.05 KB, patch)
2023-03-29 19:01 UTC, Trond Endrestøl
no flags Details | Diff
math/libRmath: patch for cURL 8 (1.09 KB, patch)
2023-03-30 05:12 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2023-03-20 09:13:09 UTC
Created attachment 241002 [details]
Patch file

Update to 8.0.0.

ChangeLog:      https://curl.se/changes.html#8_0_0
MFH:            2023Q1
Security:       0d7d104c-c6fb-11ed-8a4b-080027f5fec9
Comment 1 Gordon Bergling freebsd_committer freebsd_triage 2023-03-20 09:35:25 UTC
It would be great if this could be handled with priority since there are at least 3 old CVEs present and today 4 new were published!
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2023-03-20 19:44:41 UTC
8.0.1 is out
https://curl.se/changes.html
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-03-21 05:23:26 UTC
Created attachment 241030 [details]
Updated patch file

Newer version 8.0.1 is released.
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-03-21 05:25:26 UTC
Created attachment 241031 [details]
Updated patch file

Oops, I updated wrong patch.
Comment 5 Cristiano Deana 2023-03-24 17:07:30 UTC
We have (again) to wait for "maintaner timeout" to update?
Comment 6 Gordon Bergling freebsd_committer freebsd_triage 2023-03-26 09:02:25 UTC
+1 for an immediate commit!
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-03-26 20:23:12 UTC
I've prepared this update but did not commit it.
Some ports assume that curl is version 7 and stop building if curl > 7.
I also got a notification from naddy@ about this potential breakage.
I guess we need an exp-run to find out such cases.
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2023-03-26 21:57:17 UTC
I have such a build running (thanks to bofh), it'll probably be done within a day and I'll report back on breakage.
Comment 9 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-03-27 14:40:31 UTC
Good to know that. Thanks.
Comment 10 Daniel Engberg freebsd_committer freebsd_triage 2023-03-27 20:05:48 UTC
net-mgmt/ettercap
[ 67% 188/279] /usr/bin/cc -Dsslstrip_EXPORTS -I/usr/local/include/gtk-3.0 -I/usr/local/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/atk-1.0 -I/wrkdirs/usr/ports/net-mgmt/ettercap/work/.build/include -I/wrkdirs/usr/ports/net-mgmt/ettercap/work/ettercap-0.8.3.1/include -I/usr/include/ncurses -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -w -D_FORTIFY_SOURCE=2 -fPIC -MD -MT plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o -MF plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o.d -o plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o -c /wrkdirs/usr/ports/net-mgmt/ettercap/work/ettercap-0.8.3.1/plug-ins/sslstrip/sslstrip.c
FAILED: plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o 
/usr/bin/cc -Dsslstrip_EXPORTS -I/usr/local/include/gtk-3.0 -I/usr/local/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/atk-1.0 -I/wrkdirs/usr/ports/net-mgmt/ettercap/work/.build/include -I/wrkdirs/usr/ports/net-mgmt/ettercap/work/ettercap-0.8.3.1/include -I/usr/include/ncurses -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -w -D_FORTIFY_SOURCE=2 -fPIC -MD -MT plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o -MF plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o.d -o plug-ins/CMakeFiles/sslstrip.dir/sslstrip/sslstrip.c.o -c /wrkdirs/usr/ports/net-mgmt/ettercap/work/ettercap-0.8.3.1/plug-ins/sslstrip/sslstrip.c
/wrkdirs/usr/ports/net-mgmt/ettercap/work/ettercap-0.8.3.1/plug-ins/sslstrip/sslstrip.c:57:2: error: libcurl 7.26.0 or up is needed
#error libcurl 7.26.0 or up is needed
 ^
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

I still have ~100 ports left to build due to circumstances but if someone would like to take a look at ettercap that would be great meanwhile.
Comment 11 Daniel Engberg freebsd_committer freebsd_triage 2023-03-28 06:34:19 UTC
math/R:
checking if libcurl is version 7 and >= 7.28.0... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https

There might be a few others left so fix these two and request a final one
Comment 12 Jung-uk Kim freebsd_committer freebsd_triage 2023-03-29 01:42:01 UTC
Created attachment 241171 [details]
net-mgmt/ettercap: Fix build with cURL 8.0

This patch fixed net-mgmt/ettercap for me.
Comment 13 Jung-uk Kim freebsd_committer freebsd_triage 2023-03-29 02:14:50 UTC
Created attachment 241172 [details]
math/R: Fix build with cURL 8.0

This patch fixed math/R build for me.
Comment 14 Joseph Mingrone freebsd_committer freebsd_triage 2023-03-29 13:15:08 UTC
The math/R change looks good, but but math/R already has a (very small) configure patch.  Could you either integrate your change into the existing patch or let me know that you want me to proceed (I have a local branch with a similar change to the one here).
Comment 15 Trond Endrestøl 2023-03-29 19:01:17 UTC
Created attachment 241189 [details]
math/libRmath: patch for cURL 8
Comment 16 Trond Endrestøl 2023-03-30 05:12:15 UTC
Created attachment 241200 [details]
math/libRmath: patch for cURL 8

Bring this patch more in line with the one for math/R.
Comment 17 mij@sshguard.net 2023-04-01 13:10:13 UTC
+1 for the priority -- large stack of vulnerabilities affecting 7.88.1 .

Only: why so many changes in this patch?

I could bump the port by only changing PORTVERSION to "8.0.1" (see my duplicate @ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270578 ).
Comment 18 Daniel Engberg freebsd_committer freebsd_triage 2023-04-02 18:33:24 UTC
*** Bug 270578 has been marked as a duplicate of this bug. ***
Comment 19 Daniel Engberg freebsd_committer freebsd_triage 2023-04-04 09:36:14 UTC
Hi Antoine,

Can you do an exp-run with the attached patches applied?

Best regards,
Daniel
Comment 20 Antoine Brodin freebsd_committer freebsd_triage 2023-04-05 12:46:14 UTC
Exp-run looks fine for ports that explicitely depend on ftp/curl
I don't know if it's worth testing ports that indirectly depend on it
Comment 21 Joseph Mingrone freebsd_committer freebsd_triage 2023-04-05 18:03:19 UTC
curl was just updated in 0799d457b1becdc3c05f1b0070c31389100fd2c2 (with no mention of this PR).  Shall we close?
Comment 22 Cybermonk 2023-04-05 21:34:16 UTC
I'm new (too FreeBSD using bugzilla) so please go gentle. I'm confused.
This issue took a lot of posts (and a lot of work). 

Surely upgrading Curl should have been a simple case. If other packages got broke as a result of the 7->8 increase then those package should have had their own issues raised and therefore dealt with. With these CVE's out there and with so many could this not have been done quicker?

Personally I think even doing exp-runs went as far beyond duty as it should have. Actually going to the trouble of creating patches for other packages, while nice and helpful, was going a bit far. Or rather I mean holding Curl-8.0.1 back till those were complete and tested, was going a bit far.

If there is a bona fide reason, educate me. 

curl CVE's have been fast a furious recently and the biggest reason for doing port upgrades. To have systems monitoring alerting daily for months and unable to get them updated to the point of securely patched, it just seems a lot of these posts could (or should) have been offloaded to the other packages.

No?
Comment 23 Daniel Engberg freebsd_committer freebsd_triage 2023-04-05 22:20:47 UTC
Guidelines in Porters Handbook are respected and covers most common scenarios, see https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-maintainer for more information.

You preferably don't blindly update a library that a large number of ports depends on because no one likes breakage at the end of the day. While one library doesn't sound that bad initially keep in mind that we have a lot more than just one in our tree and imagine if we used this approach this for all... 

If you want to have further discussion about this topic I'd suggest that you use the FreeBSD ports mailinglist.

Best regards,
Daniel
Comment 24 ml 2023-04-06 06:06:49 UTC
(In reply to Joseph Mingrone from comment #21)

> Shall we close?

I guess this should be MFH... 2023Q2 has been tagged last week and I don't think it could stay vulnerable for three months...
I'm building my ports with this cherry-picked, but that's by no means a complete exp-run.
Comment 25 Alex 2023-04-08 12:12:31 UTC
like @ml said, any chance to push this to 2023Q2 considering the CVEs? 

Thanks very much!
Comment 26 Michael Osipov 2023-04-12 07:06:02 UTC
(In reply to Alex from comment #25)

I second this!
Comment 27 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-04-18 21:25:48 UTC
In fact, that's an accident to commit curl 8.0.1. As I said before, I've prepared the update already. But I forgot to remove it from my script.

Anyway, I've merged the update and 3 fixes (R, libRmath and ettercap) to 2023Q2 branch.

Thank you all.