Bug 277997 - mail/cyrus-imapd38 Fix build against libreSSL
Summary: mail/cyrus-imapd38 Fix build against libreSSL
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: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 19:20 UTC by David Marec
Modified: 2024-03-28 17:29 UTC (History)
1 user (show)

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


Attachments
switch to BN_get_rfc2409_prime_1024 (357 bytes, text/plain)
2024-03-27 19:20 UTC, David Marec
david.marec: maintainer-approval? (ume)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Marec 2024-03-27 19:20:55 UTC
Created attachment 249523 [details]
switch to BN_get_rfc2409_prime_1024

Using:
DEFAULT_VERSIONS+=ssl=libressl

mail/cyrus-imapd38 failed to build:

imap/tls.c:260:7: error: incompatible integer to pointer conversion assigning to 'BIGNUM *' (aka 'struct bignum_st *') from 'int' [-Wint-conversion]
  260 |     p = get_rfc2409_prime_1024(NULL);
      |       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Testport passed on libressl and ssl-base port trees.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-03-28 17:26:36 UTC
A commit in branch main references this bug:

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

commit e3051908c543c2669210c72736f7d9904e27db95
Author:     Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2024-03-28 17:22:34 +0000
Commit:     Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2024-03-28 17:25:22 +0000

    mail/cyrus-imapd38: Fix build against libreSSL.

    PR:             277997
    Reported by:    David Marec <david@lapinbilly.eu>

 mail/cyrus-imapd38/files/patch-imap__tls.c (new) | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2024-03-28 17:29:06 UTC
Thanks for your report!
I've committed the fix.