Thu Nov 23 11:15:13 2023 UTC ()
libfilezilla: try requiring gcc 8

to fix
nvoker.cpp: In function 'fz::invoker_factory fz::get_invoker_factory(fz::event_loop&)':
invoker.cpp:28:54: error: 'loop' was not declared in this scope
  return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
                                                      ^~~~
invoker.cpp: In lambda function:
invoker.cpp:30:20: error: 'loop' is not captured
    handler.emplace(loop);
                    ^~~~
invoker.cpp:28:58: note: the lambda has no capture-default
  return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
                                                          ^
invoker.cpp:28:54: note: '<typeprefixerror>loop' declared here
  return [handler = std::optional<thread_invoker>(), &loop](std::function<void()> const& cb) mutable {
                                                      ^~~~
seen with gcc 7 on NetBSD 9.


(wiz)
diff -r1.54 -r1.55 pkgsrc/net/libfilezilla/Makefile

cvs diff -r1.54 -r1.55 pkgsrc/net/libfilezilla/Makefile (expand / switch to unified diff)

--- pkgsrc/net/libfilezilla/Makefile 2023/11/08 13:20:29 1.54
+++ pkgsrc/net/libfilezilla/Makefile 2023/11/23 11:15:13 1.55
@@ -1,30 +1,32 @@ @@ -1,30 +1,32 @@
1# $NetBSD: Makefile,v 1.54 2023/11/08 13:20:29 wiz Exp $ 1# $NetBSD: Makefile,v 1.55 2023/11/23 11:15:13 wiz Exp $
2 2
3DISTNAME= libfilezilla-0.45.0 3DISTNAME= libfilezilla-0.45.0
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= net 5CATEGORIES= net
6# some kind of direct-download disabling 6# some kind of direct-download disabling
7#MASTER_SITES= https://dl3.cdn.filezilla-project.org/libfilezilla/ 7#MASTER_SITES= https://dl3.cdn.filezilla-project.org/libfilezilla/
8EXTRACT_SUFX= .tar.xz 8EXTRACT_SUFX= .tar.xz
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://lib.filezilla-project.org/ 11HOMEPAGE= https://lib.filezilla-project.org/
12COMMENT= Library for building high-performing, platform-independent programs 12COMMENT= Library for building high-performing, platform-independent programs
13LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2
14 14
15GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
16USE_LIBTOOL= yes 16USE_LIBTOOL= yes
17USE_TOOLS+= gmake msgfmt pkg-config 17USE_TOOLS+= gmake msgfmt pkg-config
18USE_LANGUAGES= c c++ 18USE_LANGUAGES= c c++
19 19
20USE_CXX_FEATURES= c++17 20USE_CXX_FEATURES= c++17
 21# NetBSD 9's gcc 7 is not good enough
 22GCC_REQD+= 8
21 23
22PKGCONFIG_OVERRIDE+= lib/libfilezilla.pc.in 24PKGCONFIG_OVERRIDE+= lib/libfilezilla.pc.in
23 25
24BUILDLINK_API_DEPENDS.nettle+= nettle>=3.1 26BUILDLINK_API_DEPENDS.nettle+= nettle>=3.1
25.include "../../security/nettle/buildlink3.mk" 27.include "../../security/nettle/buildlink3.mk"
26BUILDLINK_API_DEPENDS.gnutls+= gnutls>=3.5.7 28BUILDLINK_API_DEPENDS.gnutls+= gnutls>=3.5.7
27.include "../../security/gnutls/buildlink3.mk" 29.include "../../security/gnutls/buildlink3.mk"
28.include "../../mk/pthread.buildlink3.mk" 30.include "../../mk/pthread.buildlink3.mk"
29.include "../../mk/atomic64.mk" 31.include "../../mk/atomic64.mk"
30.include "../../mk/bsd.pkg.mk" 32.include "../../mk/bsd.pkg.mk"