Debian Patches

Status for curl/8.7.1-3

Patch Description Author Forwarded Bugs Origin Last update
04_workaround_as_needed_bug.patch Work around libtool --as-needed reordering bug Alessandro Ghedini <ghedo@debian.org> not-needed debian vendor 2016-08-03
build-Divide-mit-krb5-gssapi-link-flags-between-LDFLAGS-a.patch 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.
Simon McVittie <smcv@collabora.com> no 2022-11-22
11_omit-directories-from-config.patch In order to (partially) multi-arch-ify curl-config, remove all

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.)
Benjamin Moody <benjamin.moody@gmail.com> not-needed debian vendor 2017-01-10
Remove-curl-s-LDFLAGS-from-curl-config-static-libs.patch 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.
Simon McVittie <smcv@collabora.com> not-needed debian 2022-11-22
openldap-create-ldap-URLs-correctly-for-IPv6-addresses.patch openldap: create ldap URLs correctly for IPv6 addresses
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.
Daniel Stenberg <daniel@haxx.se> no debian upstream, https://github.com/curl/curl/commit/56935a7dada6975d5a46aa494de0af195e4e8659 2024-03-30
make-manpages-reproducible.patch 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.

Fixes #13242
Closes #13243
Daniel Stenberg <daniel@haxx.se> no upstream, https://github.com/curl/curl/commit/afdd1129166938a4ba952aa1a9503adf0ec1a7a3 2024-03-31
fix-regression-on-chunked-post.patch 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.
Stefan Eissing <stefan@eissing.org> no upstream, https://github.com/curl/curl/commit/721941aadf4adf4f6aeb3f4c0ab489bb89610c36 2024-04-02
test1901_verify_chunked_POST_from_callback_with_CURLOPT_POSTFIELDSIZ.patch [PATCH] test1901: verify chunked POST from callback with CURLOPT_POSTFIELDSIZE set

Follow-up to 721941aadf4ad

Closes #13262
Daniel Stenberg <daniel@haxx.se> no 2024-04-02
fix-regression-in-curlinfo.patch [PATCH] CURLINFO_REQUEST_SIZE: fixed, add tests for transfer infos reported

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

Fixes #13269
Closes #13275
Stefan Eissing <stefan@eissing.org> no upstream, https://github.com/curl/curl/commit/8482ce53ddfd9daab46261e0f00a0032403ba917 2024-04-19
90_gnutls.patch Build with GnuTLS. Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> not-needed vendor 2018-05-23

All known versions for source package 'curl'

Links