View map_producer.sh
#!/bin/bash | |
set -e | |
ORIG_IMAGE="$1" | |
NATURE_M_IN_PIXEL="6.54" | |
SCALE=50000 # Nature meters in map meter | |
SHEET_AVAILABLE_WIDTH_MM=200 | |
SHEET_AVAILABLE_HEIGHT_MM=287 | |
GRID_STEP_M=1000 | |
GRID_THICKNESS=1 |
View tmux.conf
set -g default-terminal "screen-256color" | |
# http://superuser.com/a/402084 | |
set-window-option -g xterm-keys on | |
##set -g default-command "reattach-to-user-namespace -l bash" | |
# Start numbering at 1 | |
set -g base-index 1 |
View spectrum_build_types.diff
--- debug.type 2019-01-04 13:25:05.104072678 +0000 | |
+++ gentoo.type 2019-01-04 13:35:29.080370338 +0000 | |
@@ -17322,6 +17322,26 @@ | |
Called from: [3] /usr/share/cmake/Modules/CMakeInitializeConfigs.cmake | |
[2] /usr/share/cmake/Modules/CMakeCInformation.cmake | |
[1] /home/j/work/foss/gentoo/spectrum/spectrum2-2.0.9/CMakeLists.txt | |
+/usr/share/cmake/Modules/CMakeInitializeConfigs.cmake(30): if(NOT ${_BUILD_TYPE} STREQUAL ) | |
+ Called from: [3] /usr/share/cmake/Modules/CMakeInitializeConfigs.cmake | |
+ [2] /usr/share/cmake/Modules/CMakeCInformation.cmake | |
+ [1] /home/j/work/foss/gentoo/spectrum/spectrum2-2.0.9/CMakeLists.txt |
View gist:ddf98b12aee927d726856a24ce7752fd
[ 16%] Building CXX object libtransport/CMakeFiles/transport.dir/PQXXBackend.cpp.o | |
cd /var/tmp/portage/net-im/spectrum2-2.0.9/work/spectrum2-2.0.9_build/libtransport && /usr/x86_64-pc-linux-gnu/gcc-bin/7.3. | |
0/x86_64-pc-linux-gnu-g++ -DBOOST_FILESYSTEM_VERSION=3 -DPURPLE_RUNTIME=0 -DSPECTRUM_VERSION=\"2.0.9\" -DWITH_LIBEVENT -DWI | |
TH_LOG4CXX -DWITH_PQXX -DWITH_PROTOBUF -DWITH_SQLITE -Dtransport_EXPORTS -isystem /usr/include/jsoncpp -I/usr/include/libpu | |
rple -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/net-im/spectrum2-2.0.9/work/spectrum2-2.0.9/i | |
nclude -I/var/tmp/portage/net-im/spectrum2-2.0.9/work/spectrum2-2.0.9/libtransport/../spectrum/src/frontends/xmpp -DNDEBU | |
G -std=c++11 -Os -pipe -fPIC -fPIC -o CMakeFiles/transport.dir/PQXXBackend.cpp.o -c /var/tmp/portage/net-im/spectrum2-2.0 | |
.9/work/spectrum2-2.0.9/libtransport/PQXXBackend.cpp | |
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/experimental/optional:45:0, | |
from /usr/include/pqxx/ |
View gist:9529ea0c5107c13a1ce7d84d09671b06
$ gdb | |
GNU gdb (Gentoo 8.1 vanilla) 8.1 | |
Copyright (C) 2018 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-pc-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
View hostapd.diff
--- hostapd-9999.ebuild 2018-07-29 13:25:09.438124204 +0100 | |
+++ hostapd-2.6_p20180728.ebuild 2018-07-29 14:03:32.033015313 +0100 | |
@@ -14,6 +14,14 @@ | |
if [[ $PV == 9999 ]]; then | |
inherit git-r3 | |
EGIT_REPO_URI="https://w1.fi/hostap.git" | |
+elif [[ $PV =~ ^.*_p[0-9]{8}$ ]]; then | |
+ EGIT_REPO_URI="https://w1.fi/hostap.git" | |
+ DATE=${PV/*_p/} | |
+ EGIT_COMMIT_DATE="${DATE:0:4}-${DATE:4:2}-${DATE:6:2}" |
View openrc.patch
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh | |
index 35c642c0..693fe883 100644 | |
--- a/sh/start-stop-daemon.sh | |
+++ b/sh/start-stop-daemon.sh | |
@@ -80,6 +80,12 @@ ssd_stop() | |
pidfile="${startpidfile:-$pidfile}" | |
procname="${startprocname:-$procname}" | |
[ -n "$command" -o -n "$procname" -o -n "$pidfile" ] || return 0 | |
+ | |
+ # Allow restarting a crashed daemon with missing pidfile. |
View trace_function_calls_gdb
#!/bin/sh | |
# Taken from http://dustymabe.com/2012/10/14/trace-function-calls-using-gdb/ | |
# Make a function call trace using GDB. This is stupid, but it should work | |
if [ "$*" = "" ]; then | |
echo "usage: $0 [args]" | |
exit | |
fi |
View build.log
This file has been truncated, but you can view the full file.
* Package: sys-devel/gcc-7.3.0 | |
* Repository: gentoo | |
* Maintainer: toolchain@gentoo.org | |
* USE: arm64 cxx elibc_glibc fortran kernel_linux multilib nls nptl openmp pch pie sanitize ssp userland_GNU vtv | |
* FEATURES: preserve-libs userpriv | |
* Applying Gentoo patches ... | |
* 10_all_default-fortify-source.patch ... | |
[ ok ] | |
* 11_all_default-warn-format-security.patch ... |
View test-native-gcc.sh
set -e | |
T=aarch64-gcctest-linux-gnu | |
crossdev --stable -t $T | |
ln -snf /usr/portage/profiles/default/linux/arm64/17.0/ /usr/$T/etc/portage/make.profile | |
${T}-emerge -ptv sys-devel/gcc | |
FEATURES="-sandbox -usersandbox" ${T}-emerge -vq sys-devel/gcc |
NewerOlder