Module Name:    src
Committed By:   tron
Date:           Mon Jul 18 17:15:52 UTC 2011

Modified Files:
        src/usr.sbin/makefs: Makefile makefs.c makefs.h

Log Message:
Don't include v7fs support into tool version of "makefs" because it
breaks the build.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/makefs/Makefile
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/makefs/makefs.c
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/makefs/makefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makefs/Makefile
diff -u src/usr.sbin/makefs/Makefile:1.26 src/usr.sbin/makefs/Makefile:1.27
--- src/usr.sbin/makefs/Makefile:1.26	Mon Jul 18 08:58:38 2011
+++ src/usr.sbin/makefs/Makefile	Mon Jul 18 17:15:51 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.26 2011/07/18 08:58:38 uch Exp $
+#	$NetBSD: Makefile,v 1.27 2011/07/18 17:15:51 tron Exp $
 #
 
 WARNS?=	3	# XXX -Wsign-compare
@@ -6,7 +6,7 @@
 .include <bsd.own.mk>
 
 PROG=	makefs
-SRCS=	cd9660.c ffs.c v7fs.c \
+SRCS=	cd9660.c ffs.c \
 	getid.c \
 	makefs.c misc.c \
 	pack_dev.c \
@@ -22,9 +22,11 @@
 
 .include "${.CURDIR}/cd9660/Makefile.inc"
 .include "${.CURDIR}/ffs/Makefile.inc"
+
+.if !defined(HOSTPROG)
+SRCS+=	v7fs.c
 .include "${.CURDIR}/v7fs/Makefile.inc"
 
-.if (${HOSTPROG:U} == "")
 DPADD+= ${LIBUTIL}
 LDADD+= -lutil
 .endif

Index: src/usr.sbin/makefs/makefs.c
diff -u src/usr.sbin/makefs/makefs.c:1.27 src/usr.sbin/makefs/makefs.c:1.28
--- src/usr.sbin/makefs/makefs.c:1.27	Mon Jul 18 08:58:38 2011
+++ src/usr.sbin/makefs/makefs.c	Mon Jul 18 17:15:52 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: makefs.c,v 1.27 2011/07/18 08:58:38 uch Exp $	*/
+/*	$NetBSD: makefs.c,v 1.28 2011/07/18 17:15:52 tron Exp $	*/
 
 /*
  * Copyright (c) 2001-2003 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: makefs.c,v 1.27 2011/07/18 08:58:38 uch Exp $");
+__RCSID("$NetBSD: makefs.c,v 1.28 2011/07/18 17:15:52 tron Exp $");
 #endif	/* !__lint */
 
 #include <assert.h>
@@ -73,8 +73,10 @@
 	{ "ffs", ffs_prep_opts,	ffs_parse_opts,	ffs_cleanup_opts, ffs_makefs },
 	{ "cd9660", cd9660_prep_opts, cd9660_parse_opts, cd9660_cleanup_opts,
 	  cd9660_makefs},
+#ifdef USE_V7FS
 	{ "v7fs", v7fs_prep_opts, v7fs_parse_opts, v7fs_cleanup_opts,
 	  v7fs_makefs },
+#endif
 	{ .type = NULL	},
 };
 

Index: src/usr.sbin/makefs/makefs.h
diff -u src/usr.sbin/makefs/makefs.h:1.21 src/usr.sbin/makefs/makefs.h:1.22
--- src/usr.sbin/makefs/makefs.h:1.21	Mon Jul 18 08:58:38 2011
+++ src/usr.sbin/makefs/makefs.h	Mon Jul 18 17:15:52 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: makefs.h,v 1.21 2011/07/18 08:58:38 uch Exp $	*/
+/*	$NetBSD: makefs.h,v 1.22 2011/07/18 17:15:52 tron Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -170,10 +170,12 @@
 void		cd9660_cleanup_opts(fsinfo_t *);
 void		cd9660_makefs(const char *, const char *, fsnode *, fsinfo_t *);
 
+#ifdef USE_V7FS
 void		v7fs_prep_opts(fsinfo_t *);
 int		v7fs_parse_opts(const char *, fsinfo_t *);
 void		v7fs_cleanup_opts(fsinfo_t *);
 void		v7fs_makefs(const char *, const char *, fsnode *, fsinfo_t *);
+#endif
 
 extern	u_int		debug;
 extern	struct timespec	start_time;

Reply via email to