Skip to content

Instantly share code, notes, and snippets.

View thierry-FreeBSD's full-sized avatar

Thierry Thomas thierry-FreeBSD

View GitHub Profile
@thierry-FreeBSD
thierry-FreeBSD / poudrière_emulation_arm64.txt
Last active December 21, 2022 16:07
FreeBSD : create a poudriere jail to build packages by emulation for arm64-aarch64
# pkg install qemu-user-static
# binmiscctl add arm64-aarch64 \
--interpreter "/usr/local/bin/qemu-aarch64-static" \
--magic "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00" \
--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \
--size 20 --set-enabled
# service qemu_user_static onestart
(you can also add qemu_user_static_enable="YES" to your /etc/rc.conf )
# poudriere jail -c -j 13arm64 -a arm64.aarch64 -v 13.1-RELEASE
@thierry-FreeBSD
thierry-FreeBSD / patch-lib_util_mutil.ml
Created April 7, 2022 13:16
Fix compilation error on compare for geneweb 7.0.0
--- lib/util/mutil.ml.orig 2020-10-30 14:13:59 UTC
+++ lib/util/mutil.ml
@@ -536,7 +536,7 @@ let list_map_sort_uniq (fn : 'a -> 'b) l =
| [], l2 -> rev_append l2 accu
| l1, [] -> rev_append l1 accu
| h1::t1, h2::t2 ->
- let c = compare h1 h2 in
+ let c = Stdlib.compare h1 h2 in
if c = 0 then rev_merge t1 t2 (h1::accu)
else if c < 0
--- src/ppx_deriving_yojson_runtime.mli.orig 2020-11-07 23:40:55 UTC
+++ src/ppx_deriving_yojson_runtime.mli
@@ -1,4 +1,4 @@
-type 'a error_or = ('a, string) Result.result
+type 'a error_or = ('a, string) Result.t
val ( >>= ) : 'a error_or -> ('a -> 'b error_or) -> 'b error_or
val ( >|= ) : 'a error_or -> ('a -> 'b) -> 'b error_or
@@ -18,7 +18,7 @@ module Int64 : (module type of Int64)
module Nativeint : (module type of Nativeint)
--- wordcloud/query_integral_image.c.orig 2018-07-26 16:13:02 UTC
+++ wordcloud/query_integral_image.c
@@ -15445,7 +15445,9 @@ static PyTypeObject __pyx_type___pyx_array = {
sizeof(struct __pyx_array_obj), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_array, /*tp_dealloc*/
+#if PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
+#endif
0, /*tp_getattr*/
--- symcxx/_symcxx.cpp.orig 2018-07-02 12:52:18 UTC
+++ symcxx/_symcxx.cpp
@@ -48521,7 +48521,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx__Matri
sizeof(struct __pyx_obj_6symcxx_7_symcxx__Matrix), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_6symcxx_7_symcxx__Matrix, /*tp_dealloc*/
+#if PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
+#endif
0, /*tp_getattr*/
$ python3.8 -c 'import numpy; numpy.linalg.test()'
NumPy version 1.20.3
NumPy relaxed strides checking option: True
NumPy CPU features: SSE SSE2 SSE3 SSSE3* SSE41* POPCNT* SSE42* AVX* F16C* FMA3? AVX2? AVX512F? AVX512CD? AVX512_KNL? AVX512_SKX? AVX512_CLX? AVX512_CNL? AVX512_ICL?
s...............................................F.............................................................................................................................................................................................................. [ 83%]
.........................................x......... [100%]
============================================================================================================================== FAILURES =================================================================================
Extra tables GNU and Hurd build and install fine on FreeBSD, pinball finds them, but they cannot be loaded:
MenuSub::perform() load table
MenuSub::draw() load table
MenuSub::draw() load table
MenuSub::draw() load table
No current table name! (the first time is normal...)
SignalSender::clear()
loaded texture: /usr/local/share/pinball/gnu/tiles3.png
size 256 256
When Code_Aster has been compiled by Gcc and TFEL/MFront has been compiled by clang, we got a linker error:
$ gfortran9 -Wl,--allow-multiple-definition -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -Wl,--export-dynamic -fopenmp -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/lib64 -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/lib64 -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib/gcc9 -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/li
@thierry-FreeBSD
thierry-FreeBSD / log.txt-main.3251.moz_log
Created May 28, 2020 12:11
log.txt-main.3251.moz_log
[Parent 3251: Main Thread]: I/Logger Flushing old log files
2020-05-28 12:08:20.437919 UTC - [Parent 3251: Main Thread]: V/nsHttp HttpChannelParent::CleanupBackgroundChannel [this=0x81b3c50c0 bgParent=0x0]
2020-05-28 12:08:20.448120 UTC - [Parent 3251: Main Thread]: V/nsHttp HttpChannelParent::CleanupBackgroundChannel [this=0x81b3c50c0 bgParent=0x0]
2020-05-28 12:08:20.448148 UTC - [Parent 3251: Main Thread]: V/nsHttp Destroying HttpChannelParent [this=0x81b3c50c0]
2020-05-28 12:08:20.448157 UTC - [Parent 3251: Main Thread]: V/nsHttp HttpChannelParent::CleanupBackgroundChannel [this=0x81b3c50c0 bgParent=0x0]
2020-05-28 12:08:20.448166 UTC - [Parent 3251: Main Thread]: D/nsHttp ParentChannelListener::~ParentChannelListener 0x81bf82d90
2020-05-28 12:08:20.478843 UTC - [Parent 3251: Main Thread]: V/nsHttp HttpChannelParent::CleanupBackgroundChannel [this=0x822e32900 bgParent=0x0]
2020-05-28 12:08:20.479141 UTC - [Parent 3251: Main Thread]: V/nsHttp HttpChannelParent::CleanupBackgroundChannel [this=0x822e32900 bg
Verifying that "thierry.id" is my Blockstack ID. https://onename.com/thierry