Skip to content

Instantly share code, notes, and snippets.

@danslo
danslo / libdwarf.rb
Created May 21, 2013 16:59
libdwarf
require 'formula'
class Libdwarf < Formula
homepage 'http://sourceforge.net/apps/trac/elftoolchain/'
url 'http://sourceforge.net/projects/elftoolchain/files/Sources/elftoolchain-0.6.1/elftoolchain-0.6.1.tgz'
sha1 '023d40f5ef618c9910389880a5df65970d88fc0b'
depends_on :bsdmake => :build
require 'formula'
class NoExpatFramework < Requirement
def expat_framework
'/Library/Frameworks/expat.framework'
end
satisfy :build_env => false do
not File.exist? expat_framework
end
require 'formula'
class Libunwind < Formula
homepage ''
url 'http://opensource.apple.com/tarballs/libunwind/libunwind-30.tar.gz'
sha1 'e779fbe8a58e6cfb76798c8e9b2373a9ddc9b2eb'
depends_on "dyld"
def install
require 'formula'
class Libeventfb < Formula
homepage 'http://libevent.org/'
url 'https://github.com/libevent/libevent.git', :tag => 'release-1.4.14b-stable'
version '1.4.14b'
keg_only 'We are just a patched version.'
depends_on :autoconf => :build
require 'formula'
class Cclient <Formula
url 'ftp://ftp.cac.washington.edu/mail/imap.tar.Z'
homepage 'http://www.washington.edu/imap/'
md5 'd9f7fd4e1d93ad9fca1df8717a79d1c5'
version '2007e'
def patches; DATA; end
diff --git hphp/runtime/base/thread_init_fini.cpp hphp/runtime/base/thread_init_fini.cpp
index 6826c69..a84b63b 100644
--- hphp/runtime/base/thread_init_fini.cpp
+++ hphp/runtime/base/thread_init_fini.cpp
@@ -63,7 +63,9 @@ void init_thread_locals(void *arg /* = NULL */) {
g_context.getCheck();
AsioSession::Init();
s_hasRenamedFunction.getCheck();
+#ifndef NO_HARDWARE_COUNTERS
HardwareCounter::s_counter.getCheck();
@danslo
danslo / boostfb.rb
Last active December 19, 2015 02:18
require 'formula'
class UniversalPython < Requirement
satisfy(:build_env => false) { archs_for_command("python").universal? }
def message; <<-EOS.undent
A universal build was requested, but Python is not a universal build
Boost compiles against the Python it finds in the path; if this Python
is not a universal build then linking will likely fail.
diff --git hphp/hhvm/CMakeLists.txt hphp/hhvm/CMakeLists.txt
index 775d168..acedec5 100644
--- hphp/hhvm/CMakeLists.txt
+++ hphp/hhvm/CMakeLists.txt
@@ -3,6 +3,7 @@ auto_sources(files "*.cpp" "")
list(APPEND CXX_SOURCES ${files})
add_executable(hhvm ${CXX_SOURCES})
+if (NOT APPLE)
target_link_libraries(hhvm hphp_analysis hphp_runtime_static ext_hhvm_static hphp_system
diff --git app/code/local/Danslo/CheckoutDesign/Model/Observer.php app/code/local/Danslo/CheckoutDesign/Model/Observer.php
new file mode 100644
index 0000000..1512dab
--- /dev/null
+++ app/code/local/Danslo/CheckoutDesign/Model/Observer.php
@@ -0,0 +1,29 @@
+<?php
+
+class Danslo_CheckoutDesign_Model_Observer
+{
@danslo
danslo / systemlib_executable.patch
Created July 15, 2013 12:58
work around lack of /proc/self/exe
diff --git hphp/util/embedded_data.cpp hphp/util/embedded_data.cpp
index a0bdeb0..98f8dca 100644
--- hphp/util/embedded_data.cpp
+++ hphp/util/embedded_data.cpp
@@ -29,6 +29,8 @@
#ifdef __APPLE__
#include <mach-o/getsect.h>
+#include <mach-o/dyld.h>
+#include <limits.h>