pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

blink-git: new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Tue Jan 10 01:08:00 2023 +0100
Changeset:	4f305d5428e285e88e317b70a1fab023f275f514

Modified Files:
	Makefile
Added Files:
	blink-git/DESCR
	blink-git/Makefile
	blink-git/PLIST
	blink-git/TODO

Log Message:
blink-git: new package

Does not currently build on NetBSD, reported upstream.

blink is a virtual machine that runs statically-compiled x86-64-linux
programs on different operating systems and hardware architectures.
It's designed to do the same thing as the qemu-x86_64 command,
except (a) rather than being a 4mb binary, Blink only has a ~156kb
footprint; and (b) Blink goes 2x faster than Qemu on some benchmarks
such as emulating GCC. The tradeoff is Blink doesn't have as many
features as Qemu. Blink is a great fit when you want a virtual
machine that's extremely small and runs ephemeral programs much
faster.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4f305d5428e285e88e317b70a1fab023f275f514

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile           |  1 +
 blink-git/DESCR    |  9 +++++++++
 blink-git/Makefile | 23 +++++++++++++++++++++++
 blink-git/PLIST    |  2 ++
 blink-git/TODO     | 10 ++++++++++
 5 files changed, 45 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 2fd023c914..808ccf034e 100644
--- a/Makefile
+++ b/Makefile
@@ -294,6 +294,7 @@ SUBDIR+=	blad
 SUBDIR+=	blast2go
 SUBDIR+=	bleachbit
 SUBDIR+=	blink
+SUBDIR+=	blink-git
 SUBDIR+=	blueprint-compiler
 SUBDIR+=	blueproxy
 SUBDIR+=	bluez
diff --git a/blink-git/DESCR b/blink-git/DESCR
new file mode 100644
index 0000000000..af648c8478
--- /dev/null
+++ b/blink-git/DESCR
@@ -0,0 +1,9 @@
+blink is a virtual machine that runs statically-compiled x86-64-linux
+programs on different operating systems and hardware architectures.
+It's designed to do the same thing as the qemu-x86_64 command,
+except (a) rather than being a 4mb binary, Blink only has a ~156kb
+footprint; and (b) Blink goes 2x faster than Qemu on some benchmarks
+such as emulating GCC. The tradeoff is Blink doesn't have as many
+features as Qemu. Blink is a great fit when you want a virtual
+machine that's extremely small and runs ephemeral programs much
+faster.
diff --git a/blink-git/Makefile b/blink-git/Makefile
new file mode 100644
index 0000000000..f0ae59699f
--- /dev/null
+++ b/blink-git/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.18 2015/09/13 07:33:05 thomasklausner Exp $
+
+DISTNAME=	blink-0.0
+CATEGORIES=	emulators
+GIT_REPO=	https://github.com/jart/blink.git
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/jart/blink
+COMMENT=	Tiniest x86-64-linux emulator
+LICENSE=	isc
+
+USE_LANGUAGES=	c11
+USE_TOOLS+=	gmake
+BUILD_TARGET=	o
+TEST_TARGET=	check
+
+INSTALLATION_DIRS=	bin
+
+do-install:
+	${INSTALL_PROGRAM} ${WRSRKC}/o/blink/blink ${DESTDIR}${PREFIX}/bin
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/blink-git/PLIST b/blink-git/PLIST
new file mode 100644
index 0000000000..0350fc3fc2
--- /dev/null
+++ b/blink-git/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/blink
diff --git a/blink-git/TODO b/blink-git/TODO
new file mode 100644
index 0000000000..394c9c0961
--- /dev/null
+++ b/blink-git/TODO
@@ -0,0 +1,10 @@
+Does not compile on NetBSD 10.99.2/amd64 with:
+
+In file included from /usr/include/sys/signal.h:112,
+                 from /usr/include/signal.h:45,
+                 from blink/blinkenlights.c:24:
+./blink/linux.h:461:6: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
+  461 |   u8 si_signo[4];
+      |      ^~~~~~~~
+
+Reported upstream as https://github.com/jart/blink/issues/24


Home | Main Index | Thread Index | Old Index