git: ebacba0188f8 - 2022Q4 - deskutils/remind: fix build on riscv64 (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Oct 2022 23:27:46 UTC
The branch 2022Q4 has been updated by fluffy:
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 | 10 ++++++++++
2 files changed, 16 insertions(+)
diff --git a/deskutils/remind/Makefile b/deskutils/remind/Makefile
index 5a51642b9e67..d5bdc89a2ef1 100644
--- a/deskutils/remind/Makefile
+++ b/deskutils/remind/Makefile
@@ -11,11 +11,17 @@ WWW= https://dianne.skoll.ca/projects/remind/
LICENSE= GPLv2
+USES= autoreconf
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-perl-build-artifacts
MAKE_ARGS= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
INSTALL_TARGET= ${WITH_DEBUG:Dinstall:Uinstall-stripped}
+# disable LTO on riscv64
+EXTRA_PATCHES_riscv64= ${FILESDIR}/extra-patch-configure.in
+EXTRA_PATCHES= ${EXTRA_PATCHES_${ARCH}}
+
OPTIONS_DEFINE= A4 TCLTK REM2HTML REM2PDF
OPTIONS_DEFAULT= LANG_US REM2HTML REM2PDF
OPTIONS_SINGLE= LANGUAGE
diff --git a/deskutils/remind/files/extra-patch-configure.in b/deskutils/remind/files/extra-patch-configure.in
new file mode 100644
index 000000000000..bac6c6366f21
--- /dev/null
+++ b/deskutils/remind/files/extra-patch-configure.in
@@ -0,0 +1,10 @@
+--- configure.in.orig 2022-10-13 14:15:40 UTC
++++ configure.in
+@@ -51,7 +51,6 @@ if test "$GCC" = yes; then
+ AC_MSG_CHECKING([whether $CC supports $f])
+ if $CC -E $f /dev/null > /dev/null 2>&1 ; then
+ AC_MSG_RESULT([yes])
+- CFLAGS="$CFLAGS $f"
+ else
+ AC_MSG_RESULT([no])
+ fi