git: 15b941ab7dda - main - editors/texmacs: try to unbreak the build against modern C++ compilers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Jan 2026 01:20:35 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=15b941ab7dda7963769543339c69bd85f7d38ef9
commit 15b941ab7dda7963769543339c69bd85f7d38ef9
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2026-01-06 01:19:26 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2026-01-06 01:19:26 +0000
editors/texmacs: try to unbreak the build against modern C++ compilers
Add parentheses around `*this' so that hashtree<K,V>::operator-> kicks
in which returns a pointer to hashtree_rep<K,V> as expected (note that
similar hashtree<K,V>::operator() method below does not have this bug).
Chase HTTP/1.1 301 redirection in the MASTER_SITES while here and drop
no longer needed GNU_CONFIGURE_MANPREFIX override.
Via: https://build.opensuse.org/package/show/openSUSE:Factory/TeXmacs
---
editors/texmacs/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/editors/texmacs/Makefile b/editors/texmacs/Makefile
index fedec47542e3..9cb8c1fc4b32 100644
--- a/editors/texmacs/Makefile
+++ b/editors/texmacs/Makefile
@@ -2,7 +2,7 @@ PORTNAME= texmacs
PORTVERSION= 1.99.4
PORTREVISION= 11
CATEGORIES= editors print
-MASTER_SITES= http://www.texmacs.org/Download/ftp/tmftp/source/
+MASTER_SITES= https://www.texmacs.org/Download/ftp/tmftp/source/
DISTNAME= TeXmacs-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
@@ -12,8 +12,6 @@ WWW= https://www.texmacs.org/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN= Kernel/Containers/hashtree.cpp:97:14: error: no member named 'contains' in 'hashtree<K, V>'
-
RUN_DEPENDS= fig2dev:print/transfig
USES= cpe desktop-file-utils gmake guile:1.8,alias iconv \
@@ -31,7 +29,6 @@ SHEBANG_FILES= plugins/asymptote/bin/* plugins/dratex/bin/* \
plugins/mathematica/bin/realpath.py
GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS= --enable-optimize="${CXXFLAGS}" --disable-qt
MAKE_ARGS= CP="${CP} -R -f"
@@ -73,6 +70,9 @@ post-patch:
@${REINPLACE_CMD} -e \
'/require/s|"python"|"${PYTHON_CMD:T}"|' \
${WRKSRC}/plugins/python/progs/init-python.scm
+ @${REINPLACE_CMD} -e \
+ '/contains/s|\*this->|(*this)->|g' \
+ ${WRKSRC}/src/Kernel/Containers/hashtree.cpp
@${REINPLACE_CMD} -e \
's|int tab=.*)|int tab)|' \
${WRKSRC}/src/Kernel/Types/tree.hpp