Skip to content

Instantly share code, notes, and snippets.

@dobo90
dobo90 / 0001-sys-libs-glibc-add-support-for-SHT_RELR-sections.patch
Created February 17, 2022 12:17
glibc 2.35 widevine patches for arm (relr and firends)
From 33a9869e2e7fe993f57d23559317b7f558ae2331 Mon Sep 17 00:00:00 2001
From: Rahul Chaudhry <rahulchaudhry@chromium.org>
Date: Thu, 15 Mar 2018 14:30:17 -0700
Subject: [PATCH 1/2] sys-libs/glibc: add support for SHT_RELR sections.
This patch adds experimental support for SHT_RELR sections, proposed
here: https://groups.google.com/forum/#!topic/generic-abi/bX460iggiKg
SHT_RELR sections are supported for arm, aarch64, and x86_64 targets.
To enable them, pass '--experimental-use-relr' flag to gold.
@dobo90
dobo90 / func_has_arg.py
Last active August 29, 2015 14:04
bottle.py func_has_arg proposal
import sys
PY3 = sys.version_info[0] == 3
PY33 = sys.version_info[0] == 3 and sys.version_info[1] >= 3
if PY33:
from inspect import signature
def func_has_arg(func, arg):
return arg in signature(func).parameters
@dobo90
dobo90 / gist:6487800
Created September 8, 2013 19:42
spyder 2.2.4 patch for python2-pylint
diff -rupN spyder-2.2.4/spyderplugins/widgets/pylintgui.py spyder-2.2.4-patched/spyderplugins/widgets/pylintgui.py
--- spyder-2.2.4/spyderplugins/widgets/pylintgui.py 2013-09-04 21:04:18.000000000 +0200
+++ spyder-2.2.4-patched/spyderplugins/widgets/pylintgui.py 2013-09-08 21:32:02.000000000 +0200
@@ -40,7 +40,7 @@ from spyderlib.widgets.comboboxes import
_ = get_translation("p_pylint", dirname="spyderplugins")
-PYLINT_PATH = programs.find_program('pylint')
+PYLINT_PATH = programs.find_program('pylint2')
@dobo90
dobo90 / gist:5796923
Created June 17, 2013 13:38
grive-git build workaround
--- PKGBUILD.original 2013-06-17 15:32:48.171341963 +0200
+++ PKGBUILD 2013-06-17 15:33:43.561341639 +0200
@@ -36,7 +36,8 @@ build() {
cd "${srcdir}"/build
cmake ../${_gitname} \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_EXE_LINKER_FLAGS=-ljson-c
make
@dobo90
dobo90 / gist:5336363
Last active December 15, 2015 22:58
CorsixTH PKGBUILD with luajit support
--- PKGBUILD_original 2013-04-08 14:08:50.506460224 +0200
+++ PKGBUILD 2013-04-08 14:05:00.323112271 +0200
@@ -8,7 +8,7 @@ url='http://corsix-th.googlecode.com/'
arch=('i686' 'x86_64' 'armv7h')
license=('MIT')
makedepends=('cmake')
-depends=('lua51' 'sdl_mixer' 'ffmpeg' 'timidity-freepats')
+depends=('luajit' 'sdl_mixer' 'ffmpeg' 'timidity-freepats')
source=("${url}files/CorsixTH-${pkgver}-Source.tar.gz"
'bin')