Skip to content

Instantly share code, notes, and snippets.

View netpgpverify-vs-gnupg22.md

Versions

EL7

$ gpg2 --version
gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
@jperkin
jperkin / netbsd-triton.md
Last active Feb 23, 2021
Generate NetBSD Triton Images
View netbsd-triton.md

Creating NetBSD Bhyve/KVM images suitable for running in Triton.

Create Install VM

Create the VM json:

{
  "brand": "bhyve",
  "alias": "netbsd-install",
View netbsd-triton.md

/etc/rc.d/triton

#!/bin/sh
#
# $NetBSD$
#
# Runs before network, configuring all networking-related files based on Triton
# metadata, leaving network to actually perform the bringup.
#
View gist:05c881e1e662548e9c8d12528a56e868
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index a8e998d91239..be874352024d 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -105,7 +105,15 @@ MAKEFLAGS+=		OSX_VERSION=${OSX_VERSION:Q}
 _OPSYS_INCLUDE_DIRS?=	/usr/include
 .elif exists(/usr/bin/xcrun)
 .  if !defined(OSX_SDK_PATH)
-OSX_SDK_PATH!=	/usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path 2>/dev/null || echo /nonexistent
View binutils-ld.md

Tested on SunOS (with and without "disable-ld" option), and macOS (only supports "disable-ld").

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/Makefile,v
retrieving revision 1.96
diff -u -r1.96 Makefile
--- Makefile	27 Jan 2021 15:21:21 -0000	1.96
View gist:a1d08a1911f0aea80fbebaeba5397d47
# List of packages that must have all built successfully before publishing
# will be enabled. One per line, matched using /^<pkg>/ in the pbuild file.
#
# Core bootstrap/image packages
#
build-essential-[0-9]
coreutils-[0-9]
mozilla-rootcerts-[0-9]
nodejs-14.
nodejs-12.
View gist:a3edb750cb4c3c922cc881013bf681ee
[ 46982.105849] panic: kernel diagnostic assertion "c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c" failed: file "/home/source/ab/HEAD/src/sys/kern/kern_timeout.c", line 323 running callout 0xffff8ae13bedd5d0: c_func (0xffffffff809fb0ce) c_flags (0x100) destroyed from 0xffffffff809f94d9
[ 46982.133255] cpu0: Begin traceback...
[ 46982.135752] vpanic() at netbsd:vpanic+0x156
[ 46982.135752] __x86_indirect_thunk_rax() at netbsd:__x86_indirect_thunk_rax
[ 46982.135752] callout_destroy() at netbsd:callout_destroy+0x90
[ 46982.171030] tcp_close() at netbsd:tcp_close+0x166
[ 46982.171030] tcp_input() at netbsd:tcp_input+0x25f0
[ 46982.176131] ipintr() at netbsd:ipintr+0xa2a
[ 46982.176131] softint_dispatch() at netbsd:softint_dispatch+0xf5
[ 46982.176131] DDB lost frame for netbsd:Xsoftintr+0x4f, trying 0xffff9901ce9740f0
View pkg_install-check_os_version.diff
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c
index e78e6190ac5a..c5239d14a329 100644
--- a/pkgtools/pkg_install/files/add/perform.c
+++ b/pkgtools/pkg_install/files/add/perform.c
@@ -151,6 +151,13 @@ compatible_platform(const char *opsys, const char *host, const char *package)
{
int i = 0;
+ /*
+ * If the user has set the CHECK_OS_VERSION variable to "no" then skip any
View gist:190b755b8593dfe4b8c593adeda2adb6
fffffd7ff7ffb550 regex::literal::imp::LiteralSearcher::prefixes::h07daa955affcf676+0xcc()
fffffd7ff7ffe3e0 regex::exec::ExecBuilder::build::h1744fb7549c5d010+0x1a15()
fffffd7ff7ffe490 regex::re_builder::unicode::RegexBuilder::build::h4da04b1316499a7c+0xbe()
fffffd7ff7ffe500 regex::re_unicode::Regex::new::he6c1c617375cf914+0x29()
fffffd7ff7ffe690 compiletest::runtest::TestCx::normalize_output::hf715adef74b942b2+0x4dc()
fffffd7ff7ffe7f0 compiletest::runtest::TestCx::load_compare_outputs::hc883b9d120842f16+0x34a()
fffffd7ff7ffefe0 compiletest::runtest::TestCx::run_revision::h6594f1e4394ef0af+0x60df()
fffffd7ff7fff420 compiletest::runtest::run::h54983a8424b96b41+0x50d()
fffffd7ff7fff7d0 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h66218b88081feb89+0x53()
fffffd7ff7fff800 test::__rust_begin_short_backtrace::h1fc9966a6964b6f4+0x13()
View hugo.diff
diff --git a/www/hugo/Makefile b/www/hugo/Makefile
index c59b057dd91..abf44b2a90e 100644
--- a/www/hugo/Makefile
+++ b/www/hugo/Makefile
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.35 2020/11/08 21:59:38 bsiegert Exp $
-DISTNAME= hugo-0.55.6
+DISTNAME= hugo-0.78.2
PKGNAME= go-${DISTNAME}