From: Josh Grosse Subject: Re: Boost 1.89 To: ports@openbsd.org, brad@openbsd.org, rsadowski@openbsd.org, gonzalo@openbsd.org, robert@openbsd.org Date: Fri, 6 Feb 2026 10:50:38 -0500 On Fri, Feb 06, 2026 at 01:26:55PM +0100, Theo Buehler wrote: > ... > The following ports fail to build due to configure checks for > Boost::System. I'd appreciate if the maintainers could take care of > fixing this. > ... > > Josh: codeblocks > Fails to configure due to missing boost_system* Attached is a diff for devel/codeblocks to remove boost_system. Tested on amd64. diff --git devel/codeblocks/Makefile devel/codeblocks/Makefile index 3205ff1e891..338e8ba50ad 100755 --- devel/codeblocks/Makefile +++ devel/codeblocks/Makefile @@ -6,7 +6,7 @@ V= 25.03 DISTNAME= codeblocks_${V} PKGNAME= codeblocks-${V} WRKSRC= ${WRKDIR}/codeblocks_${V} -REVISION= 0 +REVISION= 1 EXTRACT_SUFX= .tar.xz @@ -21,7 +21,6 @@ SHARED_LIBS += wxcustombutton 0.1 # 0.1 SHARED_LIBS += wximagepanel 0.1 # 0.1 SHARED_LIBS += wxspeedbutton 0.1 # 0.1 SHARED_LIBS += wxkwic 0.1 # 0.1 -SHARED_LIBS += wxtreelist 0.1 # 0.1 SHARED_LIBS += wxled 0.1 # 0.1 SHARED_LIBS += wxsmithlib 0.1 # 0.1 SHARED_LIBS += wxmathplot 0.1 # 0.1 @@ -38,7 +37,7 @@ PERMIT_PACKAGE= Yes WANTLIB += ${COMPILER_LIBCXX} ICE SDL2 SM X11 Xau Xcomposite Xcursor WANTLIB += Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr Xrender WANTLIB += Xss Xtst Xxf86vm aspell atk-1.0 atk-bridge-2.0 atspi -WANTLIB += boost_system bz2 c cairo cairo-gobject crypto curl +WANTLIB += bz2 c cairo cairo-gobject crypto curl WANTLIB += curses dbus-1 enchant-2 epoll-shim epoxy execinfo expat ffi WANTLIB += fontconfig freetype fribidi gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0 WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gpg-error graphite2 @@ -56,7 +55,6 @@ WANTLIB += xcb-shm z zstd xkbcommon BUILD_DEPENDS= archivers/zip LIB_DEPENDS= archivers/bzip2 \ - devel/boost \ textproc/hunspell \ x11/wxWidgets>=3.0.4 @@ -81,7 +79,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --with-contrib-plugins=all,-FileManager CONFIGURE_ARGS += --enable-debug -CONFIGURE_ARGS += --with-boost-libdir=${LOCALBASE}/lib pre-configure: ${SUBST_CMD} ${WRKSRC}/src/plugins/compilergcc/compilergcc.cpp diff --git devel/codeblocks/patches/patch-configure_ac devel/codeblocks/patches/patch-configure_ac index e2af4904bbb..669be4e4427 100644 --- devel/codeblocks/patches/patch-configure_ac +++ devel/codeblocks/patches/patch-configure_ac @@ -1,14 +1,25 @@ -undefined reference to `free' +1. undefined reference to `free' + +2. Cherry pick trunk@13760 to remove boost::system + per https://marc.info/?l=openbsd-ports&m=177038373917003&w=2 Index: configure.ac --- configure.ac.orig +++ configure.ac -@@ -44,8 +44,6 @@ AC_PROG_AWK +@@ -15,7 +15,6 @@ AC_MSG_RESULT([${enable_flags_setting}]) + m4_include([m4/acinclude.m4]) + m4_include([m4/ax_cxx_compile_stdcxx.m4]) + m4_include([m4/ax_boost_base.m4]) +-m4_include([m4/ax_boost_system.m4]) - AX_CXX_COMPILE_STDCXX(11, noext) + CODEBLOCKS_CHECK_DEBUG --CODEBLOCKS_CHECK_LINK_FLAG([-Wl,--no-undefined],[LDFLAGS="-Wl,--no-undefined $LDFLAGS"]) +@@ -43,8 +42,6 @@ AC_PROG_MAKE_SET + AC_PROG_AWK + + AX_CXX_COMPILE_STDCXX(11, noext) - +-CODEBLOCKS_CHECK_LINK_FLAG([-Wl,--no-undefined],[LDFLAGS="-Wl,--no-undefined $LDFLAGS"]) + CODEBLOCKS_SETUP_FOR_TARGET - dnl Checks for header files. diff --git devel/codeblocks/patches/patch-m4_ax_boost_system_m4 devel/codeblocks/patches/patch-m4_ax_boost_system_m4 new file mode 100644 index 00000000000..bebe72e6e5c --- /dev/null +++ devel/codeblocks/patches/patch-m4_ax_boost_system_m4 @@ -0,0 +1,128 @@ +Cherry pick trunk@13760 to remove boost::system +per https://marc.info/?l=openbsd-ports&m=177038373917003&w=2 + +Index: m4/ax_boost_system.m4 +--- m4/ax_boost_system.m4.orig ++++ m4/ax_boost_system.m4 +@@ -1,121 +0,0 @@ +-# =========================================================================== +-# https://www.gnu.org/software/autoconf-archive/ax_boost_system.html +-# =========================================================================== +-# +-# SYNOPSIS +-# +-# AX_BOOST_SYSTEM +-# +-# DESCRIPTION +-# +-# Test for System library from the Boost C++ libraries. The macro requires +-# a preceding call to AX_BOOST_BASE. Further documentation is available at +-# . +-# +-# This macro calls: +-# +-# AC_SUBST(BOOST_SYSTEM_LIB) +-# +-# And sets: +-# +-# HAVE_BOOST_SYSTEM +-# +-# LICENSE +-# +-# Copyright (c) 2008 Thomas Porschberg +-# Copyright (c) 2008 Michael Tindal +-# Copyright (c) 2008 Daniel Casimiro +-# +-# Copying and distribution of this file, with or without modification, are +-# permitted in any medium without royalty provided the copyright notice +-# and this notice are preserved. This file is offered as-is, without any +-# warranty. +- +-#serial 19 +- +-AC_DEFUN([AX_BOOST_SYSTEM], +-[ +- AC_ARG_WITH([boost-system], +- AS_HELP_STRING([--with-boost-system@<:@=special-lib@:>@], +- [use the System library from boost - it is possible to specify a certain library for the linker +- e.g. --with-boost-system=boost_system-gcc-mt ]), +- [ +- if test "$withval" = "no"; then +- want_boost="no" +- elif test "$withval" = "yes"; then +- want_boost="yes" +- ax_boost_user_system_lib="" +- else +- want_boost="yes" +- ax_boost_user_system_lib="$withval" +- fi +- ], +- [want_boost="yes"] +- ) +- +- if test "x$want_boost" = "xyes"; then +- AC_REQUIRE([AC_PROG_CC]) +- AC_REQUIRE([AC_CANONICAL_BUILD]) +- CPPFLAGS_SAVED="$CPPFLAGS" +- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" +- export CPPFLAGS +- +- LDFLAGS_SAVED="$LDFLAGS" +- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" +- export LDFLAGS +- +- AC_CACHE_CHECK(whether the Boost::System library is available, +- ax_cv_boost_system, +- [AC_LANG_PUSH([C++]) +- CXXFLAGS_SAVE=$CXXFLAGS +- CXXFLAGS= +- +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include ]], +- [[boost::system::error_category *a = 0;]])], +- ax_cv_boost_system=yes, ax_cv_boost_system=no) +- CXXFLAGS=$CXXFLAGS_SAVE +- AC_LANG_POP([C++]) +- ]) +- if test "x$ax_cv_boost_system" = "xyes"; then +- AC_SUBST(BOOST_CPPFLAGS) +- +- AC_DEFINE(HAVE_BOOST_SYSTEM,,[define if the Boost::System library is available]) +- BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` +- +- LDFLAGS_SAVE=$LDFLAGS +- if test "x$ax_boost_user_system_lib" = "x"; then +- for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do +- ax_lib=${libextension} +- AC_CHECK_LIB($ax_lib, exit, +- [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], +- [link_system="no"]) +- done +- if test "x$link_system" != "xyes"; then +- for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do +- ax_lib=${libextension} +- AC_CHECK_LIB($ax_lib, exit, +- [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], +- [link_system="no"]) +- done +- fi +- +- else +- for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do +- AC_CHECK_LIB($ax_lib, exit, +- [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], +- [link_system="no"]) +- done +- +- fi +- if test "x$ax_lib" = "x"; then +- AC_MSG_ERROR(Could not find a version of the library!) +- fi +- if test "x$link_system" = "xno"; then +- AC_MSG_ERROR(Could not link against $ax_lib !) +- fi +- fi +- +- CPPFLAGS="$CPPFLAGS_SAVED" +- LDFLAGS="$LDFLAGS_SAVED" +- fi +-]) diff --git devel/codeblocks/patches/patch-src_plugins_contrib_NassiShneiderman_Makefile_am devel/codeblocks/patches/patch-src_plugins_contrib_NassiShneiderman_Makefile_am new file mode 100644 index 00000000000..eafdab5492a --- /dev/null +++ devel/codeblocks/patches/patch-src_plugins_contrib_NassiShneiderman_Makefile_am @@ -0,0 +1,16 @@ +Cherry pick trunk@13760 to remove boost::system +per https://marc.info/?l=openbsd-ports&m=177038373917003&w=2 + +Index: src/plugins/contrib/NassiShneiderman/Makefile.am +--- src/plugins/contrib/NassiShneiderman/Makefile.am.orig ++++ src/plugins/contrib/NassiShneiderman/Makefile.am +@@ -1,8 +1,7 @@ + AM_CPPFLAGS = $(WX_CXXFLAGS) \ + -I$(top_srcdir)/src/include \ + -I$(top_srcdir)/src/sdk/wxscintilla/include \ +- $(BOOST_CPPFLAGS) \ +- -DBOOST_SYSTEM_NO_DEPRECATED ++ $(BOOST_CPPFLAGS) + + pluginlibdir = $(pkglibdir)/plugins +