Skip to content

Instantly share code, notes, and snippets.

View dtzWill's full-sized avatar
💭
I may be slow to respond.

Will Dietz dtzWill

💭
I may be slow to respond.
View GitHub Profile
unpacking sources
unpacking source archive /nix/store/nrnmq3v6vc6yp53v12kx0jafakblgfv4-cvs-export
source root is cvs-export
patching sources
applying patch /nix/store/0hi3qayq4m734n5algyfwim6p3yg33j6-compat.patch
patching file nbtool_config.h.in
updateAutotoolsGnuConfigScriptsPhase
configuring
configure flags: --prefix=/nix/store/yph0hvwr2j2950m6ifmnswxacvhbwqc9-bsd-compat-netbsd-7.1.2-x86_64-unknown-linux-musl --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-musl
checking for x86_64-unknown-linux-musl-gcc... x86_64-unknown-linux-musl-gcc
/build/ghc-8.2.2/docs/users_guide/phases.rst:890: WARNING: Error in "ghc-flag" directive:
unknown option: "type".
.. ghc-flag:: -pie
:type: dynamic
:category: linking
:since: 8.2.2
This instructs the linker to produce a position-independent executable.
This file has been truncated, but you can view the full file.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/b99s1xm6vvvrbnlxz2rlqlb4ncw73ws6-ghc-8.2.2-src.tar.xz
source root is ghc-8.2.2
setting SOURCE_DATE_EPOCH to timestamp 1511209450 of file ghc-8.2.2/utils/genprimopcode/Parser.hs
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/krp36aspvd46k5yvvsqh0lyci6finiq5-2fc8ce5f0c8c81771c26266ac0b150ca9b75c5f3
patching file configure.ac
patching file distrib/configure.ac.in
From 6e3aca60faf12ac4eec022ca2367a995583877db Mon Sep 17 00:00:00 2001
From: Will Dietz <w@wdtz.org>
Date: Mon, 21 May 2018 17:06:29 -0500
Subject: [PATCH] iconv: fix special hkscs conversions
---
src/locale/iconv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/locale/iconv.c b/src/locale/iconv.c
#include <iconv.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
char* convert(const char *from_charset, const char *to_charset, const char *input) {
size_t inleft, outleft, converted = 0;
4.15.17
benchmarking unshare -U -n true
time 32.98 ms (30.36 ms .. 35.83 ms)
0.975 R² (0.952 R² .. 0.989 R²)
mean 37.56 ms (34.72 ms .. 42.38 ms)
std dev 7.407 ms (2.949 ms .. 10.23 ms)
variance introduced by outliers: 74% (severely inflated)
From 5fa713c71dc6ba361f193215fd024aa771062883 Mon Sep 17 00:00:00 2001
From: Will Dietz <w@wdtz.org>
Date: Sun, 11 Jun 2017 14:47:58 -0500
Subject: [PATCH] Disable use of dlopen(), don't require it in MCJIT.
---
lib/ExecutionEngine/ExecutionEngine.cpp | 5 -----
lib/ExecutionEngine/MCJIT/MCJIT.cpp | 3 +--
lib/Support/DynamicLibrary.cpp | 6 ++++--
3 files changed, 5 insertions(+), 9 deletions(-)
@dtzWill
dtzWill / exit codes
Created April 20, 2018 22:46
cli-visualizer backtraces
will@dtznix:~$ nix run -I np=https://github.com/NixOS/nixpkgs/archive/staging.tar.gz np.cli-visualizer -c vis; echo $? 17:45:29 on 18-04-20
zsh: abort (core dumped) nix run -I np=https://github.com/NixOS/nixpkgs/archive/staging.tar.gz -c vis
134
will@dtznix:~$ nix run -I np=https://github.com/NixOS/nixpkgs/archive/master.tar.gz np.cli-visualizer -c vis; echo $? 17:45:47 on 18-04-20
zsh: abort (core dumped) nix run -I np=https://github.com/NixOS/nixpkgs/archive/master.tar.gz -c vis
134
[vagrant@localhost ~]$ cat ./result
/dev/pts:
total 0
drwxr-xr-x 2 nobody nogroup 6 Apr 20 16:15 .
drwxr-xr-x 4 nobody nogroup 155 Apr 20 16:15 ..
/dev/ptmx:
does not exist!
/dev/pts/ptmx:
does not exist!
total 0
drwxr-xr-x 2 root root 0 Apr 16 13:42 .
drwxr-xr-x 21 root root 3820 Apr 16 13:42 ..
crw--w--w- 1 will users 136, 0 Apr 16 23:29 0
crw--w--w- 1 will users 136, 1 Apr 16 21:26 1
crw--w--w- 1 will users 136, 10 Apr 19 13:01 10
crw--w--w- 1 will users 136, 11 Apr 16 21:07 11
crw--w--w- 1 will users 136, 12 Apr 16 21:03 12
crw--w--w- 1 will users 136, 13 Apr 19 20:20 13
crw--w--w- 1 will users 136, 14 Apr 19 13:05 14