linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

commit 706c045f469f8a9e2bf04810d8d6f33c11c195e5
parent 7cdd1d69bf3eba2b2517282d9500945f70304b39
Author: Jul <jul@9o.is>
Date:   Mon, 25 Aug 2025 15:47:31 +0800

add sync inside netbsd-curses tic/nbperf

Diffstat:
Mninja/functions.sh | 15+++++++++++++++
Mpkg/netbsd-curses/gen.sh | 5++---
2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/ninja/functions.sh b/ninja/functions.sh @@ -424,6 +424,7 @@ _ninja_flush_sync() { build sync $outdir/meta/version $gendir/version '|' $basedir/ninja/sync.sh if [ "$_ninja_buffer_sync" ]; then + _ninja_dedup _ninja_buffer_sync "$_ninja_buffer_sync" build phony "$_ninja_buffer_sync" $outdir/meta/version fi @@ -458,3 +459,17 @@ _ninja_flush() { _ninja_flush_headers } +_ninja_dedup() { + local variable=$1; shift + local src='' + local tmp='' + + for src in $*; do + case "$tmp" in + *" $src "* | "$src "* | *" $src") ;; + *) tmp="$tmp $src";; + esac + done + + eval "$variable='$tmp'" +} diff --git a/pkg/netbsd-curses/gen.sh b/pkg/netbsd-curses/gen.sh @@ -24,6 +24,7 @@ tic() { if [ "${3-}" ]; then bind term $3 fi + sync $srcdir/share/terminfo/terminfo deps $outdir/$1 } @@ -33,6 +34,7 @@ nbperf() { local src=$srcdir/$3 build nbperf $out $script $src '|' $script $outdir/tools/nbperf + sync $src deps $out } @@ -69,9 +71,6 @@ tic deps/terminfo.cdb -x nbperf genhash deps/hash.c lib/libterminfo/term.h nbperf genthash deps/termcap_hash.c lib/libterminfo/termcap_map.c -sync share/terminfo/terminfo -sync lib/libterminfo/termcap_map.c - headers lib/libcurses/curses.h \ lib/libcurses/unctrl.h \ lib/libterminfo/term.h \