Don't try to create directories which already exist, this significantly
cleans up the console output if you set USE_SYSTRACE. ok dcoppa@
This commit is contained in:
parent
7174730126
commit
11ebbb999f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.39 2011/04/14 15:55:19 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.40 2011/04/16 15:18:13 sthen Exp $
|
||||
|
||||
VMEM_WARNING = Yes
|
||||
|
||||
@ -6,6 +6,7 @@ HOMEPAGE = http://www.cmake.org/
|
||||
CATEGORIES = devel
|
||||
COMMENT = portable build system
|
||||
DISTNAME = cmake-2.8.4
|
||||
REVISION = 0
|
||||
MASTER_SITES = ${HOMEPAGE}files/v2.8/
|
||||
|
||||
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
||||
|
21
devel/cmake/patches/patch-Source_kwsys_SystemTools_cxx
Normal file
21
devel/cmake/patches/patch-Source_kwsys_SystemTools_cxx
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-Source_kwsys_SystemTools_cxx,v 1.9 2011/04/16 15:18:13 sthen Exp $
|
||||
|
||||
Don't spam systrace by attempting to create dirs which already exist.
|
||||
|
||||
--- Source/kwsys/SystemTools.cxx.orig Sat Apr 16 12:20:19 2011
|
||||
+++ Source/kwsys/SystemTools.cxx Sat Apr 16 12:31:43 2011
|
||||
@@ -226,11 +226,13 @@ inline void Realpath(const char *path, kwsys_stl::stri
|
||||
}
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
+#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
inline int Mkdir(const char* dir)
|
||||
{
|
||||
- return mkdir(dir, 00777);
|
||||
+ struct stat sb;
|
||||
+ return stat(dir, &sb) && mkdir(dir, 00777);
|
||||
}
|
||||
inline int Rmdir(const char* dir)
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user