Here is an update to dtc 1.6.1.
Index: Makefile =================================================================== RCS file: /home/cvs/ports/devel/dtc/Makefile,v retrieving revision 1.18 diff -u -p -u -p -r1.18 Makefile --- Makefile 30 Jan 2021 13:07:20 -0000 1.18 +++ Makefile 28 Aug 2021 04:41:18 -0000 @@ -2,7 +2,7 @@ COMMENT= Device Tree Compiler -DISTNAME= dtc-1.6.0 +DISTNAME= dtc-1.6.1 CATEGORIES= sysutils devel MASTER_SITES= https://www.kernel.org/pub/software/utils/dtc/ EXTRACT_SUFX= .tar.xz Index: distinfo =================================================================== RCS file: /home/cvs/ports/devel/dtc/distinfo,v retrieving revision 1.8 diff -u -p -u -p -r1.8 distinfo --- distinfo 30 Jan 2021 13:07:20 -0000 1.8 +++ distinfo 28 Aug 2021 04:41:22 -0000 @@ -1,2 +1,2 @@ -SHA256 (dtc-1.6.0.tar.xz) = EFA7AhfhsHkz4p6NNHoAAVskMb6l9Zr+C+068wNAyC0= -SIZE (dtc-1.6.0.tar.xz) = 158584 +SHA256 (dtc-1.6.1.tar.xz) = Zc7FKYk2WaSaiXQLs2L1B6O5T8jNeR52qNaitvMgNHM= +SIZE (dtc-1.6.1.tar.xz) = 162276 Index: patches/patch-Makefile =================================================================== RCS file: /home/cvs/ports/devel/dtc/patches/patch-Makefile,v retrieving revision 1.9 diff -u -p -u -p -r1.9 patch-Makefile --- patches/patch-Makefile 30 Jan 2021 13:07:21 -0000 1.9 +++ patches/patch-Makefile 28 Aug 2021 04:43:31 -0000 @@ -16,7 +16,7 @@ Index: Makefile BISON = bison LEX = flex -@@ -72,7 +72,7 @@ SHAREDLIB_LDFLAGS = -shared -Wl,--version-script=$(LIB +@@ -73,7 +73,7 @@ SHAREDLIB_LDFLAGS = -shared -Wl,--version-script=$(LIB else SHAREDLIB_EXT = so SHAREDLIB_CFLAGS = -fPIC @@ -25,7 +25,7 @@ Index: Makefile endif # -@@ -157,7 +157,7 @@ all: $(BIN) libfdt +@@ -158,7 +158,7 @@ all: $(BIN) libfdt check_python_deps = \ if $(PKG_CONFIG) --cflags $(PYTHON) >/dev/null 2>&1; then \ if which swig >/dev/null 2>&1; then \ @@ -34,7 +34,7 @@ Index: Makefile fi; \ fi; \ if [ "$${can_build}" = "yes" ]; then \ -@@ -204,9 +204,8 @@ $(LIBFDT_archive): $(addprefix $(LIBFDT_dir)/,$(LIBFDT +@@ -207,9 +207,8 @@ $(LIBFDT_archive): $(addprefix $(LIBFDT_dir)/,$(LIBFDT $(LIBFDT_lib): $(addprefix $(LIBFDT_dir)/,$(LIBFDT_OBJS)) $(LIBFDT_version) @$(VECHO) LD $@ @@ -45,7 +45,7 @@ Index: Makefile ifneq ($(DEPTARGETS),) -include $(LIBFDT_OBJS:%.o=$(LIBFDT_dir)/%.d) -@@ -227,8 +226,6 @@ install-lib: all +@@ -230,8 +229,6 @@ install-lib: all @$(VECHO) INSTALL-LIB $(INSTALL) -d $(DESTDIR)$(LIBDIR) $(INSTALL_LIB) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR) Index: patches/patch-util_h =================================================================== RCS file: patches/patch-util_h diff -N patches/patch-util_h --- patches/patch-util_h 6 Feb 2021 10:04:28 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-util_h,v 1.1 2021/02/06 10:04:28 jsg Exp $ - -gnu_printf requires gcc >= 4.4.0 - -Index: util.h ---- util.h.orig -+++ util.h -@@ -12,10 +12,10 @@ - */ - - #ifdef __GNUC__ --#ifdef __clang__ --#define PRINTF(i, j) __attribute__((format (printf, i, j))) --#else -+#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) - #define PRINTF(i, j) __attribute__((format (gnu_printf, i, j))) -+#else -+#define PRINTF(i, j) __attribute__((format (printf, i, j))) - #endif - #define NORETURN __attribute__((noreturn)) - #else