Here is an update to glog 0.6.0.

https://github.com/google/glog/releases/tag/v0.6.0
https://github.com/google/glog/releases/tag/v0.5.0


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/devel/glog/Makefile,v
retrieving revision 1.24
diff -u -p -u -p -r1.24 Makefile
--- Makefile    23 Feb 2023 12:38:31 -0000      1.24
+++ Makefile    10 Jun 2023 04:37:49 -0000
@@ -2,10 +2,9 @@ COMMENT =              C++ application-level logging
 
 GH_ACCOUNT =           google
 GH_PROJECT =           glog
-GH_TAGNAME =           v0.4.0
-REVISION =             3
+GH_TAGNAME =           v0.6.0
 
-SHARED_LIBS +=         glog 2.0 # 0.2.1
+SHARED_LIBS +=         glog 3.0 # 0.2.1
 
 CATEGORIES =           devel
 
@@ -14,7 +13,7 @@ PERMIT_PACKAGE =      Yes
 
 WANTLIB += ${COMPILER_LIBCXX} execinfo gflags m
 
-COMPILER =             base-clang ports-gcc base-gcc
+COMPILER =             base-clang ports-gcc
 
 MODULES =              devel/cmake
 
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/devel/glog/distinfo,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 distinfo
--- distinfo    26 Nov 2020 20:37:13 -0000      1.6
+++ distinfo    10 Jun 2023 01:48:48 -0000
@@ -1,2 +1,2 @@
-SHA256 (glog-0.4.0.tar.gz) = 8oNZrroS8w1z2eRxHvNW3IQohpaBEhYrxzACZFE5w5w=
-SIZE (glog-0.4.0.tar.gz) = 200955
+SHA256 (glog-0.6.0.tar.gz) = ioO/mC83u3CCXfcalwn6kOqfREf7PAmeHXIKQ52IutY=
+SIZE (glog-0.6.0.tar.gz) = 193267
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt        23 Feb 2023 12:38:31 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-Index: CMakeLists.txt
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -72,11 +72,13 @@ check_include_file (stdlib.h HAVE_STDLIB_H)
- check_include_file (string.h HAVE_STRING_H)
- check_include_file (strings.h HAVE_STRINGS_H)
- check_include_file (sys/stat.h HAVE_SYS_STAT_H)
--check_include_file (sys/syscall.h HAVE_SYS_SYSCALL_H)
-+# Do not use syscall(2) directly
-+# check_include_file (sys/syscall.h HAVE_SYS_SYSCALL_H)
- check_include_file (sys/time.h HAVE_SYS_TIME_H)
- check_include_file (sys/types.h HAVE_SYS_TYPES_H)
- check_include_file (sys/utsname.h HAVE_SYS_UTSNAME_H)
--check_include_file (syscall.h HAVE_SYSCALL_H)
-+# Do not use syscall(2) directly
-+# check_include_file (syscall.h HAVE_SYSCALL_H)
- check_include_file (syslog.h HAVE_SYSLOG_H)
- check_include_file (ucontext.h HAVE_UCONTEXT_H)
- check_include_file (unistd.h HAVE_UNISTD_H)
Index: patches/patch-src_raw_logging_cc
===================================================================
RCS file: patches/patch-src_raw_logging_cc
diff -N patches/patch-src_raw_logging_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_raw_logging_cc    10 Jun 2023 01:59:00 -0000
@@ -0,0 +1,15 @@
+fixed OpenBSD support (#921)
+
+Index: src/raw_logging.cc
+--- src/raw_logging.cc.orig
++++ src/raw_logging.cc
+@@ -59,7 +59,8 @@
+ # include <unistd.h>
+ #endif
+ 
+-#if (defined(HAVE_SYSCALL_H) || defined(HAVE_SYS_SYSCALL_H)) && 
(!(defined(GLOG_OS_MACOSX)))
++#if (defined(HAVE_SYSCALL_H) || defined(HAVE_SYS_SYSCALL_H)) && \
++    (!(defined(GLOG_OS_MACOSX)) && !(defined(GLOG_OS_OPENBSD)))
+ # define safe_write(fd, s, len)  syscall(SYS_write, fd, s, len)
+ #else
+   // Not so safe, but what can you do?
Index: patches/patch-src_stacktrace_powerpc-inl_h
===================================================================
RCS file: patches/patch-src_stacktrace_powerpc-inl_h
diff -N patches/patch-src_stacktrace_powerpc-inl_h
--- patches/patch-src_stacktrace_powerpc-inl_h  11 Mar 2022 18:50:07 -0000      
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-Fix the lack of _CALL_SYSV on powerpc with clang, from:
-https://github.com/google/glog/pull/545
-
-Index: src/stacktrace_powerpc-inl.h
---- src/stacktrace_powerpc-inl.h.orig
-+++ src/stacktrace_powerpc-inl.h
-@@ -114,7 +114,7 @@ int GetStackTrace(void** result, int max_depth, int sk
- #elif defined(__APPLE__) || ((defined(__linux) || defined(__linux__)) && 
defined(__PPC64__))
-       // This check is in case the compiler doesn't define _CALL_AIX/etc.
-       result[n++] = *(sp+2);
--#elif defined(__linux)
-+#elif defined(__linux) || defined(__OpenBSD__)
-       // This check is in case the compiler doesn't define _CALL_SYSV.
-       result[n++] = *(sp+1);
- #else
Index: patches/patch-src_symbolize_unittest_cc
===================================================================
RCS file: /home/cvs/ports/devel/glog/patches/patch-src_symbolize_unittest_cc,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_symbolize_unittest_cc
--- patches/patch-src_symbolize_unittest_cc     11 Mar 2022 18:50:07 -0000      
1.2
+++ patches/patch-src_symbolize_unittest_cc     10 Jun 2023 01:51:58 -0000
@@ -4,10 +4,10 @@ to call this even though those functions
 Index: src/symbolize_unittest.cc
 --- src/symbolize_unittest.cc.orig
 +++ src/symbolize_unittest.cc
-@@ -402,7 +402,7 @@ int main(int argc, char **argv) {
+@@ -424,7 +424,7 @@ int main(int argc, char **argv) {
    InitGoogleLogging(argv[0]);
    InitGoogleTest(&argc, argv);
- #if defined(HAVE_SYMBOLIZE)
+ #if defined(HAVE_SYMBOLIZE) && defined(HAVE_STACKTRACE)
 -# if defined(__ELF__)
 +# if defined(__ELF__) && defined(TEST_X86_32_AND_64)
    // We don't want to get affected by the callback interface, that may be
Index: patches/patch-src_utilities_cc
===================================================================
RCS file: patches/patch-src_utilities_cc
diff -N patches/patch-src_utilities_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_utilities_cc      10 Jun 2023 01:57:32 -0000
@@ -0,0 +1,14 @@
+fixed OpenBSD support (#921)
+
+Index: src/utilities.cc
+--- src/utilities.cc.orig
++++ src/utilities.cc
+@@ -293,6 +293,8 @@ pid_t GetTID() {
+   return getpid();  // Linux:  getpid returns thread ID when gettid is absent
+ #elif defined GLOG_OS_WINDOWS && !defined GLOG_OS_CYGWIN
+   return static_cast<pid_t>(GetCurrentThreadId());
++#elif defined GLOG_OS_OPENBSD
++  return getthrid();
+ #elif defined(HAVE_PTHREAD)
+   // If none of the techniques above worked, we use pthread_self().
+   return (pid_t)(uintptr_t)pthread_self();
Index: pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/devel/glog/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 PLIST
--- pkg/PLIST   11 Mar 2022 18:50:07 -0000      1.6
+++ pkg/PLIST   10 Jun 2023 01:59:28 -0000
@@ -1,12 +1,16 @@
 include/glog/
+include/glog/export.h
 include/glog/log_severity.h
 include/glog/logging.h
+include/glog/platform.h
 include/glog/raw_logging.h
 include/glog/stl_logging.h
 include/glog/vlog_is_on.h
 lib/cmake/glog/
 lib/cmake/glog/glog-config-version.cmake
 lib/cmake/glog/glog-config.cmake
+lib/cmake/glog/glog-modules.cmake
 lib/cmake/glog/glog-targets${MODCMAKE_BUILD_SUFFIX}
 lib/cmake/glog/glog-targets.cmake
 @lib lib/libglog.so.${LIBglog_VERSION}
+lib/pkgconfig/libglog.pc

Reply via email to