Date: Fri, 4 Jun 2010 07:49:21 GMT From: Erik Cederstrand <erik@cederstrand.dk> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/147461: Patch for tools/regression/fstest/Makefile Message-ID: <201006040749.o547nLI1099665@www.freebsd.org> Resent-Message-ID: <201006040750.o547o4xP031743@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 147461
>Category: misc
>Synopsis: Patch for tools/regression/fstest/Makefile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 04 07:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Erik Cederstrand
>Release: FreeBSD CURRENT
>Organization:
>Environment:
FreeBSD clangbsd.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r208730: Wed Jun 2 19:10:36 CEST 2010 erik@clangbsd.local:/usr/obj/usr/home/erik/freebsd/clang/src/sys/GENERIC amd64
>Description:
This is a patch for tools/regression/fstest/Makefile to rewrite it from gmake syntax to standard BSD syntax, so it can be run using just "make". It currently exits with syntax errors.
>How-To-Repeat:
cd src/tools/regression/fstest/Makefile
make
>Fix:
Apply patch or use gmake
Patch attached with submission follows:
Index: tools/regression/fstest/Makefile
===================================================================
--- tools/regression/fstest/Makefile (revision 208730)
+++ tools/regression/fstest/Makefile (working copy)
@@ -1,26 +1,23 @@
# $FreeBSD$
-OSTYPE=$(shell uname)
+OSTYPE!= uname
-ifeq "${OSTYPE}" "FreeBSD"
-CFLAGS += -D__OS_FreeBSD__
-CFLAGS += -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS -DHAS_FREEBSD_ACL
-endif
+.if ${OSTYPE} == "FreeBSD"
+CFLAGS+= -D__OS_FreeBSD__
+CFLAGS+= -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS -DHAS_FREEBSD_ACL
-ifeq "${OSTYPE}" "SunOS"
-CFLAGS += -D__OS_Solaris__
-CFLAGS += -DHAS_TRUNCATE64 -DHAS_STAT64
-endif
+.elif ${OSTYPE} == "SunOS"
+CFLAGS+= -D__OS_Solaris__
+CFLAGS+= -DHAS_TRUNCATE64 -DHAS_STAT64
-ifeq "${OSTYPE}" "Darwin"
-CFLAGS += -D__OS_Darwin__
-CFLAGS += -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS
-endif
+.elif ${OSTYPE} == "Darwin"
+CFLAGS+= -D__OS_Darwin__
+CFLAGS+= -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS
-ifeq "${OSTYPE}" "Linux"
-CFLAGS += -D__OS_Linux__
-CFLAGS += -D_GNU_SOURCE
-endif
+.elif ${OSTYPE} == "Linux"
+CFLAGS+= -D__OS_Linux__
+CFLAGS+= -D_GNU_SOURCE
+.endif
all: fstest
>Release-Note:
>Audit-Trail:
>Unformatted:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006040749.o547nLI1099665>
