Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 899876 - mail-mta/opensmtpd-6.8.0_p2-r2 fails to compile if dev-libs/libbsd is installed on Gentoo musl
Summary: mail-mta/opensmtpd-6.8.0_p2-r2 fails to compile if dev-libs/libbsd is install...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-06 10:40 UTC by hoelbezier
Modified: 2023-04-26 03:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mail-mta/opensmtpd build.log (build.log,54.65 KB, text/x-log)
2023-03-06 10:40 UTC, hoelbezier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hoelbezier 2023-03-06 10:40:34 UTC
Created attachment 856354 [details]
mail-mta/opensmtpd build.log

You can find the build log attached.

Compiling mail-mta/opensmtpdt-6.8.0_p2-r2 fails on profile default/linux/amd64/17.0/musl/hardened if dev-libs/libbsd is installed. If dev-libs/libbsd in uninstalled, mail-mta/opensmtpd compiles without any issues.

If testing on profile default/linux/amd64/17.1/no-multilib/hardened which uses the GNU libc, mail-mta/opensmtpd compiles without any issues, even with dev-libs/libbsd installed.

I guess this is related to #727260, according to the build log.
Comment 1 hoelbezier 2023-03-06 12:19:04 UTC
The following bug report upstream might provide some insight as to what is happening:

https://github.com/OpenSMTPD/OpenSMTPD/issues/1065
Comment 2 Larry the Git Cow gentoo-dev 2023-04-26 03:51:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05af7c36a3e4e74879cad3c03ef4ca2e3601b82

commit a05af7c36a3e4e74879cad3c03ef4ca2e3601b82
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-04-25 14:38:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-26 03:51:12 +0000

    mail-mta/opensmtpd: Build fixes
    
    Fixes some build issues:
    
    * Build failure on musl systems
    * Build failure with clang-16
    * Uses AM_PROG_AR to find ar(1) during configure
    * Uses configure arguments to find libevent and libssl on multilib
      systems.
    
    Closes: https://bugs.gentoo.org/720782
    Closes: https://bugs.gentoo.org/727260
    Closes: https://bugs.gentoo.org/739876
    Closes: https://bugs.gentoo.org/896050
    Closes: https://bugs.gentoo.org/899876
    Upstream-Issue: https://github.com/OpenSMTPD/OpenSMTPD/issues/1065
    Upstream-PR: https://github.com/OpenSMTPD/OpenSMTPD/pull/1195
    Upstream-PR: https://github.com/OpenSMTPD/OpenSMTPD/pull/1198
    Upstream-PR: https://github.com/OpenSMTPD/OpenSMTPD/pull/1199
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/30750
    Signed-off-by: Sam James <sam@gentoo.org>

 .../opensmtpd/files/opensmtpd-6.8.0_p2-ar.patch    |  42 +++
 ...pd-6.8.0_p2-implicit-function-declaration.patch | 303 +++++++++++++++++++++
 .../opensmtpd-6.8.0_p2-strict-prototypes.patch     |  74 +++++
 mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r3.ebuild    |  91 +++++++
 4 files changed, 510 insertions(+)