From owner-svn-ports-all@freebsd.org Fri Dec 20 13:03:25 2019 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 D60EF1D95FA; Fri, 20 Dec 2019 13:03:25 +0000 (UTC) (envelope-from jhale@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) server-signature RSA-PSS (4096 bits) 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 47fTSs5Mw2z3x9q; Fri, 20 Dec 2019 13:03:25 +0000 (UTC) (envelope-from jhale@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 B3B8D27282; Fri, 20 Dec 2019 13:03:25 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBKD3Pfb001375; Fri, 20 Dec 2019 13:03:25 GMT (envelope-from jhale@FreeBSD.org) Received: (from jhale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBKD3Prl001374; Fri, 20 Dec 2019 13:03:25 GMT (envelope-from jhale@FreeBSD.org) Message-Id: <201912201303.xBKD3Prl001374@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhale set sender to jhale@FreeBSD.org using -f From: "Jason E. Hale" Date: Fri, 20 Dec 2019 13:03:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520503 - head/sysutils/libcdio/files X-SVN-Group: ports-head X-SVN-Commit-Author: jhale X-SVN-Commit-Paths: head/sysutils/libcdio/files X-SVN-Commit-Revision: 520503 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.29 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: Fri, 20 Dec 2019 13:03:25 -0000 Author: jhale Date: Fri Dec 20 13:03:25 2019 New Revision: 520503 URL: https://svnweb.freebsd.org/changeset/ports/520503 Log: sysutils/libcdio: Fix build with GCC versions older than 4.6.0 which do not allow "#pragma GCC diagnostic" to be used inside of functions PR: 242693 Reported by: canardo Added: head/sysutils/libcdio/files/patch-lib_iso9660_iso9660.c (contents, props changed) Added: head/sysutils/libcdio/files/patch-lib_iso9660_iso9660.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/libcdio/files/patch-lib_iso9660_iso9660.c Fri Dec 20 13:03:25 2019 (r520503) @@ -0,0 +1,26 @@ +Fix build on GCC older than 4.6.0 which does not allow #pragma GCC diagnostic +inside of functions. + +PR: 242693 + +--- lib/iso9660/iso9660.c.orig 2019-04-13 15:15:15 UTC ++++ lib/iso9660/iso9660.c +@@ -373,12 +373,18 @@ iso9660_set_ltime_with_timezone(const struct tm *p_tm, + + if (!p_tm) return; + ++#if defined(__GNUC__) && __GNUC__ >= 5 ++#pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wformat-truncation" ++#endif + snprintf(_pvd_date, 17, + "%4.4d%2.2d%2.2d" "%2.2d%2.2d%2.2d" "%2.2d", + p_tm->tm_year + 1900, p_tm->tm_mon + 1, p_tm->tm_mday, + p_tm->tm_hour, p_tm->tm_min, p_tm->tm_sec, + 0 /* 1/100 secs */ ); ++#if defined(__GNUC__) && __GNUC__ >= 5 ++#pragma GCC diagnostic pop ++#endif + + /* Set time zone in 15-minute interval encoding. */ + pvd_date->lt_gmtoff -= (time_zone / 15);