Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2021 14:50:01 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r563891 - head/graphics/libgphoto2
Message-ID:  <202102031450.113Eo1x2007988@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Feb  3 14:50:00 2021
New Revision: 563891
URL: https://svnweb.freebsd.org/changeset/ports/563891

Log:
  graphics/libgphoto2: fix build on GCC architectures
  
  Use C11 compiler:
  checking for libltdl flags... set explicitly: -I/usr/local/include -L/usr/local/lib -lltdl
  
  Switch to C99:
  docupen/calibration.c:31:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     31 |  for (unsigned int i = 0; i < sizeof(struct lut); i++) {
        |  ^~~

Modified:
  head/graphics/libgphoto2/Makefile

Modified: head/graphics/libgphoto2/Makefile
==============================================================================
--- head/graphics/libgphoto2/Makefile	Wed Feb  3 14:34:50 2021	(r563890)
+++ head/graphics/libgphoto2/Makefile	Wed Feb  3 14:50:00 2021	(r563891)
@@ -15,8 +15,9 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libltdl.so:devel/libltdl \
 		libcurl.so:ftp/curl
 
-USES=		gmake gnome iconv libtool localbase pathfix pkgconfig tar:bzip2
-USE_CSTD=	gnu89
+USES=		compiler:c11 gmake gnome iconv libtool localbase pathfix \
+		pkgconfig tar:bzip2
+USE_CSTD=	gnu99
 USE_GNOME=	libxml2
 
 GNU_CONFIGURE=	yes



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102031450.113Eo1x2007988>