svn commit: r561672 - head/devel/libudev-devd

Piotr Kubaj pkubaj at FreeBSD.org
Fri Jan 15 20:49:27 UTC 2021


Author: pkubaj
Date: Fri Jan 15 20:49:26 2021
New Revision: 561672
URL: https://svnweb.freebsd.org/changeset/ports/561672

Log:
  devel/libudev-devd: fix build with gcc10
  
  Don't set -Werror:
  ../udev-device.c: In function 'udev_device_new_from_devnum':
  ../udev-device.c:93:2: error: 'strncpy' output may be truncated copying 31 bytes from a string of length 78 [-Werror=stringop-truncation]
     93 |  strncpy(devbuf, devpath + 1, 31);

Modified:
  head/devel/libudev-devd/Makefile

Modified: head/devel/libudev-devd/Makefile
==============================================================================
--- head/devel/libudev-devd/Makefile	Fri Jan 15 20:47:43 2021	(r561671)
+++ head/devel/libudev-devd/Makefile	Fri Jan 15 20:49:26 2021	(r561672)
@@ -19,6 +19,8 @@ GH_ACCOUNT=	FreeBSDDesktop
 USES=		compiler:c11 localbase meson
 USE_LDCONFIG=	yes
 
+CFLAGS+=	-Wno-error
+
 PLIST_FILES=	include/libudev.h \
 		lib/libudev.so \
 		lib/libudev.so.0 \


More information about the svn-ports-all mailing list