NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/45343: build fails with MKBSDTAR=yes
>Number: 45343
>Category: bin
>Synopsis: build fails with MKBSDTAR=yes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 08 20:45:00 +0000 2011
>Originator: Pierre Allegraud
>Release: CURRENT
>Organization:
>Environment:
>Description:
With the new gcc and -Wformat flag, external/bsd/libarchive/bin/cpio and
external/bsd/libarchive/bin/tar (used with MKBSDTAR=yes environment) don't
compile.
>How-To-Repeat:
>Fix:
I m using this patch:
Index: external/bsd/libarchive/bin/cpio/Makefile
===================================================================
--- external/bsd/libarchive/bin/cpio/Makefile
+++ external/bsd/libarchive/bin/cpio/Makefile
@@ -4,14 +4,16 @@
SRCS= cmdline.c cpio.c
.include <bsd.init.mk>
.PATH: ${LIBARCHIVEDIR}/cpio
+
+COPTS.cpio.c+= -Wno-format-nonliteral
CLEANFILES+= cpio.1
cpio.1: ${LIBARCHIVEDIR}/cpio/bsdcpio.1
${TOOL_CAT} ${LIBARCHIVEDIR}/cpio/bsdcpio.1 > $@
SYMLINKS+=${BINDIR}/cpio /usr/bin/cpio
.include <bsd.prog.mk>
Index: external/bsd/libarchive/bin/tar/Makefile
===================================================================
--- external/bsd/libarchive/bin/tar/Makefile
+++ external/bsd/libarchive/bin/tar/Makefile
@@ -4,14 +4,16 @@
SRCS= bsdtar.c cmdline.c getdate.c read.c subst.c tree.c util.c write.c
.include <bsd.init.mk>
.PATH: ${LIBARCHIVEDIR}/tar
+
+COPTS.read.c+= -Wno-format-nonliteral
CLEANFILES+= tar.1
tar.1: ${LIBARCHIVEDIR}/tar/bsdtar.1
${TOOL_CAT} ${LIBARCHIVEDIR}/tar/bsdtar.1 > $@
SYMLINKS+=${BINDIR}/tar /usr/bin/tar
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index