Bug 263037 - sysutils/fluent-bit: 1.9.1 build stops on error: parameter 'output_size' set but not used
Summary: sysutils/fluent-bit: 1.9.1 build stops on error: parameter 'output_size' set ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-04 13:27 UTC by Hiroo Ono
Modified: 2022-04-04 14:21 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (girgen)


Attachments
patch to lib/mbedtls-2.27.0/library/psa_crypto_cipher.c (787 bytes, patch)
2022-04-04 13:27 UTC, Hiroo Ono
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroo Ono 2022-04-04 13:27:19 UTC
Created attachment 232932 [details]
patch to lib/mbedtls-2.27.0/library/psa_crypto_cipher.c

fluent-bit 1.9.1 stops at the error below. This patch avoids the error.

/wrkdirs/usr/ports/sysutils/fluent-bit/work/fluent-bit-1.9.1/lib/mbedtls-2.27.0/
library/psa_crypto_cipher.c:270:12: error: parameter 'output_size' set but not u
sed [-Werror,-Wunused-but-set-parameter]
    size_t output_size,
           ^
1 error generated.
gmake[3]: *** [lib/mbedtls-2.27.0/library/CMakeFiles/mbedcrypto.dir/build.make:8
21: lib/mbedtls-2.27.0/library/CMakeFiles/mbedcrypto.dir/psa_crypto_cipher.c.o]
Error 1
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-04-04 14:19:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=18851ec64b62c0666cca77c575dc5fc59fd7bf9f

commit 18851ec64b62c0666cca77c575dc5fc59fd7bf9f
Author:     Palle Girgensohn <girgen@FreeBSD.org>
AuthorDate: 2022-04-04 14:16:20 +0000
Commit:     Palle Girgensohn <girgen@FreeBSD.org>
CommitDate: 2022-04-04 14:18:51 +0000

    sysutils/fluent-bit: fix compile problem with recent clang

    PR:             263037
    Submitted by:   Hiroo Ono

    Upstream patch submitted to https://github.com/Mbed-TLS/mbedtls/pull/5691

 ...-lib_mbedtls-2.27.0_library_psa__crypto__cipher.c (new) | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Comment 2 Palle Girgensohn freebsd_committer freebsd_triage 2022-04-04 14:21:28 UTC
Committed. Thanks!