From owner-svn-ports-all@freebsd.org Thu Sep 24 16:20:01 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8C2CD3FBE96; Thu, 24 Sep 2020 16:20:01 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4By0cx39PKz4d5W; Thu, 24 Sep 2020 16:20:01 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4E409244F2; Thu, 24 Sep 2020 16:20:01 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08OGK10U025884; Thu, 24 Sep 2020 16:20:01 GMT (envelope-from girgen@FreeBSD.org) Received: (from girgen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08OGK0Kn025881; Thu, 24 Sep 2020 16:20:00 GMT (envelope-from girgen@FreeBSD.org) Message-Id: <202009241620.08OGK0Kn025881@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: girgen set sender to girgen@FreeBSD.org using -f From: Palle Girgensohn Date: Thu, 24 Sep 2020 16:20:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r549926 - in head/sysutils/fluent-bit: . files X-SVN-Group: ports-head X-SVN-Commit-Author: girgen X-SVN-Commit-Paths: in head/sysutils/fluent-bit: . files X-SVN-Commit-Revision: 549926 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 16:20:01 -0000 Author: girgen Date: Thu Sep 24 16:20:00 2020 New Revision: 549926 URL: https://svnweb.freebsd.org/changeset/ports/549926 Log: Add upstreams patch to fix build problem Update to 1.5.6 Release notes: https://fluentbit.io/announcements/v1.5.6/ Added: head/sysutils/fluent-bit/files/patch-src__flb_strptime_c (contents, props changed) Modified: head/sysutils/fluent-bit/Makefile head/sysutils/fluent-bit/distinfo Modified: head/sysutils/fluent-bit/Makefile ============================================================================== --- head/sysutils/fluent-bit/Makefile Thu Sep 24 16:08:34 2020 (r549925) +++ head/sysutils/fluent-bit/Makefile Thu Sep 24 16:20:00 2020 (r549926) @@ -3,7 +3,7 @@ PORTNAME= fluent-bit DISTVERSIONPREFIX= v -DISTVERSION= 1.5.2 +DISTVERSION= 1.5.6 CATEGORIES= sysutils MAINTAINER= girgen@FreeBSD.org Modified: head/sysutils/fluent-bit/distinfo ============================================================================== --- head/sysutils/fluent-bit/distinfo Thu Sep 24 16:08:34 2020 (r549925) +++ head/sysutils/fluent-bit/distinfo Thu Sep 24 16:20:00 2020 (r549926) @@ -1,3 +1,3 @@ -TIMESTAMP = 1596438927 -SHA256 (fluent-fluent-bit-v1.5.2_GH0.tar.gz) = d9dd4fe94116533cd23fc5d2e505408f687c1eb1b4c233b4f9413ff6b87d53f3 -SIZE (fluent-fluent-bit-v1.5.2_GH0.tar.gz) = 12864447 +TIMESTAMP = 1600085362 +SHA256 (fluent-fluent-bit-v1.5.6_GH0.tar.gz) = a33419f9828183389a5a6ab1f1912dd8c24e768cad01525d85f825107023e2dc +SIZE (fluent-fluent-bit-v1.5.6_GH0.tar.gz) = 12873394 Added: head/sysutils/fluent-bit/files/patch-src__flb_strptime_c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fluent-bit/files/patch-src__flb_strptime_c Thu Sep 24 16:20:00 2020 (r549926) @@ -0,0 +1,46 @@ +commit bee7feb5849d8ede5e108c9c859bd4f01f2cc9be +Author: Fujimoto Seiji +Date: Thu Sep 24 23:22:39 2020 +0900 + + strptime: Add a fallback macro for `timezone` (#2493) + + According to the UNIX standard: + + The external variable timezone shall be set to the difference, + in seconds, between Coordinated Universal Time (UTC) and local + standard time + + FreeBSD is incompatible with this standard. In particular, since it + exposes a function symbol `char* timezone(int, int)`, expressions + like `-(timezone)` causes a compile error. + + Fix it by adding a compat macro for FreeBSD. + + Signed-off-by: Fujimoto Seiji + +diff --git a/src/flb_strptime.c b/src/flb_strptime.c +index 2e7f170d..390f558a 100644 +--- src/flb_strptime.c ++++ src/flb_strptime.c +@@ -116,6 +116,21 @@ static char *_flb_strptime(const char *, const char *, struct tm *, int); + static const u_char *_find_string(const u_char *, int *, const char * const *, + const char * const *, int); + ++/* ++ * FreeBSD does not support `timezone` in time.h. ++ * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=24590 ++ */ ++#ifdef __FreeBSD__ ++int flb_timezone(void) ++{ ++ struct tm tm; ++ time_t t = 0; ++ tzset(); ++ localtime_r(&t, &tm); ++ return -(tm.tm_gmtoff); ++} ++#define timezone (flb_timezone()) ++#endif + + char * + flb_strptime(const char *buf, const char *fmt, struct tm *tm)