Index: Mk/Uses/ninja.mk =================================================================== --- Mk/Uses/ninja.mk +++ Mk/Uses/ninja.mk @@ -4,26 +4,77 @@ # # Feature: ninja # Usage: USES=ninja +# Valid ARGS: build, make (default), run # +# build add a build dependency on ninja +# make use ninja for the build instead of make, implies "build" +# run add a run dependency on ninja +# # MAINTAINER: portmgr@FreeBSD.org .if !defined(_INCLUDE_USES_NINJA_MK) _INCLUDE_USES_NINJA_MK= yes -.if !empty(ninja_ARGS) -IGNORE= Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments +_valid_ARGS= build make run + +.for _arg in ${ninja_ARGS} +. if empty(_valid_ARGS:M${_arg}) +IGNORE= 'USES+= ninja:${ninja_ARGS}' usage: argument [${_arg}] is not recognized +. endif +.endfor + +.if empty(ninja_ARGS) +ninja_ARGS+= make .endif -MAKE_ARGS+= -v +.if ${ninja_ARGS:Mmake} +ninja_ARGS+= build +.endif -BUILD_DEPENDS+= ninja:devel/ninja +.if ${NINJA_DEFAULT} == ninja +NINJA_CMD= ninja +_NINJA_PORT= devel/ninja +.elif ${NINJA_DEFAULT} == samurai +NINJA_CMD= samu +_NINJA_PORT= devel/samurai +MAKE_ENV+= SAMUFLAGS="-v -j${MAKE_JOBS_NUMBER}" +. if ${ninja_ARGS:Mbuild} && !${BINARY_ALIAS:U:Mninja=*} +# Cmake and Meson have native support for Samurai and detect and +# use it when Ninja is not available in the build environment. The +# alias is needed for other ports which call Ninja directly and do +# not fall back to Samurai. There should be no harm in providing it +# generally. +BINARY_ALIAS+= ninja=samu +. endif +.else +IGNORE= invalid DEFAULT_VERSIONS+=ninja=${NINJA_DEFAULT} +.endif +.if ${ninja_ARGS:Mbuild} +BUILD_DEPENDS+= ${NINJA_CMD}:${_NINJA_PORT} +# Humanize build log and include percentage of completed jobs %p in it. +# See samu(1) or the Ninja manual. +MAKE_ENV+= NINJA_STATUS="[%p %s/%t] " +.endif + +.if ${ninja_ARGS:Mmake} +. if ${NINJA_DEFAULT} == ninja +# samu does not support GNU-style args, so we cannot just append +# -v last. samu gets this via SAMUFLAGS above but ninja does not +# support an equivalent environment variable. +MAKE_ARGS+= -v +. endif CMAKE_ARGS+= -GNinja MAKEFILE= -MAKE_CMD= ninja +MAKE_CMD= ${NINJA_CMD} MAKE_FLAGS= # Set a minimal job of 1 _MAKE_JOBS= -j${MAKE_JOBS_NUMBER} _DESTDIR_VIA_ENV= yes +.endif + +.if ${ninja_ARGS:Mrun} +RUN_DEPENDS+= ${NINJA_CMD}:${_NINJA_PORT} +.endif .endif Index: Mk/bsd.default-versions.mk =================================================================== --- Mk/bsd.default-versions.mk +++ Mk/bsd.default-versions.mk @@ -20,7 +20,7 @@ LOCALBASE?= /usr/local .for lang in APACHE BDB COROSYNC EMACS FIREBIRD FORTRAN FPC GCC GHOSTSCRIPT \ - IMAGEMAGICK JAVA LAZARUS LIBRSVG2 LINUX LLVM LUA MYSQL PERL5 \ + IMAGEMAGICK JAVA LAZARUS LIBRSVG2 LINUX LLVM LUA MYSQL NINJA PERL5 \ PGSQL PHP PYTHON PYTHON2 PYTHON3 RUBY RUST SAMBA SSL TCLTK VARNISH .if defined(${lang}_DEFAULT) ERROR+= "The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf" @@ -83,6 +83,8 @@ MONO_DEFAULT= 5.10 # Possible values: 5.5, 5.6, 5.7, 8.0, 10.3m, 10.4m, 10.5m, 5.5p, 5.6p, 5.7p, 5.6w, 5.7w MYSQL_DEFAULT?= 5.7 +# Possible values: ninja, samurai +NINJA_DEFAULT?= ninja # Possible values: 5.28, 5.30, 5.32, devel .if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \ defined(PACKAGE_BUILDING)) Index: devel/catch/Makefile =================================================================== --- devel/catch/Makefile +++ devel/catch/Makefile @@ -13,7 +13,7 @@ LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= compiler:c++14-lang cmake pathfix +USES= cmake compiler:c++14-lang pathfix python:build USE_GITHUB= yes GH_ACCOUNT= catchorg GH_PROJECT= Catch2 Index: devel/jiri/Makefile =================================================================== --- devel/jiri/Makefile +++ devel/jiri/Makefile @@ -13,11 +13,10 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= cmake:devel/cmake \ - ninja:devel/ninja +BUILD_DEPENDS= cmake:devel/cmake RUN_DEPENDS= git:devel/git -USES= go:modules +USES= go:modules ninja:build GITHASH= 1eee1043d12d1baabae7f2466cc0b1646395e32c TIMESTAMP= 2020-08-28T00:00:00.000000 Index: devel/meson/Makefile =================================================================== --- devel/meson/Makefile +++ devel/meson/Makefile @@ -12,10 +12,9 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING -RUN_DEPENDS= ninja:devel/ninja TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} -USES= python:3.6+ shebangfix +USES= ninja:run python:3.6+ shebangfix USE_PYTHON= autoplist distutils noflavors SHEBANG_FILES= mesonbuild/rewriter.py \ mesonbuild/scripts/cmake_run_ctgt.py Index: devel/pybind11/Makefile =================================================================== --- devel/pybind11/Makefile +++ devel/pybind11/Makefile @@ -11,7 +11,7 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake compiler:c++11-lang +USES= cmake compiler:c++11-lang python:build USE_GITHUB= yes GH_ACCOUNT= pybind Index: devel/samurai/Makefile =================================================================== --- devel/samurai/Makefile +++ devel/samurai/Makefile @@ -1,9 +1,10 @@ # $FreeBSD$ PORTNAME= samurai -DISTVERSION= 1.2 +DISTVERSION= 1.2-9 +DISTVERSIONSUFFIX= -g27dde2e CATEGORIES= devel -MASTER_SITES= https://github.com/michaelforney/samurai/releases/download/${DISTVERSION}/ +#MASTER_SITES= https://github.com/michaelforney/samurai/releases/download/${DISTVERSION}/ MAINTAINER= tobik@FreeBSD.org COMMENT= Ninja-compatible build tool written in C @@ -13,6 +14,8 @@ LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE LICENSE_FILE_MIT= ${WRKSRC}/LICENSE +USE_GITHUB= yes +GH_ACCOUNT= michaelforney ALL_TARGET= samu PLIST_FILES= bin/samu \ share/man/man1/samu.1.gz Index: devel/samurai/distinfo =================================================================== --- devel/samurai/distinfo +++ devel/samurai/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1614177408 -SHA256 (samurai-1.2.tar.gz) = 3b8cf51548dfc49b7efe035e191ff5e1963ebc4fe8f6064a5eefc5343eaf78a5 -SIZE (samurai-1.2.tar.gz) = 32709 +TIMESTAMP = 1617529134 +SHA256 (michaelforney-samurai-1.2-9-g27dde2e_GH0.tar.gz) = 10035b9d39241db4bc48095ed318895b5e427d8d62ae39871b165619e5068338 +SIZE (michaelforney-samurai-1.2-9-g27dde2e_GH0.tar.gz) = 32285 Index: devel/tinygo/Makefile =================================================================== --- devel/tinygo/Makefile +++ devel/tinygo/Makefile @@ -12,11 +12,10 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= cmake:devel/cmake \ - ninja:devel/ninja +BUILD_DEPENDS= cmake:devel/cmake TEST_DEPENDS= qemu-system-arm:emulators/qemu -USES= gmake go:modules,run +USES= gmake go:modules,run ninja:build python:build USE_GITHUB= yes GH_ACCOUNT= tinygo-org Index: graphics/glad/Makefile =================================================================== --- graphics/glad/Makefile +++ graphics/glad/Makefile @@ -11,7 +11,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake +USES= cmake python:build USE_GITHUB= yes GH_ACCOUNT= Dav1dde USE_LDCONFIG= yes Index: graphics/py-h3/Makefile =================================================================== --- graphics/py-h3/Makefile +++ graphics/py-h3/Makefile @@ -15,13 +15,12 @@ BUILD_DEPENDS= cmake:devel/cmake \ h3>=${PORTVERSION}:graphics/h3 \ - ninja:devel/ninja \ ${PYTHON_PKGNAMEPREFIX}scikit-build>=0:devel/py-scikit-build@${PY_FLAVOR} LIB_DEPENDS= libh3.so:graphics/h3 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} -USES= localbase:ldflags python:3.6+ +USES= localbase:ldflags ninja:build python:3.6+ USE_PYTHON= autoplist concurrent cython distutils CFLAGS+= -I${LOCALBASE}/include/h3 Index: japanese/mozc-server/Makefile =================================================================== --- japanese/mozc-server/Makefile +++ japanese/mozc-server/Makefile @@ -10,8 +10,7 @@ MAINTAINER= hrs@FreeBSD.org COMMENT?= Mozc Japanese Input Method, Server -BUILD_DEPENDS= ninja:devel/ninja \ - ${PYTHON_PKGNAMEPREFIX}gyp>=20200512:devel/py-gyp@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gyp>=20200512:devel/py-gyp@${PY_FLAVOR} EXTRACT_DEPENDS=${PYTHON_CMD}:${PYTHON_PORTSDIR} LIB_DEPENDS= libprotobuf.so:devel/protobuf \ libzinnia.so:japanese/zinnia @@ -26,8 +25,8 @@ GH_ACCOUNT= hrs-allbsd GH_TUPLE= hiroyuki-komatsu:japanese-usage-dictionary:e5b3425:udic -USES= compiler:c++11-lang pkgconfig gmake \ - tar:bzip2 python:3.5+,build shebangfix +USES= compiler:c++11-lang gmake ninja:build pkgconfig \ + python:3.5+,build shebangfix tar:bzip2 SHEBANG_FILES= src/build_mozc.py BUILD_WRKSRC= ${WRKSRC}/src Index: lang/hermes/Makefile =================================================================== --- lang/hermes/Makefile +++ lang/hermes/Makefile @@ -16,7 +16,7 @@ TEST_DEPENDS= googletest>0:devel/googletest \ zip:archivers/zip -USES= cmake compiler:c++11-lang python:test readline +USES= cmake compiler:c++11-lang python:build readline USE_LDCONFIG= yes USE_GITHUB= yes Index: lang/mono6.8/Makefile =================================================================== --- lang/mono6.8/Makefile +++ lang/mono6.8/Makefile @@ -80,7 +80,7 @@ NINJA_DESC= Use ninja to build wherever possible NINJA_CONFIGURE_ON= ninja -NINJA_BUILD_DEPENDS= ninja>0:devel/ninja +NINJA_USES= ninja:build NLS_DESC= NLS Localization Support NLS_CONFIGURE_OFF= --disable-nls Index: lang/rust-bootstrap/Makefile =================================================================== --- lang/rust-bootstrap/Makefile +++ lang/rust-bootstrap/Makefile @@ -31,7 +31,6 @@ BUILD_DEPENDS= cmake:devel/cmake \ gmake:devel/gmake \ - ninja:devel/ninja \ rust>=${PORTVERSION}:lang/rust FLAVORS= aarch64 amd64 armv6 armv7 i386 powerpc64_elfv1 powerpc64_elfv2 powerpc64le @@ -48,7 +47,7 @@ powerpc64_elfv2_PKGNAMEPREFIX= powerpc64-elfv2- powerpc64le_PKGNAMEPREFIX= powerpc64le- -USES= perl5 python:3.6+,build tar:xz +USES= ninja:build perl5 python:3.6+,build tar:xz .if ${FLAVOR} == powerpc64_elfv1 USE_GCC= 9:build .endif Index: lang/rust/Makefile =================================================================== --- lang/rust/Makefile +++ lang/rust/Makefile @@ -29,11 +29,10 @@ ONLY_FOR_ARCHS?= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON?= requires prebuilt bootstrap compiler -BUILD_DEPENDS= cmake:devel/cmake \ - ninja:devel/ninja +BUILD_DEPENDS= cmake:devel/cmake LIB_DEPENDS= libcurl.so:ftp/curl -USES= pkgconfig python:3.6+,build ssl tar:xz +USES= ninja:build pkgconfig python:3.6+,build ssl tar:xz MAKE_ENV= DESTDIR=${STAGEDIR} \ OPENSSL_DIR="${OPENSSLBASE}" \ Index: lang/swi-pl/Makefile =================================================================== --- lang/swi-pl/Makefile +++ lang/swi-pl/Makefile @@ -3,7 +3,7 @@ PORTNAME= swi-pl DISTVERSION= 8.2.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= http://www.swi-prolog.org/download/stable/src/ DISTNAME= swipl-${DISTVERSION} @@ -21,8 +21,8 @@ libossp-uuid.so:misc/ossp-uuid \ libyaml.so:textproc/libyaml -USES= compiler:c11 libedit cmake libarchive pathfix pkgconfig \ - shebangfix ssl +USES= cmake compiler:c11 libarchive libedit pathfix pkgconfig \ + readline shebangfix ssl USE_XORG= ice sm x11 xext xft xinerama xpm xt OPTIONS_DEFINE= DOCS TCMALLOC EXAMPLES XPCE GMP THREADED ODBC Index: math/ambit/Makefile =================================================================== --- math/ambit/Makefile +++ math/ambit/Makefile @@ -16,7 +16,7 @@ libopenblas.so:math/openblas \ libsz.so:science/szip -USES= cmake compiler:c++11-lang +USES= cmake compiler:c++11-lang python:build USE_GITHUB= yes GH_ACCOUNT= jturney USE_LDCONFIG= yes Index: math/flint2/Makefile =================================================================== --- math/flint2/Makefile +++ math/flint2/Makefile @@ -17,7 +17,7 @@ libmpfr.so:math/mpfr \ libopenblas.so:math/openblas -USES= cmake compiler:c++11-lang +USES= cmake compiler:c++11-lang python:build USE_GITHUB= yes GH_ACCOUNT= wbhart USE_LDCONFIG= yes Index: math/py-pdal/Makefile =================================================================== --- math/py-pdal/Makefile +++ math/py-pdal/Makefile @@ -14,13 +14,12 @@ BUILD_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ - ${LOCALBASE}/bin/cmake:devel/cmake \ - ${LOCALBASE}/bin/ninja:devel/ninja + cmake:devel/cmake LIB_DEPENDS= libpdal_base.so:math/pdal RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ ${PYNUMPY} -USES= compiler:c++11-lang python:3.6+ +USES= compiler:c++11-lang ninja:build python:3.6+ USE_PYTHON= autoplist cython distutils post-install: Index: math/sage/Makefile =================================================================== --- math/sage/Makefile +++ math/sage/Makefile @@ -143,7 +143,6 @@ pari-nftables>0:math/pari_nftables \ pari-seadata>0:math/pari_seadata\ QuadraticSieve:math/flintqs \ - ninja:devel/ninja \ gpatch:devel/patch \ rubiks>0:math/rubiks \ sympow:math/sympow \ @@ -339,9 +338,10 @@ yasm:devel/yasm \ pixz:archivers/pixz -USES= autoreconf blaslapack:openblas compiler:c++11-lib fortran \ - gettext gmake gnome iconv jpeg libtool localbase ncurses perl5 \ - pkgconfig python:3.7+ readline shebangfix sqlite tk xorg +USES= autoreconf blaslapack:openblas compiler:c++11-lib fortran \ + gettext gmake gnome iconv jpeg libtool localbase ncurses \ + ninja:build perl5 pkgconfig python:3.7+ readline shebangfix \ + sqlite tk xorg USE_TEX= latex:build pdftex:build tex:build USE_XORG= x11 xext xscrnsaver USE_GNOME= cairo glib20 pango Index: multimedia/handbrake/Makefile =================================================================== --- multimedia/handbrake/Makefile +++ multimedia/handbrake/Makefile @@ -38,8 +38,8 @@ libopus.so:audio/opus \ libjansson.so:devel/jansson -USES= autoreconf:build compiler:c11 gmake iconv \ - libtool:build localbase:ldflags pkgconfig python:3.6+,build +USES= autoreconf:build compiler:c11 gmake iconv libtool:build \ + localbase:ldflags ninja:build pkgconfig python:3.6+,build CONTRIB_FILES= fdk-aac-2.0.1.tar.gz \ ffmpeg-4.2.3.tar.bz2 \ Index: science/libecpint/Makefile =================================================================== --- science/libecpint/Makefile +++ science/libecpint/Makefile @@ -13,7 +13,7 @@ LIB_DEPENDS= libpugixml.so:textproc/pugixml -USES= cmake compiler:c++11-lang +USES= cmake compiler:c++11-lang python:build USE_LDCONFIG= yes USE_GITHUB= yes Index: sysutils/fluxengine/Makefile =================================================================== --- sysutils/fluxengine/Makefile +++ sysutils/fluxengine/Makefile @@ -10,9 +10,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING.md -BUILD_DEPENDS= ninja:devel/ninja - -USES= pkgconfig gmake compiler:gcc-c++11-lib sqlite +USES= compiler:gcc-c++11-lib gmake ninja:build pkgconfig sqlite USE_GITHUB= yes GH_ACCOUNT= davidgiven Index: sysutils/fluxengine/files/patch-mkninja.sh =================================================================== --- /dev/null +++ sysutils/fluxengine/files/patch-mkninja.sh @@ -0,0 +1,17 @@ +Fix ninja generator + +devel/samurai does not like the extra whitespace: + +ninja: .obj/build.ninja:6:5: expected name + +--- mkninja.sh.orig 2021-03-31 12:47:37 UTC ++++ mkninja.sh +@@ -7,7 +7,7 @@ rule cxx + description = CXX \$in + depfile = \$out.d + deps = gcc +- ++ + rule library + command = $AR \$out \$in + description = AR \$in Index: textproc/uncrustify/Makefile =================================================================== --- textproc/uncrustify/Makefile +++ textproc/uncrustify/Makefile @@ -14,7 +14,7 @@ USE_GITHUB= yes -USES= cmake compiler:c++11-lang +USES= cmake compiler:c++11-lang python:build CMAKE_ARGS= -DNoGitVersionString:BOOL=TRUE TEST_TARGET= test Index: www/qt5-webengine/Makefile =================================================================== --- www/qt5-webengine/Makefile +++ www/qt5-webengine/Makefile @@ -26,7 +26,6 @@ COMMENT= Qt 5 library to render web content BUILD_DEPENDS= bison:devel/bison \ - ninja:devel/ninja \ yasm:devel/yasm \ ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \ ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat @@ -74,7 +73,7 @@ # We pass `norecursive' to USES=qmake because src/plugins/plugins.pro checks # whether webenginewidgets is available, which fails when qmake processes all # .pro files at once. -USES= gl gnome gperf jpeg python:2.7,build pkgconfig \ +USES= gl gnome gperf jpeg ninja:build pkgconfig python:2.7,build \ qmake:norecursive,outsource qt-dist:5,webengine shebangfix xorg USE_GL= gl USE_GNOME= glib20 libxml2 libxslt Index: x11-fonts/font-manager/Makefile =================================================================== --- x11-fonts/font-manager/Makefile +++ x11-fonts/font-manager/Makefile @@ -13,7 +13,6 @@ BUILD_DEPENDS= cmake:devel/cmake \ itstool:textproc/itstool \ - ninja:devel/ninja \ valac:lang/vala \ yelp-build:textproc/yelp-tools LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ Index: x11-fonts/font-manager/files/patch-lib_common_meson.build =================================================================== --- /dev/null +++ x11-fonts/font-manager/files/patch-lib_common_meson.build @@ -0,0 +1,23 @@ +From 3ad5cc842b90614d8c06d4a4a7428b906a982aea Mon Sep 17 00:00:00 2001 +From: Jerry Casiano +Date: Wed, 24 Mar 2021 17:47:23 -0400 +Subject: [PATCH] - Proper fix for Issue #208 + +--- lib/common/meson.build.orig 2021-03-22 22:35:30 UTC ++++ lib/common/meson.build +@@ -71,7 +71,7 @@ common_vapi = gnome.generate_vapi('font-manager-common + sources: [ + common_gir[0], + unicode_gir[0], +- 'font-manager-common.vala' ++ 'font-manager-common.vala', + ], + vapi_dirs: [ + meson.current_build_dir(), +@@ -87,5 +87,5 @@ common_vapi = gnome.generate_vapi('font-manager-common + 'json-glib-1.0', + 'libxml-2.0', + 'sqlite3', +- 'Unicode-@0@'.format(meson.project_version()) ++ unicode_vapi + ]) Index: x11-wm/mutter/files/patch-clutter_clutter_meson.build =================================================================== --- /dev/null +++ x11-wm/mutter/files/patch-clutter_clutter_meson.build @@ -0,0 +1,25 @@ +This ensures that libmutter_cogl_path_dep is built before other targets, +fixing the build with many buildjobs + +Obtained from: Aports + +--- clutter/clutter/meson.build.orig 2020-09-07 19:18:23 UTC ++++ clutter/clutter/meson.build +@@ -424,7 +424,7 @@ libmutter_clutter = shared_library(libmutter_clutter_n + soversion: 0, + c_args: clutter_c_args, + include_directories: clutter_includes, +- dependencies: [clutter_deps], ++ dependencies: [clutter_deps,libmutter_cogl_path_dep], + gnu_symbol_visibility: 'hidden', + link_with: [ + libmutter_cogl, +@@ -436,7 +436,7 @@ libmutter_clutter = shared_library(libmutter_clutter_n + install: true, + ) + libmutter_clutter_dep = declare_dependency( +- sources: [clutter_enum_types[1]], ++ sources: [clutter_enum_types[1],libmutter_cogl_path_enum_types[1]], + link_with: libmutter_clutter, + dependencies: clutter_deps, + ) Index: x11/brisk-menu/files/patch-src_meson.build =================================================================== --- /dev/null +++ x11/brisk-menu/files/patch-src_meson.build @@ -0,0 +1,23 @@ +Unbreak parallel build with devel/samurai + +It can be reliably triggered with samurai but it can probably also +be triggered with ninja eventually. + +--- src/meson.build.orig 2021-04-05 04:30:02 UTC ++++ src/meson.build +@@ -13,6 +13,7 @@ libresources = static_library( + + link_libresources = declare_dependency( + link_with: libresources, ++ sources: brisk_resources, + include_directories: [ + data_include, + ], +@@ -38,6 +39,7 @@ libsession_stub = static_library( + # Allow linking to the stub + link_libsession_stub = declare_dependency( + link_with: libsession_stub, ++ sources: [libsaver_glue, libsession_glue], + dependencies: [ + dep_gio_unix, + ],