Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 720782

Summary: mail-mta/opensmtpd-6.8.0_p2-r2 calls ar directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Jason A. Donenfeld <zx2c4>
Status: RESOLVED FIXED    
Severity: normal CC: orbea
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/30750
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-05-03 11:37:52 UTC
This is an auto-filled bug because mail-mta/opensmtpd calls ar directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different AR implementation (like llvm-ar) by setting the AR variable. So this issue has been reproduced by setting the AR variable to aarch64-unknown-linux-gnu-ar and by removing the /usr/bin/ar binary.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-03 11:38:03 UTC
Created attachment 635810 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-13 07:43:02 UTC
ci has reproduced this issue with version 6.8.0_p2-r2 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2023-04-26 03:51:46 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(+)