From owner-svn-ports-head@freebsd.org Sat Aug 29 06:57:02 2020 Return-Path: Delivered-To: svn-ports-head@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 B75073CF99C; Sat, 29 Aug 2020 06:57:02 +0000 (UTC) (envelope-from tcberner@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 4BdnML4Nd4z42vr; Sat, 29 Aug 2020 06:57:02 +0000 (UTC) (envelope-from tcberner@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 79D8E21BE3; Sat, 29 Aug 2020 06:57:02 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07T6v2HT099789; Sat, 29 Aug 2020 06:57:02 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07T6v2nH099788; Sat, 29 Aug 2020 06:57:02 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <202008290657.07T6v2nH099788@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 29 Aug 2020 06:57:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546874 - head/security/fprintd/files X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: head/security/fprintd/files X-SVN-Commit-Revision: 546874 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2020 06:57:02 -0000 Author: tcberner Date: Sat Aug 29 06:57:02 2020 New Revision: 546874 URL: https://svnweb.freebsd.org/changeset/ports/546874 Log: security/fprintd: fix build on recent current. Obtained from: https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/0c6bab8640b3586ac8e1b8c35d87aa49b79719d0.patch Added: head/security/fprintd/files/ head/security/fprintd/files/patch-git_06bab8 (contents, props changed) Added: head/security/fprintd/files/patch-git_06bab8 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/fprintd/files/patch-git_06bab8 Sat Aug 29 06:57:02 2020 (r546874) @@ -0,0 +1,46 @@ +Obtained from: + https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/0c6bab8640b3586ac8e1b8c35d87aa49b79719d0.patch + +From 0c6bab8640b3586ac8e1b8c35d87aa49b79719d0 Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Thu, 23 Jan 2020 17:37:33 +0100 +Subject: [PATCH] main: Fix redeclaration linking error + +Fix linking error as the "store" global variable gets redeclared in +each C file that includes the header. Move the actual declaration to +main.c. + +Fixes: + /usr/bin/ld: ./.libs/libfprintd.a(device.o):/builds/libfprint/fprintd/src/storage.h:51: multiple definition of `store'; main.o:/builds/libfprint/fprintd/src/storage.h:51: first defined here +--- + src/main.c | 2 ++ + src/storage.h | 2 +- + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/main.c b/src/main.c +index 8f7e19c..ce1a47d 100644 +--- src/main.c ++++ src/main.c +@@ -33,6 +33,8 @@ + #include "storage.h" + #include "file_storage.h" + ++fp_storage store; ++ + extern DBusGConnection *fprintd_dbus_conn; + static gboolean no_timeout = FALSE; + static gboolean g_fatal_warnings = FALSE; +diff --git a/src/storage.h b/src/storage.h +index d908c59..28ed2b6 100644 +--- src/storage.h ++++ src/storage.h +@@ -46,4 +46,4 @@ struct storage { + typedef struct storage fp_storage; + + /* The currently setup store */ +-fp_storage store; ++extern fp_storage store; +-- +GitLab + +