Skip to content

Instantly share code, notes, and snippets.

@d235j
d235j / gmtl-boost-python-fix.diff
Created August 3, 2011 15:08
GMTL patch for boost-python library
diff -Nrbu ./gmtl-0.6.1-orig/SConstruct gmtl-0.6.1/SConstruct
--- ./gmtl-0.6.1-orig/SConstruct 2009-11-21 16:31:52.000000000 -0500
+++ gmtl-0.6.1/SConstruct 2011-08-03 11:00:13.000000000 -0400
@@ -401,8 +401,9 @@
libdirs.append('lib64')
full_bpl = 'boost_python%s%s%s%s' % (tool, threading, dbg, version)
+ med_bpl = 'boost_python%s' % (threading)
min_bpl = 'boost_python'
- names = [full_bpl, min_bpl]
@d235j
d235j / newt.rb
Created August 21, 2011 00:26
Patched newt.rb
require 'formula'
class Newt < Formula
url 'https://fedorahosted.org/releases/n/e/newt/newt-0.52.13.tar.gz'
homepage 'https://fedorahosted.org/newt/'
md5 '77de05b3f58540152a4ae32a1a64e5d0'
depends_on 'popt'
# depends_on 'tcl'
depends_on 's-lang'
@d235j
d235j / 1-configure.patch
Created January 12, 2012 04:24
Glib2 configure patch for OSX for Glib 2.341.8
--- configure.orig 2012-01-11 23:14:00.000000000 -0500
+++ configure 2012-01-11 23:22:23.000000000 -0500
@@ -29846,10 +29846,11 @@
*) glib_vacopy=''
esac
-if test x$glib_cv_va_val_copy = xno; then
- glib_vacopy="\$glib_vacopy
-#define G_VA_COPY_AS_ARRAY 1"
-fi
@d235j
d235j / gdbusprivate.patch
Created January 12, 2012 04:34
gdbusprivate hardcoded path fix
--- gio/gdbusprivate.c.orig 2012-01-11 23:32:32.000000000 -0500
+++ gio/gdbusprivate.c 2012-01-11 23:32:35.000000000 -0500
@@ -2052,17 +2052,12 @@
/* TODO: use PACKAGE_LOCALSTATEDIR ? */
ret = NULL;
first_error = NULL;
- if (!g_file_get_contents ("/var/lib/dbus/machine-id",
+ if (!g_file_get_contents ("@@PREFIX@@/var/lib/dbus/machine-id",
&ret,
NULL,
@d235j
d235j / config.h.ed
Created January 12, 2012 04:44
configure script ed-patch (EWW)
/ AC_APPLE_UNIVERSAL_BUILD /c
/* #undef AC_APPLE_UNIVERSAL_BUILD */
.
/ G_VA_COPY_AS_ARRAY /c
#ifdef __LP64__
#define G_VA_COPY_AS_ARRAY 1
#else
/* #undef G_VA_COPY_AS_ARRAY */
#endif
.
@d235j
d235j / gist:5121014
Last active December 14, 2015 17:18
diff -Nru openocd-git-orig/jimtcl/autosetup/cc.tcl openocd-git/jimtcl/autosetup/cc.tcl
--- openocd-git-orig/jimtcl/autosetup/cc.tcl 2013-03-08 18:37:48.000000000 -0500
+++ openocd-git/jimtcl/autosetup/cc.tcl 2013-03-08 18:36:40.000000000 -0500
@@ -493,12 +493,6 @@
}
lappend cmdline {*}$opts(-cflags)
- switch -glob -- [get-define host] {
- *-*-darwin* {
- # Don't generate .dSYM directories
@d235j
d235j / ogre-174-cpp11.patch
Last active December 17, 2015 15:29
Patch for Ogre 1.7.4 with C++11
diff -Nru ogre_src_v1-7-4-orig/RenderSystems/GL/src/OSX/OgreOSXCarbonWindow.cpp ogre_src_v1-7-4/RenderSystems/GL/src/OSX/OgreOSXCarbonWindow.cpp
--- ogre_src_v1-7-4-orig/RenderSystems/GL/src/OSX/OgreOSXCarbonWindow.cpp 2012-01-14 12:40:39.000000000 -0500
+++ ogre_src_v1-7-4/RenderSystems/GL/src/OSX/OgreOSXCarbonWindow.cpp 2013-05-22 21:36:09.000000000 -0400
@@ -66,7 +66,7 @@
if( miscParams )
{
- NameValuePairList::const_iterator opt(NULL);
+ NameValuePairList::const_iterator opt;
@d235j
d235j / fixup.sh
Created October 31, 2013 23:06
fixup script for gradle/maven versions
#!/bin/bash
# This fixes the versioning in the generated .pom files.
# Gradle simply copies the version string overs, which causes Maven to choke if the string ends with a plus.
find . -name '*.pom' -exec perl -i -pe 's/>((\.?[0-9]?)*)(\.?([0-9]))(\.?)\+</$5 eq "." ? ">[".$1.$3.",".$1.($3+1).")<" : ">[".$1.$3.",)<"/ge' {} \;
find . -name "*.pom" -exec sh -c "openssl md5 < {} > {}.md5" \;
find . -name "*.pom" -exec sh -c "openssl sha1 < {} > {}.sha1" \;
@d235j
d235j / keybase.md
Created July 1, 2014 19:47
keybase

Keybase proof

I hereby claim:

  • I am d235j on github.
  • I am david_rysk (https://keybase.io/david_rysk) on keybase.
  • I have a public key whose fingerprint is F8F0 6B19 7F8C ECA9 98BD 2842 B3E9 943B D608 9477

To claim this, I am signing this object:

@d235j
d235j / cmake-patch-Modules-noArchCheck.3.3.diff
Created November 5, 2015 05:05
Remove CMake arch check (patch from MacPorts)
--- Modules/BasicConfigVersion-AnyNewerVersion.cmake.in.orig
+++ Modules/BasicConfigVersion-AnyNewerVersion.cmake.in
@@ -17,15 +17,3 @@
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
-
-# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
-if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "@CMAKE_SIZEOF_VOID_P@" STREQUAL "")
- return()