From nobody Fri Mar 29 09:50:51 2024 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id B5AF3222DDA for <~alpine/devel@lists.alpinelinux.org>; Fri, 13 Jan 2023 17:01:37 +0000 (UTC) Received: by mail-qv1-xf2a.google.com with SMTP id i12so15186723qvs.2 for <~alpine/devel@lists.alpinelinux.org>; Fri, 13 Jan 2023 09:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accedian.com; s=corp1; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZMEMs9jLwt0NC7CLWNToHPHnB6Raywym6LmzcEC1/WY=; b=E4zdP1UAH39a2lxrUErWk5SDBIxl87wjTZHxynvOm65meGU3WIpbOwxppCV79HAqjP CoReEarKeaN5NRSij3JdbXR8Op15+4P7Nv1ITPbzpEGo/eb/2M0aIREzH2/bFdjj9kEp Kz+nuZBAILXbf7Y0qyaxGtveAxYCD6I28wEEVhsnQ9YTG2OtQGslxpaWE8sbcFUi67UW KvtMQV9TyynOlqN7rXTQJqHffkXCrdvtI+NI86aGS6Lk+VDgMJzPwwuCVUQiC97q+6in kT4terarj+so7xGflf7EH4AYLRGIj1W8BzDPNg4QFuBMACQs0fnCYr+CG6DgDoSZyoCQ feHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZMEMs9jLwt0NC7CLWNToHPHnB6Raywym6LmzcEC1/WY=; b=XFKHPgGsgqhfQGl1DNB+YhB5hdXRvFzkAlEYF1wUjIQqLLf5+5P5Q7OAmdioHnY8K3 DTvNYhcUWlRR21DSfFSDv2IYG7frh428gF+PoHDnDHnedT1tNH1ckBMQ1O9sAieYL85Z 6BbYoOQ1XIj7e1Zbs/luAqLDVfH14umWa300IkjuRUSgBopGXfeFjmbDvCUIusweqnmm MuNmlrxsNpVrhWt4KgTAVxeS0iiq9LBPRy45WpwqR7fFM3YaUSMl1Rn94Jz7RTsvaku1 7U+0mJv0FC7hmIHpSLibdFYsHrnLNvkLzFBTe2WB7AuAVlWkbic3inpk7Dfdu2gD+eZb e7PQ== X-Gm-Message-State: AFqh2krYI4JPU7a4HkCRK9APrj/1vRnkpS7VhMUyv00iAwONapolrxy4 ReviPMvZw/maZAG+EpUxAsRxunoYD4K3X9FEHJXKneTB618PF9dORM66lMpLOZyIh0qgat3LylL jAoT3jau6lz/3CZBsZDD6XHZOUyxkB19CnS5TeBNRugykX9eVog== X-Google-Smtp-Source: AMrXdXvKzyIb8GtZXOltromi+BHnKB2kB1J3pA46p7duYJskzIWI4oYX+LoDs/0GurmZPQ4DBQMqBFiGPK11fAnv8ME= X-Received: by 2002:ad4:58b4:0:b0:532:20e4:76e5 with SMTP id ea20-20020ad458b4000000b0053220e476e5mr1961836qvb.86.1673629294342; Fri, 13 Jan 2023 09:01:34 -0800 (PST) MIME-Version: 1.0 From: Frederick Lafleche Date: Fri, 13 Jan 2023 12:01:12 -0500 Message-ID: Subject: Curl Feature Regression in Alpine 3.16+ To: ~alpine/devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I just noticed that since Alpine release 3.16.x the curl option --dns-server does not work anymore. The following error message is displayed: curl: option --dns-server: the installed libcurl version doesn't support this After some investigation I found that Curl (7.83.x) changed how the build manages c-ares. configure: remove support for "embedded ares" #8397 https://github.com/curl/curl/pull/8397) Based on the commit comment the option --enable-ares must now be explicitly given. I'm now wondering how to proceed. Is this something that can be changed in Alpine? Should a defect be opened? Submit a patch? What would be the preferred method? Thank you in advance, Fred --=20 Avis de confidentialit=C3=A9 Les informations contenues dans le pr=C3=A9sent=20 message et dans toute pi=C3=A8ce qui=20 lui est jointe sont confidentielles et=20 peuvent =C3=AAtre prot=C3=A9g=C3=A9es par le=20 secret professionnel. Ces informations sont=20 =C3=A0 l=E2=80=99usage exclusif de son ou de ses destinataires. Si vous recevez ce=20 message par erreur, veuillez=20 s=E2=80=99il vous plait communiquer imm=C3=A9diatement=20 avec l=E2=80=99exp=C3=A9diteur et en=20 d=C3=A9truire tout exemplaire. De plus, il vous est=20 strictement interdit de=20 le divulguer, de le distribuer ou de le reproduire=20 sans l=E2=80=99autorisation=20 de l=E2=80=99exp=C3=A9diteur. Merci. Confidentiality notice This e-mail message and any attachment hereto contain confidential=20 information=20 which may be privileged and which is intended for the=20 exclusive use of its=20 addressee(s). If you receive this message in error, please inform sender=20 immediately and destroy any copy thereof.=20 Furthermore, any disclosure,=20 distribution or copying of this message=20 and/or any attachment hereto=20 without the consent of the sender is=20 strictly prohibited. Thank you. From nobody Fri Mar 29 09:50:51 2024 Received: from theta.ikke.info (theta.ikke.info [178.21.117.236]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 897092236D1 for <~alpine/devel@lists.alpinelinux.org>; Fri, 13 Jan 2023 20:34:52 +0000 (UTC) Received: from bbea3f19b1bb (mutt_mutt_run_145a96208cdf.postfix_default [192.168.80.4]) by theta.ikke.info (Postfix) with ESMTPS id D937814081B; Fri, 13 Jan 2023 20:32:28 +0000 (UTC) Date: Fri, 13 Jan 2023 20:32:28 +0000 From: Kevin Daudt To: Frederick Lafleche Cc: ~alpine/devel@lists.alpinelinux.org Subject: Re: Curl Feature Regression in Alpine 3.16+ Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jan 13, 2023 at 12:01:12PM -0500, Frederick Lafleche wrote: > Hi, > > I just noticed that since Alpine release 3.16.x the curl option > --dns-server does not work anymore. The following error message is > displayed: > > curl: option --dns-server: the installed libcurl version > doesn't support this > > After some investigation I found that Curl (7.83.x) changed how the > build manages c-ares. > > configure: remove support for "embedded ares" #8397 > https://github.com/curl/curl/pull/8397) > > Based on the commit comment the option --enable-ares must now be > explicitly given. > > I'm now wondering how to proceed. Is this something that can be > changed in Alpine? Should a defect be opened? Submit a patch? What > would be the preferred method? > > Thank you in advance, > > Fred If I look at the buildlogs for curl on 3.15[0] or 3.14[1], I see: > checking whether to enable c-ares for DNS lookups... no so c-ares was not enabled then either. The pull request that you refer to mentions: > In March 2010 (commit 4259d2d) we removed the embedded 'ares' > directory from the curl source tree So c-ares was already not embedded for a long time, and hence, could not have been used. The history of the curl package also does not show c-ares was ever pulled in as a dependency. So my conclusion is that whatever has changed since 3.16, it's not the lack of c-ares that causes the issue. Comparing the configure output of those buildlogs, I do not see any obvious differences which could explain why it's no longer supported. This issue[2] mentions: > The option --dns-servers only works if libcurl was built to use c-ares > and it seems your build does not. Previously curl would just silently > ignore that problem, but it still wouldn't (couldn't) use the option. So apparently, it would have never worked, curl just didn't complain about it. Kevin [0]:https://build.alpinelinux.org/buildlogs/build-3-15-x86_64/main/curl/curl-7.80.0-r5.log [1]:https://build.alpinelinux.org/buildlogs/build-3-14-x86_64/main/curl/curl-7.79.1-r4.log [2]:https://github.com/curl/curl/issues/8551#issuecomment-1060280243