pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/glibmm glibmm: Add kludge to use gcc 4.9 for dep...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/868c3e4805b4
branches:  trunk
changeset: 373088:868c3e4805b4
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Fri Dec 29 23:06:14 2017 +0000

description:
glibmm: Add kludge to use gcc 4.9 for depending packages

glibmm seems to need gcc 4.9 to build; therefore set GCC_REQD.

This means that depending packages using other versions (specifically
4.8 on NetBSD 7) will fail to link.  As a kludge to make more things
build for the upcoming branch, force GCC_REQD to 4.9 in glibmm's
buildlink3.mk.  Now, at least some packages that depend on glibmm
build.  While icky, it's my judgement that having more packages
building is better.

This will very likely be reverted either after the branch or as part
of the upcoming compiler selection logic changes.

As proposed on tech-pkg.

diffstat:

 devel/glibmm/Makefile      |  6 ++++--
 devel/glibmm/buildlink3.mk |  7 ++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 6be31e48cbff -r 868c3e4805b4 devel/glibmm/Makefile
--- a/devel/glibmm/Makefile     Fri Dec 29 17:55:33 2017 +0000
+++ b/devel/glibmm/Makefile     Fri Dec 29 23:06:14 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2017/12/11 13:37:43 jperkin Exp $
+# $NetBSD: Makefile,v 1.76 2017/12/29 23:06:14 gdt Exp $
 
 DISTNAME=      glibmm-2.54.1
 CATEGORIES=    devel gnome
@@ -10,7 +10,9 @@
 COMMENT=       C++ bindings for glib
 LICENSE=       gnu-gpl-v2 AND gnu-lgpl-v2.1
 
-GCC_REQD+=             4.8
+# With 4.8, one gets the following:
+#   error: no matching function for call to 'regex_replace(const char*&, std::regex, const char [3])'
+GCC_REQD+=             4.9
 USE_LANGUAGES=         c c++11
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
diff -r 6be31e48cbff -r 868c3e4805b4 devel/glibmm/buildlink3.mk
--- a/devel/glibmm/buildlink3.mk        Fri Dec 29 17:55:33 2017 +0000
+++ b/devel/glibmm/buildlink3.mk        Fri Dec 29 23:06:14 2017 +0000
@@ -1,10 +1,15 @@
-# $NetBSD: buildlink3.mk,v 1.15 2012/09/15 10:04:10 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.16 2017/12/29 23:06:14 gdt Exp $
 
 BUILDLINK_TREE+=       glibmm
 
 .if !defined(GLIBMM_BUILDLINK3_MK)
 GLIBMM_BUILDLINK3_MK:=
 
+# It is necessary to use the same compiler to link against libmm as it
+# was built with.  This is hacky, but enables at least
+# gnome-system-monitor to build.
+GCC_REQD+=             4.9
+
 BUILDLINK_API_DEPENDS.glibmm+= glibmm>=2.24.2
 BUILDLINK_ABI_DEPENDS.glibmm+= glibmm>=2.32.1nb1
 BUILDLINK_PKGSRCDIR.glibmm?=   ../../devel/glibmm



Home | Main Index | Thread Index | Old Index