Skip to content

Instantly share code, notes, and snippets.

View thierry-FreeBSD's full-sized avatar

Thierry Thomas thierry-FreeBSD

View GitHub Profile
--- 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)
@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
@thierry-FreeBSD
thierry-FreeBSD / poudrière_emulation_arm64.txt
Last active August 9, 2025 23:35
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 / lapack.log
Created January 18, 2025 14:11
lapack.log
This file has been truncated, but you can view the full file.
MASTER_SITES contains
https://github.com/Reference-LAPACK/lapack/archive/refs/tags/:src, please use
USE_GITHUB instead.
===> License BSD3CLAUSE accepted by the user
===> lapack-3.12.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by lapack-3.12.1 for building
===> Extracting for lapack-3.12.1
=> SHA256 Checksum OK for lapack-3.12.1/v3.12.1.tar.gz.
=> SHA256 Checksum OK for lapack-3.12.1/manpages.tgz.
@thierry-FreeBSD
thierry-FreeBSD / hs_err_pid64195.log
Created June 28, 2025 20:45
Fatal JRE error trying to run Scilab compiled with JDK11
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (decoder_elf.hpp:45), pid=64195, tid=101848
# Error: ShouldNotReachHere()
#
# JRE version: OpenJDK Runtime Environment (11.0.27+6) (build 11.0.27+6-1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.27+6-1, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Core dump will be written. Default location: /usr/ports/math/scilab/work/scilab-6.1.1/scilab-bin.core
#