Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2, 1/1] package/rtty: fix build with mbedtls but without zlib
Date: Mon, 31 Aug 2020 15:20:29 +0200	[thread overview]
Message-ID: <87blirc5pe.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20200830214042.1340329-1-fontaine.fabrice@gmail.com> (Fabrice Fontaine's message of "Sun, 30 Aug 2020 23:40:42 +0200")

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > zlib is not mandatory with mbedtls, only optional, however as mbedtls
 > does not provide a pkg-config file, we assume that if zlib is
 > available, we must link with it to avoid a build failure when linking
 > statically with a zlib-enabled mbedtls.

 > This change was pushed upstream with
 > https://github.com/zhaojh329/rtty/commit/7b8efe11dbafce97971dc130bf6cc1756f34ce07
 > and is in buildroot since the bump to version 7.1.4 with commit
 > 0c80245ddbe78c8e443f98b9bbccac56331cdb26.
 > However, this change will raise a build failure if ZLIB_LIBRARIES is
 > used when zlib is not found. This patch is fixing this build failure.

 > However, it should be noted that the compression support in mbedtls is
 > only enabled if BR2_PACKAGE_MBEDTLS_COMPRESSION=y. So we can have a
 > situation where mbedtls is enabled, zlib is enabled, but mbedtls is not
 > using zlib and as a result, since version 7.1.4, rttyt will needlessly
 > link with zlib in such a situation.

 > The only sane way to fix this is to use pkg-config, but as mbedtls
 > apparently doesn't provide any .pc file, we leave it as it is.

 > Fixes:
 >  - http://autobuild.buildroot.org/results/a0ebffe58bbf14cab74b7d2111d4d88a9c725273

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
 > ---
 > Changes v1 -> v2 (after review of Thomas Petazzoni):
 >  - Extend commit message

Committed, thanks.

-- 
Bye, Peter Korsgaard

      reply	other threads:[~2020-08-31 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-30 21:40 [Buildroot] [PATCH v2, 1/1] package/rtty: fix build with mbedtls but without zlib Fabrice Fontaine
2020-08-31 13:20 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blirc5pe.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox