ports/devel/glog/files/patch-src-stacktrace_powerpc-inl.h
Po-Chuan Hsieh 95323d15a8
devel/glog: Update to 0.7.0
- Convert to USES=cmake:testing
- Sort PLIST
- Bump PORTREVISION of dependent ports for shlib change
  Broken ports are skipped:
  - graphics/colmap [1]
  - graphics/hiptext [2]
  - graphics/openmvs
  - sysutils/apache-mesos

[2] This port was being skipped on package building cluster due to its LICENSE
    "License NONE needs confirmation, but BATCH is defined"

Changes:	https://github.com/google/glog/releases
Reference:	https://pkg-status.freebsd.org/beefy12/data/140amd64-default/84a61d95b0a5/logs/colmap-3.8_5.log [1]
2024-03-09 22:05:20 +08:00

11 lines
543 B
C

--- src/stacktrace_powerpc-inl.h.orig 2024-02-17 17:49:26 UTC
+++ src/stacktrace_powerpc-inl.h
@@ -111,7 +111,7 @@ int GetStackTrace(void** result, int max_depth, int sk
// Link Register is. For DARWIN and AIX (used by apple and
// linux ppc64), it's in sp[2]. For SYSV (used by linux ppc),
// it's in sp[1].
-#if defined(_CALL_AIX) || defined(_CALL_DARWIN)
+#if defined(_CALL_AIX) || defined(_CALL_DARWIN) || defined(_CALL_ELF)
result[n++] = *(sp + 2);
#elif defined(_CALL_SYSV)
result[n++] = *(sp + 1);