From owner-svn-ports-head@freebsd.org Mon Nov 6 14:24:57 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9A42E5F68F; Mon, 6 Nov 2017 14:24:57 +0000 (UTC) (envelope-from mat@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 mx1.freebsd.org (Postfix) with ESMTPS id 83F3F711BC; Mon, 6 Nov 2017 14:24:57 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA6EOuHT011345; Mon, 6 Nov 2017 14:24:56 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA6EOuQS011344; Mon, 6 Nov 2017 14:24:56 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201711061424.vA6EOuQS011344@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 6 Nov 2017 14:24:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453621 - head/net-mgmt/nagios-plugins/files X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/net-mgmt/nagios-plugins/files X-SVN-Commit-Revision: 453621 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.23 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: Mon, 06 Nov 2017 14:24:57 -0000 Author: mat Date: Mon Nov 6 14:24:56 2017 New Revision: 453621 URL: https://svnweb.freebsd.org/changeset/ports/453621 Log: Fix build with MariaDB 10.2. PR: 223387 Submitted by: brnrd Reported by: fbsd98816551 avksrv org Sponsored by: Absolight Added: head/net-mgmt/nagios-plugins/files/patch-plugins_common.h (contents, props changed) Added: head/net-mgmt/nagios-plugins/files/patch-plugins_common.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/nagios-plugins/files/patch-plugins_common.h Mon Nov 6 14:24:56 2017 (r453621) @@ -0,0 +1,24 @@ +From 930ede8378245eb6bd31eaf1d9103f027df0f7a0 Mon Sep 17 00:00:00 2001 +From: Bernard Spil +Date: Sun, 5 Nov 2017 10:43:56 +0100 +Subject: [PATCH] plugins/common.h: Set default MySQL port + +As of MariaDB 10.2 the headers for client no longer set the +default MySQL port. Patch fixes this for any version of MariaDB +or MySQL into the future. + +See also: https://bugs.freebsd.org/223387 +--- plugins/common.h.orig 2017-01-19 16:01:31 UTC ++++ plugins/common.h +@@ -168,6 +168,11 @@ + # endif + #endif + ++/* MariaDB 10.2 client does not set MYSQL_PORT */ ++#ifndef MYSQL_PORT ++# define MYSQL_PORT 3306 ++#endif ++ + /* + * + * Standard Values