Remove obsolete USE_SYSTRACE patch

OK sthen@
This commit is contained in:
rsadowski 2021-05-18 17:37:01 +00:00
parent 3e24629254
commit 0ad4dc7182
2 changed files with 2 additions and 24 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.194 2021/05/09 14:46:15 rsadowski Exp $
# $OpenBSD: Makefile,v 1.195 2021/05/18 17:37:01 rsadowski Exp $
DPB_PROPERTIES = parallel
@ -8,6 +8,7 @@ VER = 3.20.2
EPOCH = 0
DISTNAME = cmake-${VER}
CATEGORIES = devel
REVISION = 0
HOMEPAGE = https://www.cmake.org/

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-Source_kwsys_SystemTools_cxx,v 1.26 2020/12/30 07:17:34 rsadowski Exp $
Don't spam systrace by attempting to create dirs which already exist
Index: Source/kwsys/SystemTools.cxx
--- Source/kwsys/SystemTools.cxx.orig
+++ Source/kwsys/SystemTools.cxx
@@ -277,12 +277,14 @@ inline void Realpath(const std::string& path, std::str
}
#else
# include <sys/types.h>
+# include <sys/stat.h>
# include <fcntl.h>
# include <unistd.h>
inline int Mkdir(const std::string& dir, const mode_t* mode)
{
- return mkdir(dir.c_str(), mode ? *mode : 00777);
+ struct stat sb;
+ return stat(dir.c_str(), &sb) && mkdir(dir.c_str(), 00777);
}
inline int Rmdir(const std::string& dir)
{