curl.git
16 months agoMerge version 8.5.0-2+rpi1 and 8.8.0-4 to produce 8.8.0-4+rpi1 archive/raspbian/8.8.0-4+rpi1 raspbian/8.8.0-4+rpi1
Raspbian automatic forward porter [Sat, 27 Jul 2024 03:13:28 +0000 (04:13 +0100)]
Merge version 8.5.0-2+rpi1 and 8.8.0-4 to produce 8.8.0-4+rpi1

17 months agoMerge curl (8.8.0-4) import into refs/heads/workingbranch
Samuel Henrique [Wed, 10 Jul 2024 21:36:04 +0000 (22:36 +0100)]
Merge curl (8.8.0-4) import into refs/heads/workingbranch

17 months agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

17 months ago[PATCH] x509asn1: fallback to dotted OID representation
Bo Anderson [Sun, 2 Jun 2024 13:18:20 +0000 (14:18 +0100)]
[PATCH] x509asn1: fallback to dotted OID representation

Reported-by: Luke Hamburg
Fixes #13845
Closes #13858

Origin: upstream, https://github.com/curl/curl/commit/9aa1d412b814a40868558da51a6ab28ce1384a58
Bug: https://github.com/curl/curl/issues/13845
Bug-Debian: https://bugs.debian.org/1075796
Last-Update: 2024-07-05

Gbp-Pq: Name fix-x509asn1-fallback-to-dotted-OID-representation.patch

17 months ago[PATCH] docs/Makefile.am: make curl-config.1 install
Daniel Stenberg [Wed, 22 May 2024 06:43:43 +0000 (08:43 +0200)]
[PATCH] docs/Makefile.am: make curl-config.1 install

on "make install" like it should

Follow-up to 60971d665b9b1df87082

Closes #13741

Gbp-Pq: Name docs_makefile_am_make_curl_config_1_install.patch

17 months agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

17 months agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Wed, 27 Mar 2024 18:10:56 +0000 (18:10 +0000)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: https://bugs.debian.org/731998
Bug-Debian: https://bugs.debian.org/1075802
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2024-07-05

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

17 months agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

17 months agocurl (8.8.0-4) unstable; urgency=medium
Samuel Henrique [Wed, 10 Jul 2024 21:36:04 +0000 (22:36 +0100)]
curl (8.8.0-4) unstable; urgency=medium

  [ Adrian Bunk ]
  * Revert "Temporarily disable build-time tests on 32-bit non-x86"
  * Don't use python3-impacket on non-Rust architectures that lack
    python-cryptography

  [ Lev Lazinskiy ]
  * Use SALSA_CI_DPKG_BUILDPACKAGE_ARGS in pipeline

  [ Samuel Henrique ]
  * Update wcurl to 2024.07.10

[dgit import unpatched curl 8.8.0-4]

17 months agoImport curl_8.8.0-4.debian.tar.xz
Samuel Henrique [Wed, 10 Jul 2024 21:36:04 +0000 (22:36 +0100)]
Import curl_8.8.0-4.debian.tar.xz

[dgit import tarball curl 8.8.0-4 curl_8.8.0-4.debian.tar.xz]

18 months agoMerge curl (8.8.0-1) import into refs/heads/workingbranch
Samuel Henrique [Wed, 22 May 2024 21:22:28 +0000 (22:22 +0100)]
Merge curl (8.8.0-1) import into refs/heads/workingbranch

18 months agoImport curl_8.8.0.orig.tar.gz
Samuel Henrique [Wed, 22 May 2024 21:22:28 +0000 (22:22 +0100)]
Import curl_8.8.0.orig.tar.gz

[dgit import orig curl_8.8.0.orig.tar.gz]

18 months agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

18 months ago[PATCH] docs/Makefile.am: make curl-config.1 install
Daniel Stenberg [Wed, 22 May 2024 06:43:43 +0000 (08:43 +0200)]
[PATCH] docs/Makefile.am: make curl-config.1 install

on "make install" like it should

Follow-up to 60971d665b9b1df87082

Closes #13741

Gbp-Pq: Name docs_makefile_am_make_curl_config_1_install.patch

18 months agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

18 months agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Wed, 27 Mar 2024 18:10:56 +0000 (18:10 +0000)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

18 months agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

18 months agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Wed, 27 Mar 2024 18:10:56 +0000 (18:10 +0000)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

18 months agocurl (8.8.0-1) unstable; urgency=medium
Samuel Henrique [Wed, 22 May 2024 21:22:28 +0000 (22:22 +0100)]
curl (8.8.0-1) unstable; urgency=medium

  * New upstream version 8.8.0
  * Refresh patches
  * Revert "Temporarily disable LDAP support on 32-bit non-x86"
  * d/patches: Drop merged patches
  * d/p/docs_makefile...: Upstream patch to fix curl-config regression
  * d/libcurl*.symbols: Add new symbol curl_multi_waitfds

[dgit import unpatched curl 8.8.0-1]

18 months agoImport curl_8.8.0-1.debian.tar.xz
Samuel Henrique [Wed, 22 May 2024 21:22:28 +0000 (22:22 +0100)]
Import curl_8.8.0-1.debian.tar.xz

[dgit import tarball curl 8.8.0-1 curl_8.8.0-1.debian.tar.xz]

19 months agoMerge curl (8.7.1-5) import into refs/heads/workingbranch
Samuel Henrique [Mon, 29 Apr 2024 17:28:54 +0000 (18:28 +0100)]
Merge curl (8.7.1-5) import into refs/heads/workingbranch

19 months agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

19 months ago[PATCH] content_encoding: brotli and others, pass through 0-length writes
Stefan Eissing [Thu, 28 Mar 2024 10:08:15 +0000 (11:08 +0100)]
[PATCH] content_encoding: brotli and others, pass through 0-length writes

- curl's transfer handling may write 0-length chunks at the end of the
  download with an EOS flag. (HTTP/2 does this commonly)

- content encoders need to pass-through such a write and not count this
  as error in case they are finished decoding

Fixes #13209
Fixes #13212
Closes #13219

Gbp-Pq: Name content_encoding_brotli_and_others_pass_through_0_length_writes.patch

19 months agohttp2 + ngtcp2: pass CURLcode errors from callbacks
Stefan Eissing [Mon, 29 Apr 2024 17:28:54 +0000 (18:28 +0100)]
http2 + ngtcp2: pass CURLcode errors from callbacks

Origin: https://github.com/curl/curl/issues/13474#issuecomment-2078933887

Gbp-Pq: Name curl-8_7_1-h2-ngtcp2-write-error-handling.diff

19 months ago[PATCH] CURLINFO_REQUEST_SIZE: fixed, add tests for transfer infos reported
Stefan Eissing [Thu, 4 Apr 2024 09:06:06 +0000 (11:06 +0200)]
[PATCH] CURLINFO_REQUEST_SIZE: fixed, add tests for transfer infos reported

- tests for 'size_request' and other stats reported, for
  presence and consistency

Reported-by: Jonatan Vela
Fixes #13269
Closes #13275

Origin: upstream, https://github.com/curl/curl/commit/8482ce53ddfd9daab46261e0f00a0032403ba917
Last-Update: 2024-04-19

Gbp-Pq: Name fix-regression-in-curlinfo.patch

19 months ago[PATCH] test1901: verify chunked POST from callback with CURLOPT_POSTFIELDSIZE set
Daniel Stenberg [Tue, 2 Apr 2024 13:27:54 +0000 (15:27 +0200)]
[PATCH] test1901: verify chunked POST from callback with CURLOPT_POSTFIELDSIZE set

Follow-up to 721941aadf4ad

Ref: #13257
Closes #13262

Gbp-Pq: Name test1901_verify_chunked_POST_from_callback_with_CURLOPT_POSTFIELDSIZ.patch

19 months agohttp: with chunked POST forced, disable length check on read callback
Stefan Eissing [Mon, 1 Apr 2024 13:41:18 +0000 (15:41 +0200)]
http: with chunked POST forced, disable length check on read callback

- when an application forces HTTP/1.1 chunked transfer encoding
  by setting the corresponding header and instructs curl to use
  the CURLOPT_READFUNCTION, disregard any POST length information.
- this establishes backward compatibility with previous curl versions

Applications are encouraged to not force "chunked", but rather
set length information for a POST. By setting -1, curl will
auto-select chunked on HTTP/1.1 and work properly on other HTTP
versions.

Reported-by: Jeff King
Origin: upstream, https://github.com/curl/curl/commit/721941aadf4adf4f6aeb3f4c0ab489bb89610c36
Last-Update: 2024-04-02

Gbp-Pq: Name fix-regression-on-chunked-post.patch

19 months agocd2nroff/manage: use UTC when SOURCE_DATE_EPOCH is set
Daniel Stenberg [Sat, 30 Mar 2024 23:59:55 +0000 (00:59 +0100)]
cd2nroff/manage: use UTC when SOURCE_DATE_EPOCH is set

Make them independent of the TZ setting. Also set a date string like
YYYY-MM-DD to avoid a local month name in the date.

Reported-by: Carlos Henrique Lima Melara
Fixes #13242
Closes #13243

Origin: upstream, https://github.com/curl/curl/commit/afdd1129166938a4ba952aa1a9503adf0ec1a7a3
Last-Update: 2024-03-31

Gbp-Pq: Name make-manpages-reproducible.patch

19 months agoopenldap: create ldap URLs correctly for IPv6 addresses
Daniel Stenberg [Sat, 30 Mar 2024 10:14:54 +0000 (11:14 +0100)]
openldap: create ldap URLs correctly for IPv6 addresses

Reported-by: Sergio Durigan Junior
Fixes #13228
Closes #13235

More context:

When the user specified an IPv6 address to be used as an LDAP server,
curl will fail to properly enclose it in square brackets, which causes
the connection to fail because the host address cannot be
distinguished from the port:

$ curl -v ldap://[fd42:be5:e632:a6b3:216:3eff:feb1:5bc4]:389
...
* LDAP local: Cannot connect to ldap://fd42:be5:e632:a6b3:216:3eff:feb1:5bc4:389, Bad parameter to an ldap routine
...

Fix this by always enclosing the IPv6 address in square brackets.

Origin: upstream, https://github.com/curl/curl/commit/56935a7dada6975d5a46aa494de0af195e4e8659
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053643

Gbp-Pq: Name openldap-create-ldap-URLs-correctly-for-IPv6-addresses.patch

19 months agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

19 months agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Wed, 27 Mar 2024 18:10:56 +0000 (18:10 +0000)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

19 months agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

19 months agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Wed, 27 Mar 2024 18:10:56 +0000 (18:10 +0000)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

19 months agocurl (8.7.1-5) unstable; urgency=high
Samuel Henrique [Mon, 29 Apr 2024 17:28:54 +0000 (18:28 +0100)]
curl (8.7.1-5) unstable; urgency=high

  * d/p/content_encoding_brotli_and_others...patch: New patch to fix an
    encoding regression. Thank you to Jeroen Ooms and the curl developers
    (Daniel Stenberg and Stefan Eissing) for reporting and pointing out the
    fix.

[dgit import unpatched curl 8.7.1-5]

19 months agoImport curl_8.7.1-5.debian.tar.xz
Samuel Henrique [Mon, 29 Apr 2024 17:28:54 +0000 (18:28 +0100)]
Import curl_8.7.1-5.debian.tar.xz

[dgit import tarball curl 8.7.1-5 curl_8.7.1-5.debian.tar.xz]

20 months agoImport curl_8.7.1.orig.tar.gz
Samuel Henrique [Wed, 27 Mar 2024 19:02:14 +0000 (19:02 +0000)]
Import curl_8.7.1.orig.tar.gz

[dgit import orig curl_8.7.1.orig.tar.gz]

21 months agoMerge curl (8.6.0-3) import into refs/heads/workingbranch
Samuel Henrique [Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)]
Merge curl (8.6.0-3) import into refs/heads/workingbranch

21 months agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

21 months ago[PATCH] vtls: revert "receive max buffer" + add test case
Stefan Eissing [Thu, 1 Feb 2024 17:15:50 +0000 (18:15 +0100)]
[PATCH] vtls: revert "receive max buffer" + add test case

- add test_05_04 for requests using http/1.0, http/1.1 and h2 against an
  Apache resource that does an unclean TLS shutdown.
- revert special workarund in openssl.c for suppressing shutdown errors
  on multiplexed connections
- vlts.c restore to its state before 9a90c9dd64d2f03601833a70786d485851bd1b53

Fixes #12885
Fixes #12844

Closes #12848

Backported by Samuel Henrique <samueloph@debian.org>
  * Removed changes to files under tests/http/ which we don't have in our
    tarball.

Gbp-Pq: Name vtls_revert_receive_max_buffer_add_test_case.patch

21 months ago[PATCH] sendf: ignore response body to HEAD
Daniel Stenberg [Thu, 1 Feb 2024 12:23:12 +0000 (13:23 +0100)]
[PATCH] sendf: ignore response body to HEAD

and mark the stream for close, but return OK since the response this far
was ok - if headers were received. Partly because this is what curl has
done traditionally.

Test 499 verifies. Updates test 689.

Reported-by: Sergey Bronnikov
Bug: https://curl.se/mail/lib-2024-02/0000.html
Closes #12842

Gbp-Pq: Name sendf_ignore_response_body_to_head.patch

21 months agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

21 months agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

21 months agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

21 months agoEnable zsh completion generation
Alessandro Ghedini [Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)]
Enable zsh completion generation

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 08_enable-zsh.patch

21 months agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

21 months agocurl (8.6.0-3) unstable; urgency=medium
Samuel Henrique [Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)]
curl (8.6.0-3) unstable; urgency=medium

  * d/p/vtls_revert_receive_max_buffer_add_test_case.patch: New patch to fix
    tls regression (closes: #1063462)

[dgit import unpatched curl 8.6.0-3]

21 months agoImport curl_8.6.0-3.debian.tar.xz
Samuel Henrique [Mon, 19 Feb 2024 22:16:17 +0000 (22:16 +0000)]
Import curl_8.6.0-3.debian.tar.xz

[dgit import tarball curl 8.6.0-3 curl_8.6.0-3.debian.tar.xz]

22 months agoMerge curl (8.6.0-2) import into refs/heads/workingbranch
Samuel Henrique [Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)]
Merge curl (8.6.0-2) import into refs/heads/workingbranch

22 months agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

22 months ago[PATCH] sendf: ignore response body to HEAD
Daniel Stenberg [Thu, 1 Feb 2024 12:23:12 +0000 (13:23 +0100)]
[PATCH] sendf: ignore response body to HEAD

and mark the stream for close, but return OK since the response this far
was ok - if headers were received. Partly because this is what curl has
done traditionally.

Test 499 verifies. Updates test 689.

Reported-by: Sergey Bronnikov
Bug: https://curl.se/mail/lib-2024-02/0000.html
Closes #12842

Gbp-Pq: Name sendf_ignore_response_body_to_head.patch

22 months agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

22 months agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

22 months agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

22 months agoEnable zsh completion generation
Alessandro Ghedini [Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)]
Enable zsh completion generation

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 08_enable-zsh.patch

22 months agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

22 months agocurl (8.6.0-2) unstable; urgency=medium
Samuel Henrique [Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)]
curl (8.6.0-2) unstable; urgency=medium

  * d/p/sendf_ignore_response_body_to_head.patch: New upstream patch to fix a
    compat issue (closes: #1063342)
  * d/control: Switch from pkg-config to pkgconf

[dgit import unpatched curl 8.6.0-2]

22 months agoImport curl_8.6.0-2.debian.tar.xz
Samuel Henrique [Tue, 6 Feb 2024 20:52:46 +0000 (20:52 +0000)]
Import curl_8.6.0-2.debian.tar.xz

[dgit import tarball curl 8.6.0-2 curl_8.6.0-2.debian.tar.xz]

22 months agoImport curl_8.6.0.orig.tar.gz
Samuel Henrique [Wed, 31 Jan 2024 21:51:05 +0000 (21:51 +0000)]
Import curl_8.6.0.orig.tar.gz

[dgit import orig curl_8.6.0.orig.tar.gz]

23 months agoMerge version 8.4.0-2+rpi1 and 8.5.0-2 to produce 8.5.0-2+rpi1 archive/raspbian/8.5.0-2+rpi1 raspbian/8.5.0-2+rpi1
Raspbian automatic forward porter [Mon, 8 Jan 2024 13:14:32 +0000 (13:14 +0000)]
Merge version 8.4.0-2+rpi1 and 8.5.0-2 to produce 8.5.0-2+rpi1

23 months agoMerge curl (8.5.0-2) import into refs/heads/workingbranch
Samuel Henrique [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
Merge curl (8.5.0-2) import into refs/heads/workingbranch

23 months agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

23 months agoAdd upstream file that missed the tarball for 8.5.0
Samuel Henrique [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
Add upstream file that missed the tarball for 8.5.0

Forwarded: not-needed

More context at https://github.com/curl/curl/issues/12462#issuecomment-1843569943

Gbp-Pq: Name add_errorcodes_upstream_file.patch

23 months ago[PATCH] openldap: fix an LDAP crash
Patrick Monnerat [Wed, 27 Dec 2023 10:19:17 +0000 (11:19 +0100)]
[PATCH] openldap: fix an LDAP crash

Reported-by: Ozan Cansel
Fixes #12593
Closes #12600

Gbp-Pq: Name openldap_fix_an_LDAP_crash.patch

23 months ago[PATCH] dist: add tests/errorcodes.pl to the tarball
Daniel Stenberg [Wed, 6 Dec 2023 08:40:30 +0000 (09:40 +0100)]
[PATCH] dist: add tests/errorcodes.pl to the tarball

Used by test 1477

Reported-by: Xi Ruoyao
Follow-up to 0ca3a4ec9a7
Fixes #12462
Closes #12463

Gbp-Pq: Name dist_add_tests_errorcodes_pl_to_the_tarball.patch

23 months agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

23 months agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

23 months agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

23 months agoEnable zsh completion generation
Alessandro Ghedini [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
Enable zsh completion generation

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 08_enable-zsh.patch

23 months agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

23 months agocurl (8.5.0-2) unstable; urgency=medium
Samuel Henrique [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
curl (8.5.0-2) unstable; urgency=medium

  * d/p/openldap_fix_an_LDAP_crash.patch: New patch to fix ldap segfault
    (closes: #1057855)

[dgit import unpatched curl 8.5.0-2]

23 months agoImport curl_8.5.0-2.debian.tar.xz
Samuel Henrique [Fri, 29 Dec 2023 18:34:11 +0000 (15:34 -0300)]
Import curl_8.5.0-2.debian.tar.xz

[dgit import tarball curl 8.5.0-2 curl_8.5.0-2.debian.tar.xz]

2 years agoImport curl_8.5.0.orig.tar.gz
Samuel Henrique [Wed, 6 Dec 2023 20:15:49 +0000 (20:15 +0000)]
Import curl_8.5.0.orig.tar.gz

[dgit import orig curl_8.5.0.orig.tar.gz]

2 years agoMerge version 7.88.1-10+rpi1 and 8.4.0-2 to produce 8.4.0-2+rpi1 archive/raspbian/8.4.0-2+rpi1 raspbian/8.4.0-2+rpi1
Raspbian automatic forward porter [Sun, 22 Oct 2023 10:28:20 +0000 (11:28 +0100)]
Merge version 7.88.1-10+rpi1 and 8.4.0-2 to produce 8.4.0-2+rpi1

2 years agoMerge curl (8.4.0-2) import into refs/heads/workingbranch
Samuel Henrique [Sat, 14 Oct 2023 11:19:21 +0000 (12:19 +0100)]
Merge curl (8.4.0-2) import into refs/heads/workingbranch

2 years agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

2 years agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

2 years agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Sat, 14 Oct 2023 11:19:21 +0000 (12:19 +0100)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

2 years agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

2 years agoEnable zsh completion generation
Alessandro Ghedini [Sat, 14 Oct 2023 11:19:21 +0000 (12:19 +0100)]
Enable zsh completion generation

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 08_enable-zsh.patch

2 years agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Sat, 14 Oct 2023 11:19:21 +0000 (12:19 +0100)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

2 years agocurl (8.4.0-2) unstable; urgency=medium
Samuel Henrique [Sat, 14 Oct 2023 11:19:21 +0000 (12:19 +0100)]
curl (8.4.0-2) unstable; urgency=medium

  * d/rules: set CURL_PATCHSTAMP to package's version, so it shows up in
    "--version" output

[dgit import unpatched curl 8.4.0-2]

2 years agoImport curl_8.4.0-2.debian.tar.xz
Samuel Henrique [Sat, 14 Oct 2023 11:19:21 +0000 (12:19 +0100)]
Import curl_8.4.0-2.debian.tar.xz

[dgit import tarball curl 8.4.0-2 curl_8.4.0-2.debian.tar.xz]

2 years agoImport curl_8.4.0.orig.tar.gz
Samuel Henrique [Thu, 12 Oct 2023 23:53:16 +0000 (00:53 +0100)]
Import curl_8.4.0.orig.tar.gz

[dgit import orig curl_8.4.0.orig.tar.gz]

2 years agoMerge curl (8.3.0-3) import into refs/heads/workingbranch
Samuel Henrique [Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)]
Merge curl (8.3.0-3) import into refs/heads/workingbranch

2 years agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

2 years ago[PATCH] cookie: remove unnecessary struct fields
Daniel Stenberg [Thu, 14 Sep 2023 21:28:32 +0000 (23:28 +0200)]
[PATCH] cookie: remove unnecessary struct fields

Plus: reduce the hash table size from 256 to 63. It seems unlikely to
make much of a speed difference for most use cases but saves 1.5KB of
data per instance.

Closes #11862

Gbp-Pq: Name CVE-2023-38546.patch

2 years ago[PATCH] socks: return error if hostname too long for remote resolve
Jay Satiro [Sat, 30 Sep 2023 07:40:02 +0000 (03:40 -0400)]
[PATCH] socks: return error if hostname too long for remote resolve

Prior to this change the state machine attempted to change the remote
resolve to a local resolve if the hostname was too long. Unfortunately
that did not always work as intended, leading to a security issue. And
when it did it's a privacy violation for users of socks5h that may
expect their DNS requests will not leak.

Bug: https://curl.se/docs/CVE-2023-38545.html

Backported by: Samuel Henrique <samueloph@debian.org>

Gbp-Pq: Name CVE-2023-38545.patch

2 years ago[PATCH] lib: use wrapper for curl_mime_data fseek callback
Natanael Copa [Fri, 22 Sep 2023 13:58:49 +0000 (13:58 +0000)]
[PATCH] lib: use wrapper for curl_mime_data fseek callback

fseek uses long offset which does not match with curl_off_t. This leads
to undefined behavior when calling the callback and caused failure on
arm 32 bit.

Use a wrapper to solve this and use fseeko which uses off_t instead of
long.

Thanks to the nice people at Libera IRC #musl for helping finding this
out.

Fixes #11882
Fixes #11900
Closes #11918

Gbp-Pq: Name lib_use_wrapper_for_curl_mime_data_fseek_callback.patch

2 years ago[PATCH] tests: increase the default server logs lock timeout
Dan Fandrich [Wed, 13 Sep 2023 07:07:25 +0000 (00:07 -0700)]
[PATCH] tests: increase the default server logs lock timeout

This timeout is used to wait for the server to finish writing its logs
before checking them against the expected values. An overloaded machine
could take more than the two seconds previously allocated, so increase
the timeout to 5 seconds.

Ref: #11328
Closes #11834

Gbp-Pq: Name tests_increase_the_default_server_logs_lock_timeout.patch

2 years ago[PATCH] test650: fix an end tag typo
Dan Fandrich [Wed, 6 Sep 2023 18:07:58 +0000 (11:07 -0700)]
[PATCH] test650: fix an end tag typo

Gbp-Pq: Name test650_fix_an_end_tag_typo.patch

2 years agoRemove curl's LDFLAGS from curl-config --static-libs
Simon McVittie [Tue, 22 Nov 2022 21:20:51 +0000 (21:20 +0000)]
Remove curl's LDFLAGS from curl-config --static-libs

On current Debian bookworm, the LDFLAGS consist of
-L/usr/lib/${triplet}/mit-krb5 originating from
`pkg-config --libs-only-L mit-krb5-gssapi` from krb5-multidev, plus
some linker options that are intended for curl itself rather than for
dependent packages. None of these are really desirable, and they create
divergence between architectures that would prevent libcurl-*-dev from
being Multi-Arch: same.

The -L flag is not really needed, for the same reason that -L@libdir@
isn't. curl Build-Depends on libkrb5-dev, which doesn't need a special
-L flag to find libgssapi_krb5, and the various libcurl-*-dev packages
have Suggests on libkrb5-dev rather than on krb5-multidev for static
linking.

The other options (currently `-Wl,-z-relro -Wl,-z,now`) are intended
for libcurl itself, and if dependent packages want those options then
they should set them from their own packaging.

Bug-Debian: https://bugs.debian.org/1024668
Forwarded: not-needed
Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch

2 years agoIn order to (partially) multi-arch-ify curl-config, remove all
Benjamin Moody [Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)]
In order to (partially) multi-arch-ify curl-config, remove all

Origin: vendor
Bug-Debian: http://bugs.debian.org/731998
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2017-01-10

mention of @includedir@ and @libdir@ from the script.  On Debian, the actual
header and library directories are architecture-dependent, but will always be
in the C compiler's default search path, so -I and -L options are not
necessary (and may be harmful in multi-arch environments.)

Gbp-Pq: Name 11_omit-directories-from-config.patch

2 years agobuild: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS
Simon McVittie [Tue, 22 Nov 2022 20:43:41 +0000 (20:43 +0000)]
build: Divide mit-krb5-gssapi link flags between LDFLAGS and LIBS

From the comments nearby about not having --libs-only-L, it looks as
though the intention was to apply a split like this to all dependency
libraries where possible, and the only reason it was not done for
Kerberos is that krb5-config doesn't have that feature and pkg-config
was originally not supported here. For example, zlib, libssh and librtmp
all have their flags from pkg-config split in this way.

Now that pkg-config is supported here, we can do the intended split.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Gbp-Pq: Name build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch

2 years agoEnable zsh completion generation
Alessandro Ghedini [Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)]
Enable zsh completion generation

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 08_enable-zsh.patch

2 years agoWork around libtool --as-needed reordering bug
Alessandro Ghedini [Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)]
Work around libtool --as-needed reordering bug

Origin: vendor
Bug-Debian: http://bugs.debian.org/347650
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2016-08-03

Gbp-Pq: Name 04_workaround_as_needed_bug.patch

2 years agocurl (8.3.0-3) unstable; urgency=high
Samuel Henrique [Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)]
curl (8.3.0-3) unstable; urgency=high

  * Add patches to fix CVE-2023-38545 and CVE-2023-38546

[dgit import unpatched curl 8.3.0-3]

2 years agoImport curl_8.3.0-3.debian.tar.xz
Samuel Henrique [Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)]
Import curl_8.3.0-3.debian.tar.xz

[dgit import tarball curl 8.3.0-3 curl_8.3.0-3.debian.tar.xz]

2 years agoMerge curl (8.3.0-2) import into refs/heads/workingbranch
Samuel Henrique [Sun, 1 Oct 2023 14:01:42 +0000 (15:01 +0100)]
Merge curl (8.3.0-2) import into refs/heads/workingbranch

2 years agoBuild with GnuTLS.
Ramakrishnan Muthukrishnan [Thu, 3 Aug 2023 22:35:34 +0000 (18:35 -0400)]
Build with GnuTLS.

Origin: vendor
Forwarded: not-needed
Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
Last-Update: 2018-05-23

Gbp-Pq: Name 90_gnutls.patch

2 years ago[PATCH] lib: use wrapper for curl_mime_data fseek callback
Natanael Copa [Fri, 22 Sep 2023 13:58:49 +0000 (13:58 +0000)]
[PATCH] lib: use wrapper for curl_mime_data fseek callback

fseek uses long offset which does not match with curl_off_t. This leads
to undefined behavior when calling the callback and caused failure on
arm 32 bit.

Use a wrapper to solve this and use fseeko which uses off_t instead of
long.

Thanks to the nice people at Libera IRC #musl for helping finding this
out.

Fixes #11882
Fixes #11900
Closes #11918

Gbp-Pq: Name lib_use_wrapper_for_curl_mime_data_fseek_callback.patch