Attached is an update for devel/glog, which fixes the build for some
non-amd64 archs. In particular sparc64 and mips64 (have been tested),
and it should also do the same for aarch64.

Thanks to Kurt (kmos@) and Visa (visa@) for their help in testing the
build on hardware I don't have.

Thanks,

Ash

diff --git a/devel/glog/Makefile b/devel/glog/Makefile
index 92a0a8f73b4..5260d4e5ffa 100644
--- a/devel/glog/Makefile
+++ b/devel/glog/Makefile
@@ -5,6 +5,7 @@ COMMENT =		C++ application-level logging library
 GH_ACCOUNT =		google
 GH_PROJECT =		glog
 GH_TAGNAME =		v0.4.0
+REVISION =		1
 
 SHARED_LIBS +=		glog 2.0 # 0.2.1
 
diff --git a/devel/glog/patches/patch-src_symbolize_unittest_cc b/devel/glog/patches/patch-src_symbolize_unittest_cc
new file mode 100644
index 00000000000..1200e51f2f9
--- /dev/null
+++ b/devel/glog/patches/patch-src_symbolize_unittest_cc
@@ -0,0 +1,17 @@
+$OpenBSD$
+
+This test causes problems on (at least) sparc64 and mips64. It appears they try
+to call this even though those functions don't exist for those archs.
+
+Index: src/symbolize_unittest.cc
+--- src/symbolize_unittest.cc.orig
++++ src/symbolize_unittest.cc
+@@ -402,7 +402,7 @@ int main(int argc, char **argv) {
+   InitGoogleLogging(argv[0]);
+   InitGoogleTest(&argc, argv);
+ #if defined(HAVE_SYMBOLIZE)
+-# 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
+   // used to install some callback function at InitGoogle() time.
+   InstallSymbolizeCallback(NULL);

Reply via email to