Hi ports,
(obviously for post unlock)
After having built meta/{xfce,lxqt,mate} flawlessly on my powerbook, it
was time to see how far meta/gnome would go with ports-gcc-8.
It requires only COMPILER fixes. In a future GNOME update, maybe we
should set a global COMPILER in gnome.port.mk, like qt5.port.mk has.
Currently it uses base compilers by default.
Here is a pretty raw report taken from my notes.
Fixed ports (there is a diff at the end for them):
> x11/gnome/mutter
"cc1: error: -Werror=maybe-uninitialized: No option
-Wmaybe-uninitialized"
The option is too recent for base-gcc, changed COMPILER. May also
work with ports-gcc-4.9 (it's supported there).
> x11/gnome/usage
> x11/gnome/bijiben
"error: 'for' loop initial declaration used outside C99 mode"
Requires modern C support or fixing the code. Changed COMPILER.
ports-gcc-4.9 would need -std=c99.
I don't know what we should do with ports-gcc-4.9 possible
fixes post-unlock, that diff clearly targets ports-gcc-8.
Broken ports (only "new" breakages):
> x11/gnome/builder
"ERROR: Problem encountered: libgit2 was not compiled with"
"-DTHREADSAFE:BOOL=ON"
There may be a reason it wasn't compiled with it. I haven't
looked at the issue yet, but any info is welcome.
> x11/gnome/shell
> x11/gnome/shell-extensions
"Unable to allocate memory: std::bad_alloc"
Probably hit by arch limits, changed COMPILER without success
Comments are welcome :)
Charlène.
Index: mutter/Makefile
===================================================================
RCS file: /cvs/ports/x11/gnome/mutter/Makefile,v
retrieving revision 1.90
diff -u -p -r1.90 Makefile
--- mutter/Makefile 20 Jan 2019 04:55:56 -0000 1.90
+++ mutter/Makefile 13 Apr 2019 15:57:06 -0000
@@ -4,7 +4,7 @@ COMMENT= window and compositing manager
GNOME_PROJECT= mutter
GNOME_VERSION= 3.30.2
-REVISION= 1
+REVISION= 2
API_SUFFIX= -3
SUBST_VARS= API_SUFFIX
@@ -44,6 +44,8 @@ BUILD_DEPENDS= devel/gsettings-desktop-
RUN_DEPENDS= devel/gsettings-desktop-schemas>=3.16.0 \
x11/gnome/zenity
+
+COMPILER= base-clang ports-gcc
CONFIGURE_STYLE= gnu
Index: usage/Makefile
===================================================================
RCS file: /cvs/ports/x11/gnome/usage/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- usage/Makefile 1 Jan 2019 16:56:11 -0000 1.5
+++ usage/Makefile 13 Apr 2019 15:57:06 -0000
@@ -4,6 +4,7 @@ COMMENT= system resources status
GNOME_PROJECT= gnome-usage
GNOME_VERSION= 3.30.0
+REVISION= 0
CATEGORIES= sysutils
@@ -21,5 +22,8 @@ MODGNOME_TOOLS= desktop-file-utils gtk-
LIB_DEPENDS= devel/libgtop2 \
x11/gtk+3
+
+# C99 won't work with base-gcc
+COMPILER= base-clang ports-gcc
.include <bsd.port.mk>
Index: bijiben/Makefile
===================================================================
RCS file: /cvs/ports/x11/gnome/bijiben/Makefile,v
retrieving revision 1.57
diff -u -p -r1.57 Makefile
--- bijiben/Makefile 21 Feb 2019 17:08:50 -0000 1.57
+++ bijiben/Makefile 13 Apr 2019 15:57:06 -0000
@@ -4,7 +4,7 @@ COMMENT= simple note editor
GNOME_PROJECT= bijiben
GNOME_VERSION= 3.30.3
-REVISION= 0
+REVISION= 1
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
@@ -25,6 +25,8 @@ LIB_DEPENDS= databases/evolution-data-s
# needs xdg-email
RUN_DEPENDS += devel/xdg-utils
+
+COMPILER = base-clang ports-gcc
MODGNOME_TOOLS= desktop-file-utils gtk-update-icon-cache \
shared-mime-info yelp