svn commit: r520503 - head/sysutils/libcdio/files

Piotr Kubaj pkubaj at anongoth.pl
Fri Dec 20 13:12:17 UTC 2019


Such old versions won't be used anyway, because USES=compiler:c11 will make GCC9 to be used.

So this patch doesn't fix anything (although it probably also doesn't break anything).

On 19-12-20 13:03:25, Jason E. Hale wrote:
> 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 <canardo909 at gmx.com>
> 
> 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20191220/7cffd8c6/attachment.sig>


More information about the svn-ports-all mailing list