Skip to content

Instantly share code, notes, and snippets.

View risicle's full-sized avatar

Robert Scott risicle

View GitHub Profile
@risicle
risicle / ris-cpython-3.7-pool-canary.patch
Last active April 22, 2020 18:10
Rudimentary CPython 3.7 pool allocator canary implementation - useful for debugging python C/Cython extensions
:100644 100644 1248a3937e... 0000000000... M Objects/obmalloc.c
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 1248a3937e..29ad3081b6 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -1402,10 +1402,12 @@ pymalloc_alloc(void *ctx, size_t nbytes)
if (nbytes == 0) {
return NULL;
}
building '/nix/store/8nik5syyqvdgmd4iiwbk3j945alwm3kw-sequoia-0.11.0.drv'...
unpacking sources
unpacking source archive /nix/store/8hxwh2mfbvfz36618zcq870qaixscwyf-source
source root is source
unpacking source archive /nix/store/aps6gdaxywbw70i29qhdr6cz44gq1105-sequoia-0.11.0-vendor
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tool/tests/sq-sign.rs
patching sources
substituteStream(): WARNING: pattern 'git grep' doesn't match anything in file 'openpgp-ffi/Makefile'
configuring
no configure script, doing nothing
unpacking sources
unpacking source archive /nix/store/k918gi00ykmpwq93jmkpcpmz0pi1cjbw-squashfs-tools-ng-0.7.tar.xz
source root is squashfs-tools-ng-0.7
setting SOURCE_DATE_EPOCH to timestamp 1570549776 of file squashfs-tools-ng-0.7/Makefile.in
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/ijcbhvbzda60r3arnnaxmgqmby834jnr-squashfs-tools-ng-0.7
checking for a BSD-compatible install... /nix/store/vzvgqdqcx6hi1syivyv6phjn2dzgvvja-coreutils-8.31/bin/install -c
checking whether build environment is sane... yes
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/8hxwh2mfbvfz36618zcq870qaixscwyf-source
source root is source
unpacking source archive /nix/store/aps6gdaxywbw70i29qhdr6cz44gq1105-sequoia-0.11.0-vendor
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tool/tests/sq-sign.rs
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
substituteStream(): WARNING: pattern 'git grep' doesn't match anything in file 'openpgp-ffi/Makefile'
@nix { "action": "setPhase", "phase": "configurePhase" }
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/1p3wk5zl8aid06pf3hj5sqb81vxg7pr0-zeroc-ice-3.7.2.tar.gz
source root is zeroc-ice-3.7.2
setting SOURCE_DATE_EPOCH to timestamp 1549395218 of file zeroc-ice-3.7.2/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/1p3wk5zl8aid06pf3hj5sqb81vxg7pr0-zeroc-ice-3.7.2.tar.gz
source root is zeroc-ice-3.7.2
setting SOURCE_DATE_EPOCH to timestamp 1549395218 of file zeroc-ice-3.7.2/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/jaw91z9iin8l4c7amcm2v6nin97jmvrb-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/jaw91z9iin8l4c7amcm2v6nin97jmvrb-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
@risicle
risicle / qgis_metaphone_hack.py
Created July 22, 2019 20:12
Nasty all-in-one bundling of Metaphone 0.6 module, suitable for dumping into QGIS in a hurry without battling with imports
from __future__ import unicode_literals
import unicodedata
class Word(object):
"""
"""
def __init__(self, input):
self.original = input
if isinstance(input, bytes):
error: while querying the derivation named 'nix-2.3pre20190712_aa82f8b':
while evaluating the attribute 'src' of the derivation 'nix-2.3pre20190712_aa82f8b' at /home/bob/.nox/nixpkgs/pkgs/tools/package-management/nix/default.nix:28:14:
unknown hash algorithm '', at /home/bob/.nox/nixpkgs/pkgs/build-support/fetchurl/default.nix:119:3
...
Command '['nix-env', '-f', '/home/bob/.nox/nixpkgs', '-qaP', '--out-path', '--show-trace']' returned non-zero exit status 1.