Skip to content

Instantly share code, notes, and snippets.

@rfht
rfht / make clean configure
Created March 20, 2018 04:07
output of configuration of mono on OpenBSD
===> Cleaning for mono-5.10.0.179
===> mono-5.10.0.179 depends on: bison-* -> bison-3.0.4p0
===> mono-5.10.0.179 depends on: gettext-tools-* -> gettext-tools-0.19.8.1
===> mono-5.10.0.179 depends on: cmake-* -> cmake-3.10.2
===> mono-5.10.0.179 depends on: gawk-* -> gawk-4.2.0
===> mono-5.10.0.179 depends on: bash-* -> bash-4.4.19
===> mono-5.10.0.179 depends on: libgdiplus-* -> libgdiplus-4.2p2
===> mono-5.10.0.179 depends on: python->=2.7,<2.8 -> python-2.7.14p0
===> mono-5.10.0.179 depends on: gmake-* -> gmake-4.2.1
===> mono-5.10.0.179 depends on: bzip2-* -> bzip2-1.0.6p8
@rfht
rfht / config.h
Created March 20, 2018 15:38
Mono configuration logs and headers on OpenBSD
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Whether Android NDK unified headers are used */
/* #undef ANDROID_UNIFIED_HEADERS */
/* GC description */
@rfht
rfht / after `make clean extract`
Created March 20, 2018 16:13
networking-posix.c on various stages of openbsd build WITHOUT downstream patch
/**
* \file
* Modern posix networking code
*
* Author:
* Rodrigo Kumpera (kumpera@gmail.com)
*
* (C) 2015 Xamarin
*/
@rfht
rfht / gist:05a1dfc0feda7fe6a6df0a014486d6f3
Created March 25, 2018 23:47
backtrace hidapi-testgui coredump after clicking 'Send Feature Report'
$ doas egdb hidapi-testgui hidapi-testgui.core
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-openbsd6.3".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@rfht
rfht / gist:6a5a6ef4005a8241a00486a7f4d80823
Created March 26, 2018 00:01
log of simple example of openhmd (dev-osvr-hdk2-master branch) on OpenBSD
num devices: 5
device 0
vendor: Razer / OSVR
product: HDK2
path: 0000:0007:02
class: HMD
flags: 00
null device: no
rotational tracking: no
//gcc osvrexample.c -losvrClientKit
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <osvr/ClientKit/ContextC.h>
#include <osvr/ClientKit/InterfaceC.h>
#include <osvr/ClientKit/InterfaceStateC.h>
@rfht
rfht / x2f.log
Created April 6, 2018 13:36
mono --debug XnaToFna.exe on OpenBSD, built with xbuild
[XnaToFna] [FNAHooker] Patching FNA in memory...
[XnaToFna] [FNAHooker] This is required for the XnaToFna content transformer.
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
Server stack trace:
at XnaToFna.FNAHookBridgeXTF.Init (System.Reflection.Assembly fna) [0x0009d] in /home/thfr/games/fna/x2f/XnaToFna/src/FNAHooks/FNAHookBridgeXTF.cs:31
at XnaToFna.FNAHooker.Boot () [0x0000d] in /home/thfr/games/fna/x2f/XnaToFna/src/FNAHooks/FNAHooker.cs:69
@rfht
rfht / monogame_openbsd.diff
Created December 25, 2018 20:03
Diff to get MonoGame Framework to run on OpenBSD (with xbuild), currently messes up Linux
diff --git a/MonoGame.Framework/Audio/OpenAL.cs b/MonoGame.Framework/Audio/OpenAL.cs
index 9a8eb4202..4d1c6ef69 100644
--- a/MonoGame.Framework/Audio/OpenAL.cs
+++ b/MonoGame.Framework/Audio/OpenAL.cs
@@ -217,9 +217,9 @@ namespace MonoGame.OpenAL
if (CurrentPlatform.OS == OS.Windows)
ret = FuncLoader.LoadLibrary("soft_oal.dll");
else if (CurrentPlatform.OS == OS.Linux)
- ret = FuncLoader.LoadLibrary("libopenal.so.1");
+ ret = FuncLoader.LoadLibrary("libopenal.so");
@rfht
rfht / MonoGame.Framework-openbsd-audiostub
Created March 19, 2019 19:53
diff used to disable OpenAL in MonoGame.Framework to run StardewValley server on instance without audio
diff --git a/MonoGame.Framework/Audio/OpenAL.cs b/MonoGame.Framework/Audio/OpenAL.cs
index 9a8eb4202..4d1c6ef69 100644
--- a/MonoGame.Framework/Audio/OpenAL.cs
+++ b/MonoGame.Framework/Audio/OpenAL.cs
@@ -217,9 +217,9 @@ namespace MonoGame.OpenAL
if (CurrentPlatform.OS == OS.Windows)
ret = FuncLoader.LoadLibrary("soft_oal.dll");
else if (CurrentPlatform.OS == OS.Linux)
- ret = FuncLoader.LoadLibrary("libopenal.so.1");
+ ret = FuncLoader.LoadLibrary("libopenal.so");
@rfht
rfht / installation.md
Created April 2, 2019 18:52 — forked from abcdefg30/installation.md
Unofficial, manual content installation for OpenRA

Manual (unrecommended) installation of the required content files for OpenRA

⚠️ This method is not recommended and should only be applied if automatic installation fails. Success of manually installing the files can not be guaranteed. ⚠️

⚠️ The automatic installation may fail for non-english content. OpenRA does not support other languages at the current stage of development and no such content should be installed. ⚠️

⚠️ Manually installing files can corrupt your game and lead to crashes. ⚠️

If you have trouble with automatic installation, please contact the developers (via IRC, our forum, the webpage comments or our issue tracker) before attempting a manual install.