tech-pkg archive

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

gcc runtime dependency



On Sat, May 21, 2022 at 07:55:39AM +0000, Nia Alarie wrote:
> Module Name:	pkgsrc
> Committed By:	nia
> Date:		Sat May 21 07:55:39 UTC 2022
> 
> Modified Files:
> 	pkgsrc/audio/strawberry: Makefile
> 
> Log Message:
> strawberry: wants std::optional
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.34 -r1.35 pkgsrc/audio/strawberry/Makefile
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

> Modified files:
> 
> Index: pkgsrc/audio/strawberry/Makefile
> diff -u pkgsrc/audio/strawberry/Makefile:1.34 pkgsrc/audio/strawberry/Makefile:1.35
> --- pkgsrc/audio/strawberry/Makefile:1.34	Mon Apr 18 19:10:26 2022
> +++ pkgsrc/audio/strawberry/Makefile	Sat May 21 07:55:39 2022
> @@ -1,4 +1,4 @@
> -# $NetBSD: Makefile,v 1.34 2022/04/18 19:10:26 adam Exp $
> +# $NetBSD: Makefile,v 1.35 2022/05/21 07:55:39 nia Exp $
>  
>  DISTNAME=	strawberry-1.0.4
>  PKGREVISION=	1
> @@ -17,6 +17,7 @@ TOOL_DEPENDS+=	qt5-qttools-[0-9]*:../../
>  USE_CMAKE=	yes
>  USE_LANGUAGES=	c c++
>  USE_TOOLS+=	pkg-config
> +GCC_REQD+=	7 # std::optional
>  
>  DEPENDS+=	gst-plugins1-flac-[0-9]*:../../audio/gst-plugins1-flac
>  DEPENDS+=	gst-plugins1-mpg123-[0-9]*:../../audio/gst-plugins1-mpg123
> @@ -39,6 +40,14 @@ DEPENDS+=	gst-plugins1-oss-[0-9]*:../../
>  
>  .if ${OPSYS} == "NetBSD"
>  PREFER.sqlite3=	pkgsrc # fts5
> +# This package will link against libstdc++.so from the pkgsrc GCC when the
> +# base OS GCC doesn't meet the minimum requirement. Thus we do this so the
> +# appropriate gcc-libs package will be captured as a dependency, otherwise
> +# binary packages will be broken.
> +.  if ${OPSYS_VERSION} < 090000
> +USE_PKGSRC_GCC=		yes
> +USE_PKGSRC_GCC_RUNTIME=	yes
> +.  endif

Can we somehow put that bit in the infrastructure? We have it in quite
a number of packages now.
 Thomas


Home | Main Index | Thread Index | Old Index