Skip to content

Instantly share code, notes, and snippets.

@oshimaya
oshimaya / darktable-3.6.1-src.diff
Created April 17, 2022 23:53
Fix build error in darktable 3.6.1 on NetBSD
--- src/develop/masks/circle.c.orig 2021-09-10 06:20:12.000000000 +0000
+++ src/develop/masks/circle.c
@@ -1110,7 +1110,7 @@ static int _circle_get_mask_roi(const dt
dt_omp_firstprivate(circpts, centerx, centery, total) \
dt_omp_sharedconst(circ) schedule(static) if(circpts/8 > 1000)
#else
-#pragma omp parallel for shared(points) schedule(static)
+#pragma omp parallel for sharedconst(circ) schedule(static)
#endif
#endif
@oshimaya
oshimaya / libre7112.jpg
Last active May 3, 2021 06:44
Status of libreoffice locale message in NetBSD
libre7112.jpg
@oshimaya
oshimaya / pkgsrc-qemu.patch
Last active March 4, 2020 03:32
patch for pkgsrc-current/emulators/qemu 4.2.0nb9 (make nvmm PKG_OPTIONS and enable when NetBSD/amd64 >= 9 only)
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo
index 6be2d40ebf9..bc8cca0103a 100644
--- a/emulators/qemu/distinfo
+++ b/emulators/qemu/distinfo
@@ -9,7 +9,7 @@ SHA1 (patch-accel_stubs_Makefile.objs) = 92266dc400ac1e97013f7f19ee4b7a63b42c7fc
SHA1 (patch-accel_stubs_nvmm-stub.c) = d66d47eabb8bb6728e777da7589b43d491adbcc8
SHA1 (patch-accel_tcg_user-exec.c) = 86ee62f6e5c8cd7942cf0aa9c9f64e4b0879ff33
SHA1 (patch-capstone_Makefile) = f59870031de8c4385a591362749ec82f57fd4c27
-SHA1 (patch-configure) = c2d68edf08e94ea12c9e57da3dacb0c1326c1213
+SHA1 (patch-configure) = 7bd1b0a64c31ec17031dba79d905876bcd16b933
diff --git a/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c b/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
index 8c0be6592..4a837d4b8 100644
--- a/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
+++ b/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
@@ -581,20 +581,20 @@ static CARD8 wsXtMap[] = {
/* 109 */ KEY_NOTUSED,
/* 110 */ KEY_NOTUSED,
/* 111 */ KEY_NOTUSED,
- /* 112 */ KEY_NOTUSED,
+ /* 112 */ KEY_HKTG,
@oshimaya
oshimaya / dynabookvz_acpidump.asl
Last active January 21, 2020 00:53
Thinkpad x250 acpidump -dt
This file has been truncated, but you can view the full file.
/*
RSD PTR: OEM=TOSHIB, ACPI_Rev=2.0x (2)
XSDT=0x000000005cfb8188, length=36, cksum=124
*/
/*
XSDT: Length=236, Revision=1, Checksum=96,
OEMID=TOSHIB, OEM Table ID=A00B0, OEM Revision=0x20190725,
Creator ID=, Creator Revision=0x1000013
Entries={ 0x000000005cff6000, 0x000000005cffc000, 0x000000005cffb000, 0x000000005ce84000, 0x000000005cff7000, 0x000000005cff5000, 0x000000005cff4000, 0x000000005cff3000, 0x000000005cff2000, 0x000000005cff1000, 0x000000005cfc7000, 0x000000005cfc6000, 0x000000005cfc4000, 0x000000005cfc3000, 0x000000005cfc2000, 0x000000005cfc1000, 0x000000005cfc0000, 0x000000005cfbf000, 0x000000005cfbb000, 0x000000005cfba000, 0x000000005cfb9000, 0x000000005cffd000, 0x000000005cfb7000, 0x000000005cfb6000, 0x000000005cfb5000 }
*/
@oshimaya
oshimaya / bootaa64_Makefile.diff
Created November 4, 2018 14:26
aarch64 build release fix
diff --git a/sys/stand/efiboot/bootaa64/Makefile b/sys/stand/efiboot/bootaa64/Makefile
index 5e12a6b139c1..9392765f3a67 100644
--- a/sys/stand/efiboot/bootaa64/Makefile
+++ b/sys/stand/efiboot/bootaa64/Makefile
@@ -17,4 +17,4 @@ CFLAGS+= -DEFIBOOT_ACPI
release: check_RELEASEDIR
${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
- ${RELEASEDIR}/${MACHINE}/installation/misc
+ ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
@oshimaya
oshimaya / armv6_go1.9.2_build_fail.log
Last active January 13, 2018 13:27
NetBSD/earmv6hf 8.0_BETA golang build log
##### Building Go bootstrap tool.
cmd/dist
##### Building Go toolchain using /usr/pkg/go14.
bootstrap/cmd/internal/dwarf
bootstrap/cmd/internal/objabi
bootstrap/cmd/internal/src
bootstrap/cmd/internal/sys
bootstrap/cmd/internal/obj
bootstrap/cmd/internal/obj/arm
@oshimaya
oshimaya / letsgonetbsd2017.txt
Last active March 10, 2017 12:25
let's go netbsd '2017
@oshimaya
oshimaya / pkgsrc-db4.diff
Last active June 16, 2016 18:14
TESTING: Diff for pkgsrc/databases/db4 on pkgsrc-current at 2016/06/16 to build on NetBSD/sh3 (and maybe NetBSD/vax)
diff --git a/databases/db4/distinfo b/databases/db4/distinfo
index 04de09a..a056407 100644
--- a/databases/db4/distinfo
+++ b/databases/db4/distinfo
@@ -5,7 +5,7 @@ RMD160 (db-4.8.30.tar.gz) = dd2fcd4c9b857a91e2f491fd4fadb0c51b993a9c
SHA512 (db-4.8.30.tar.gz) = d1a3c52b0ab54ae3fd6792e6396c9f74d25f36b2eb9e853b67ef9c872508a58c784c7818108d06d184f59601b70cc877916e67dfea6f0ee1ca2b07468c1041f1
Size (db-4.8.30.tar.gz) = 22887305 bytes
SHA1 (patch-aa) = 1004feec022eefbf3fd57b6d9af99edc5a2bf17a
-SHA1 (patch-ab) = 961c4ef5ad84739bd7eae57f407b89f42864b66e
+SHA1 (patch-ab) = 95b4e03dccdd723831a1076ff309995c2b28e161
@oshimaya
oshimaya / go14_patch_for_x86_newabi.patch
Created February 15, 2016 03:11
Patch for building go1.4 with x86/x86_64 newabi , GNU binutils 2.26 uses it
diff --git a/src/cmd/6l/asm.c b/src/cmd/6l/asm.c
index 18b5aa3..2e9d339 100644
--- a/src/cmd/6l/asm.c
+++ b/src/cmd/6l/asm.c
@@ -118,6 +118,8 @@ adddynrel(LSym *s, Reloc *r)
return;
case 256 + R_X86_64_GOTPCREL:
+ case 256 + R_X86_64_GOTPCRELX:
+ case 256 + R_X86_64_REX_GOTPCRELX: