Bug 267021

Summary: deskutils/remind: fix build on riscv64
Product: Ports & Packages Reporter: Robert Clausecker <fuz>
Component: Individual Port(s)Assignee: Dima Panov <fluffy>
Status: Closed FIXED    
Severity: Affects Only Me CC: fluffy, riscv
Priority: --- Flags: fuz: merge-quarterly?
Version: Latest   
Hardware: riscv   
OS: Any   
Bug Depends on:    
Bug Blocks: 267109    
Attachments:
Description Flags
deskutils/remind: fix build on riscv64
fuz: maintainer-approval+
deskutils/remind: fix build on riscv64 fuz: maintainer-approval+

Description Robert Clausecker freebsd_committer freebsd_triage 2022-10-13 15:20:46 UTC
Created attachment 237268 [details]
deskutils/remind: fix build on riscv64

The LTO build fails on riscv64 due to a phony linker error
about ABI incompatibility.  Disable LTO on riscv64 to make
the build succeed.

Tested with Poudriere on armv7 risc64 FreeBSD 13.1.
Please MFH if possible.
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2022-10-15 16:53:53 UTC
Created attachment 237341 [details]
deskutils/remind: fix build on riscv64

Replace patch with one that is well formed.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-10-15 23:26:55 UTC
A commit in branch main references this bug:

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

commit f3d5006d3dc86ff052a735666f0d15da6fb8858a
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-13 14:41:21 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-10-15 23:26:28 +0000

    deskutils/remind: fix build on riscv64 (+)

    The LTO build fails on riscv64 due to a phony linker error
    about ABI incompatibility.  Disable LTO on riscv64 to make
    the build succeed.

    PR:     267021
    MFH:    2022Q4

 deskutils/remind/Makefile                             |  6 ++++++
 deskutils/remind/files/extra-patch-configure.in (new) | 10 ++++++++++
 2 files changed, 16 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-10-15 23:27:56 UTC
A commit in branch 2022Q4 references this bug:

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

commit ebacba0188f872c64f84eaa157d99e2f558bc6e7
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-13 14:41:21 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-10-15 23:27:34 +0000

    deskutils/remind: fix build on riscv64 (+)

    The LTO build fails on riscv64 due to a phony linker error
    about ABI incompatibility.  Disable LTO on riscv64 to make
    the build succeed.

    PR:     267021
    MFH:    2022Q4
    (cherry picked from commit f3d5006d3dc86ff052a735666f0d15da6fb8858a)

 deskutils/remind/Makefile                             |  6 ++++++
 deskutils/remind/files/extra-patch-configure.in (new) | 10 ++++++++++
 2 files changed, 16 insertions(+)
Comment 4 Dima Panov freebsd_committer freebsd_triage 2022-10-15 23:28:27 UTC
Committed and MFHed, thanks!