mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
vere: removes ncurses dependency
This commit is contained in:
parent
6ea2acea86
commit
8fac63661f
@ -10,7 +10,7 @@ let
|
|||||||
|
|
||||||
libs =
|
libs =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[ openssl zlib curl gmp scrypt libsigsegv ncurses openssl zlib lmdb ];
|
[ openssl zlib curl gmp scrypt libsigsegv openssl zlib lmdb ];
|
||||||
|
|
||||||
osx =
|
osx =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
@ -18,7 +18,7 @@ let
|
|||||||
|
|
||||||
deps =
|
deps =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[ curl gmp libsigsegv ncurses openssl zlib lmdb ];
|
[ curl gmp libsigsegv openssl zlib lmdb ];
|
||||||
|
|
||||||
vendor =
|
vendor =
|
||||||
[ argon2 softfloat3 ed25519 ent ge-additions libaes_siv h2o scrypt uv murmur3 secp256k1 sni ivory-header ca-header ];
|
[ argon2 softfloat3 ed25519 ent ge-additions libaes_siv h2o scrypt uv murmur3 secp256k1 sni ivory-header ca-header ];
|
||||||
|
@ -12,7 +12,7 @@ let
|
|||||||
|
|
||||||
crossdeps =
|
crossdeps =
|
||||||
with env;
|
with env;
|
||||||
[ curl libgmp libsigsegv ncurses openssl zlib lmdb ];
|
[ curl libgmp libsigsegv openssl zlib lmdb ];
|
||||||
|
|
||||||
vendor =
|
vendor =
|
||||||
with deps;
|
with deps;
|
||||||
@ -27,7 +27,6 @@ env.make_derivation {
|
|||||||
MEMORY_DEBUG = debug;
|
MEMORY_DEBUG = debug;
|
||||||
CPU_DEBUG = debug;
|
CPU_DEBUG = debug;
|
||||||
EVENT_TIME_DEBUG = false;
|
EVENT_TIME_DEBUG = false;
|
||||||
NCURSES = env.ncurses;
|
|
||||||
|
|
||||||
name = "${name}-${env_name}";
|
name = "${name}-${env_name}";
|
||||||
exename = name;
|
exename = name;
|
||||||
|
@ -17,6 +17,5 @@ bash ./configure
|
|||||||
make build/urbit build/urbit-worker -j8
|
make build/urbit build/urbit-worker -j8
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -r $NCURSES/share/terminfo $out/bin/$exename-terminfo
|
|
||||||
cp ./build/urbit $out/bin/$exename
|
cp ./build/urbit $out/bin/$exename
|
||||||
cp ./build/urbit-worker $out/bin/$exename-worker
|
cp ./build/urbit-worker $out/bin/$exename-worker
|
||||||
|
@ -33,7 +33,7 @@ let
|
|||||||
|
|
||||||
builds-for-platform = plat:
|
builds-for-platform = plat:
|
||||||
plat.deps // {
|
plat.deps // {
|
||||||
inherit (plat.env) curl libgmp libsigsegv ncurses openssl zlib lmdb;
|
inherit (plat.env) curl libgmp libsigsegv openssl zlib lmdb;
|
||||||
inherit (plat.env) cmake_toolchain;
|
inherit (plat.env) cmake_toolchain;
|
||||||
ent = ent plat;
|
ent = ent plat;
|
||||||
ge-additions = ge-additions plat;
|
ge-additions = ge-additions plat;
|
||||||
|
2
pkg/urbit/configure
vendored
2
pkg/urbit/configure
vendored
@ -6,7 +6,7 @@ URBIT_VERSION="0.10.5"
|
|||||||
|
|
||||||
deps=" \
|
deps=" \
|
||||||
curl gmp sigsegv argon2 ed25519 ent h2o scrypt sni uv murmur3 secp256k1 \
|
curl gmp sigsegv argon2 ed25519 ent h2o scrypt sni uv murmur3 secp256k1 \
|
||||||
softfloat3 ncurses ssl crypto z lmdb ge-additions aes_siv \
|
softfloat3 ssl crypto z lmdb ge-additions aes_siv \
|
||||||
"
|
"
|
||||||
|
|
||||||
headers=" \
|
headers=" \
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <sigsegv.h>
|
#include <sigsegv.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <openssl/conf.h>
|
#include <openssl/conf.h>
|
||||||
#include <openssl/engine.h>
|
#include <openssl/engine.h>
|
||||||
@ -451,7 +449,6 @@ report(void)
|
|||||||
(libsigsegv_version >> 8) & 0xff,
|
(libsigsegv_version >> 8) & 0xff,
|
||||||
libsigsegv_version & 0xff);
|
libsigsegv_version & 0xff);
|
||||||
printf("openssl: %s\n", SSLeay_version(SSLEAY_VERSION));
|
printf("openssl: %s\n", SSLeay_version(SSLEAY_VERSION));
|
||||||
printf("curses: %s\n", curses_version());
|
|
||||||
printf("libuv: %s\n", uv_version_string());
|
printf("libuv: %s\n", uv_version_string());
|
||||||
printf("libh2o: %d.%d.%d\n",
|
printf("libh2o: %d.%d.%d\n",
|
||||||
H2O_LIBRARY_VERSION_MAJOR,
|
H2O_LIBRARY_VERSION_MAJOR,
|
||||||
@ -603,12 +600,6 @@ main(c3_i argc,
|
|||||||
u3_Host.wrk_c = c3_malloc(worker_exe_len);
|
u3_Host.wrk_c = c3_malloc(worker_exe_len);
|
||||||
snprintf(u3_Host.wrk_c, worker_exe_len, "%s-worker", argv[0]);
|
snprintf(u3_Host.wrk_c, worker_exe_len, "%s-worker", argv[0]);
|
||||||
|
|
||||||
// Set TERMINFO_DIRS environment variable
|
|
||||||
c3_i terminfo_len = 1 + strlen(argv[0]) + strlen("-terminfo");
|
|
||||||
c3_c terminfo_dir[terminfo_len];
|
|
||||||
snprintf(terminfo_dir, terminfo_len, "%s-terminfo", argv[0]);
|
|
||||||
setenv("TERMINFO_DIRS", terminfo_dir, 1);
|
|
||||||
|
|
||||||
if ( c3y == u3_Host.ops_u.dem ) {
|
if ( c3y == u3_Host.ops_u.dem ) {
|
||||||
_fork_into_background_process();
|
_fork_into_background_process();
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,6 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
#include "vere/vere.h"
|
#include "vere/vere.h"
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <ftw.h>
|
#include <ftw.h>
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
|
@ -24,9 +24,6 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
#include "vere/vere.h"
|
#include "vere/vere.h"
|
||||||
|
@ -8,9 +8,7 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <ncurses/term.h>
|
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
#include "vere/vere.h"
|
#include "vere/vere.h"
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
#include "vere/vere.h"
|
#include "vere/vere.h"
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <ftw.h>
|
#include <ftw.h>
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
|
@ -15,9 +15,6 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <uv.h>
|
#include <uv.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ncurses/curses.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <ncurses/term.h>
|
|
||||||
|
|
||||||
#include "all.h"
|
#include "all.h"
|
||||||
#include <vere/vere.h>
|
#include <vere/vere.h>
|
||||||
|
3
sh/cross
3
sh/cross
@ -26,6 +26,3 @@ res=$(release "$env.$pkg")
|
|||||||
mkdir -p ./cross/$env
|
mkdir -p ./cross/$env
|
||||||
traced cp -f $res/bin/$pkg ./cross/$env/$pkg
|
traced cp -f $res/bin/$pkg ./cross/$env/$pkg
|
||||||
traced cp -f $res/bin/$pkg-worker ./cross/$env/$pkg-worker
|
traced cp -f $res/bin/$pkg-worker ./cross/$env/$pkg-worker
|
||||||
traced cp -r $res/bin/$pkg-terminfo ./cross/$env/$pkg-terminfo
|
|
||||||
|
|
||||||
chmod -R u+wr ./cross/$env/$pkg-terminfo
|
|
||||||
|
Loading…
Reference in New Issue
Block a user