Skip to content

Instantly share code, notes, and snippets.

View craftyguy's full-sized avatar
🥑

clayton craft craftyguy

🥑
View GitHub Profile
From 6b49ab452350148df4a2c362d8fdfb8f3356e43e Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Mon, 19 Mar 2018 22:34:35 +0000
Subject: [PATCH] Work around recursion issue with glMaterialfv
This works around an issue that seems to be related to how musl
is linking libraries, causing an infinite recursive loop to form
---
src/gles/light.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
From c3c7d493e6d5c65d269dedee0a3e06323a7a6013 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Mon, 19 Mar 2018 22:28:12 +0000
Subject: [PATCH 2/2] Stub glXQueryDrawable
This is required by glxgears, though keep in mind that glxgears
may need this to be implemented to actually work..
---
src/glx/glx.c | 3 +++
1 file changed, 3 insertions(+)
From 16191998bc9ae59b6740ae96f3c1a935d7554d65 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Mon, 19 Mar 2018 22:25:52 +0000
Subject: [PATCH 1/2] Fix compilation on musl
This relied on __GLIBC__ to omit glibc-specific things so that
compilation will not fail on musl
---
src/glx/glx.c | 6 ++++--
src/util/ring.c | 4 +++-
@craftyguy
craftyguy / gist:671a4eb0086b8019aae102b9829ffe58
Created January 7, 2018 20:08 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@craftyguy
craftyguy / import_auth_keys.sh
Created December 4, 2017 18:31
Verify signature and import authorized_keys file
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: import_auth_keys /path/to/authorized_keys.asc"
exit 1
fi
gpg --verify "$1"
read -r -p "Import authorized_keys file? [y/N] " resp
@craftyguy
craftyguy / gist:e87a1eb9f5fe4ecf1ac343ec5ae4a676
Created September 7, 2017 15:43
n900 gpio-switch patch
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -63,6 +63,13 @@ config OMAP_RESET_CLOCKS
probably do not want this option enabled until your
device drivers work properly.
+config OMAP_GPIO_SWITCH
+ bool "GPIO switch support"
+ default n
+ help
--- a/inputdrivers/tslib/tslib.c
+++ b/inputdrivers/tslib/tslib.c
@@ -60,9 +60,12 @@ typedef struct {
CoreInputDevice *device;
DirectThread *thread;
struct tsdev *ts;
+ struct ts_sample_mt **ts_events;
} tslibData;
#define MAX_TSLIB_DEVICES 16
--- /home/clayton/Downloads/config 2017-09-04 09:43:38.811228016 -0700
+++ aports/main/linux-postmarketos/config-postmarketos.armhf 2017-09-04 11:58:43.884364343 -0700
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/arm 4.12.0-rc5 Kernel Configuration
+# Linux/arm 4.12.10 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
ofonod[1641]: oFono version 1.20
ofonod[1641]: src/plugin.c:__ofono_plugin_init()
ofonod[1641]: Excluding udev hardware detection
ofonod[1641]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5df1d8 name: GPRS context provisioning
ofonod[1641]: plugins/push-notification.c:push_notification_init()
ofonod[1641]: plugins/smart-messaging.c:smart_messaging_init()
ofonod[1641]: src/cdma-provision.c:ofono_cdma_provision_driver_register() driver: 0x5df1ac name: CDMA provisioning
ofonod[1641]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5df180 name: Provisioning
ofonod[1641]: plugins/upower.c:upower_init() upower init
ofonod[1641]: src/handsfree-audio.c:ofono_handsfree_card_driver_register() driver: 0x5df12c
ofonod[1644]: oFono version 1.20
ofonod[1644]: src/plugin.c:__ofono_plugin_init()
ofonod[1644]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5a21d8 name: GPRS context provisioning
ofonod[1644]: plugins/push-notification.c:push_notification_init()
ofonod[1644]: plugins/smart-messaging.c:smart_messaging_init()
ofonod[1644]: src/cdma-provision.c:ofono_cdma_provision_driver_register() driver: 0x5a21ac name: CDMA provisioning
ofonod[1644]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5a2180 name: Provisioning
ofonod[1644]: plugins/upower.c:upower_init() upower init
ofonod[1644]: src/handsfree-audio.c:ofono_handsfree_card_driver_register() driver: 0x5a212c
ofonod[1644]: plugins/dun_gw_bluez5.c:dun_gw_init()