pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: boost-libs on macOS Ventura (13.x)



On Mon, 22 May 2023 11:16:29 -0500
Jason Bacon <jtocino%gmx.com@localhost> wrote:

> > That sounds like a kludge.  The pkgsrc doctrine is that invoking a C++
> > compiler for building a C file is a bug.  Can you fix the makefile(heh)
> > to have it call CC instead of CXX?
> 
> I certainly could, but I suspect upstream will argue that
> 
> clang++ -x c file.c
> 
> is perfectly valid, and we'll have to keep the patch around
> indefinitely.  Even if they agree to change it, this may pop up in other
> packages, and someone will have to spend time solving this problem again.

It is not that easy to patch since you have to hook into the boost-jam stuff.

I could reproduce on latest Ventura (aarch64). The -std=c++14 comes
from meta-pkgs/boost/Makefile.common's USE_LANGUAGES.
The least intrusive quick-fix seems to be to undo this platform conditionally.

--- Makefile.common	17 May 2023 14:12:15 -0000	1.97
+++ Makefile.common	23 May 2023 14:12:28 -0000
@@ -39,6 +39,10 @@ USE_LANGUAGES=		c c++14

 .include "../../mk/bsd.prefs.mk"

+.if ${OPSYS} == "Darwin"
+BUILDLINK_TRANSFORM+=	rm:-std=c++14
+.endif


Home | Main Index | Thread Index | Old Index