Commit Graph

23360 Commits

Author SHA1 Message Date
~locpyl-tidnyd
85030ab72d vere: revert d554c18dc3, set mingw binary mode using _fmode 2021-03-30 10:15:50 +00:00
~locpyl-tidnyd
a36193c967 compat: mingw: don't export secp256k1 symbols from exe 2021-03-30 07:30:40 +00:00
~locpyl-tidnyd
0d9adffb25 vere: mingw: build static executables 2021-03-29 23:35:12 +00:00
~locpyl-tidnyd
1c58db28de meta: add mingw build action 2021-03-29 20:49:41 +00:00
~locpyl-tidnyd
c690b57124 vere: fix strict builds 2021-03-29 20:49:00 +00:00
~locpyl-tidnyd
201f1f36f2 compat: support build from a tarball that does not contain binary pills 2021-03-29 15:42:15 +00:00
~locpyl-tidnyd
2b5f00075d compat: move build-mingw script into configure 2021-03-29 13:27:27 +00:00
~locpyl-tidnyd
d03e48702a compat: fix .patch file modes 2021-03-29 12:21:29 +00:00
~locpyl-tidnyd
19fc2bcf7c vere: export term.c:_write() as u3_write_fd(), use in dprintf() replacement 2021-03-29 12:19:21 +00:00
~locpyl-tidnyd
00bd79704f vere: select dumb terminal with #define rather than Makefile conditional 2021-03-29 11:58:49 +00:00
~locpyl-tidnyd
4d14b410d5 vere: basic MingW compatibility changes
This commit adds code changes, compatibility functions, stubs and a build script
to build urbit binaries on MingW64. Some functionality is limited or missing:
terminal input and daemon mode is not available, graceful exit does not work,
and the binaries are not completely static and use (portable) MingW dlls.

To build the binaries, install the MSYS2 environment, check out or copy the urbit
repo and pill binaries, open a MingW64 shell and `cd pkg/urbit && ./build-mingw`.
2021-03-29 09:56:17 +00:00
~locpyl-tidnyd
ef0b87a1cb vere: #include termios.h from vere.h where it is actually used 2021-03-28 17:15:07 +00:00
~locpyl-tidnyd
a2ad6365b7 vere: lmdb: wrap mdb_strerror in mdb_logerror
To avoid allocating a buffer on MingW, mdb_strerror uses a horrible
stack hack which explodes in vere. Source patch replaces it with mdb_logerror
on MingW. This change adds the default implementation for other platforms.
2021-03-28 09:54:19 +00:00
~locpyl-tidnyd
56348ed61e vere: add -fcommon to be compatible with gcc 10
gcc 9 and earlier default to -fcommon, i.e. linker merges identical symbols. gcc 10 defaults
to -fno-common, and the build breaks because c3_global is not defined anywhere.
2021-03-28 07:37:10 +00:00
~locpyl-tidnyd
a9d166ced1 vere: comment out unused code that doesn't compile on MingW 2021-03-27 20:18:00 +00:00
~locpyl-tidnyd
b105ce946a u3: add U3_OS_PROF macro to gate profiling-related code 2021-03-27 20:17:09 +00:00
~locpyl-tidnyd
ad81a017c5 libent: use BCryptGenRandom on Windows 2021-03-27 20:15:56 +00:00
~locpyl-tidnyd
6ed4b7077b vere: replace dprintf (missing on MingW) with snprintf+write 2021-03-27 20:15:17 +00:00
~locpyl-tidnyd
d31d6f656f u3: rename function to avoid name clash on MingW 2021-03-27 20:13:19 +00:00
~locpyl-tidnyd
bf38e79520 u3: centralize use of u3_Signal 2021-03-27 20:12:27 +00:00
~locpyl-tidnyd
0d9de4f304 u3: fix patch cleanup
In some places, _ce_patch_delete is invoked before _ce_patch_free. This works on Unix,
where an open file can be unlinked, but on Windows one must open files with an extra
flag FILE_SHARE_DELETE for this to work, and there is no way to pass this flag to open().
2021-03-27 20:11:20 +00:00
~locpyl-tidnyd
0e47c37f9c vere: use embedded CA store directly rather than save it to a tempfile
Vere writes the embedded CA store to a tempfile and directs libcurl and libh2o to pick it up from there,
but on MingW this is inconvenient because temp paths are different and mkstemp(3) is not available.
Loading CA store certificates directly from memory is tidier.
2021-03-27 20:08:22 +00:00
~locpyl-tidnyd
98c002bc26 u3: fix typo: show suggested loom base if fixed address is unavailable 2021-03-27 20:04:55 +00:00
~locpyl-tidnyd
577a267ed3 vere: cleanup and reorder #includes
Most C files have multiple #includes that are duplicated in include/c/portable.h.
Removing them helps keep include-related #ifdefs in include/c/portable.h.
#including library files after all.h avoids clashes on MingW and allows portable.h
to add compatibility #defines where necessary.
2021-03-27 20:03:09 +00:00
~locpyl-tidnyd
d554c18dc3 vere: request binary mode in fopen/open calls
The C runtime MingW relies on, msvcrt.dll, has the notion of accessing files in text and binary mode.
In text mode, it does CRLF conversion and handles some control characters, which breaks binary files.
This change adds O_BINARY in every fopen/open call and #defines it to 0 on other platforms.
2021-03-27 19:58:18 +00:00
~locpyl-tidnyd
186fe8d577 jets: rename jets/c/con.c due to clash with legacy CP/M device names 2021-03-27 19:54:01 +00:00
pilfer-pandex
c9c11837b8 king: fix bug Show Ipv4 2021-02-03 15:26:19 -08:00
pilfer-pandex
d625a0e5ed king: address joe and ted 2021-02-03 14:50:23 -08:00
pilfer-pandex
b9cc2edede king: version number 1.1.1 2021-02-02 15:59:36 -08:00
pilfer-pandex
e70fa2629d king: error message for lock file 2021-02-02 15:58:30 -08:00
pilfer-pandex
ac00ea43f8 king: fix lane format; vere: don't crash on bad lane 2021-02-02 10:54:07 -08:00
Philip Monk
f7697719fb
Merge remote-tracking branch 'origin/master' into release/next-vere 2021-01-29 14:49:43 -08:00
pilfer-pandex
269ec2d596 Merge branch 'master' into release/next-vere 2021-01-29 14:46:51 -08:00
pilfer-pandex
0f069a08e8 Merge remote-tracking branch 'origin/master' into pp/wire 2021-01-29 14:17:23 -08:00
pilfer-pandex
1042422bbe king: address joe's comments again 2021-01-29 14:15:27 -08:00
pilfer-pandex
2fdc5ad351 king: version number 1.1 2021-01-29 14:02:10 -08:00
Liam Fitzgerald
9c30e4e126
glob: update to 0v1.39us5.oj5a9.9as9u.od9db.0dipj 2021-01-28 10:22:45 +10:00
Liam Fitzgerald
9161aa8ae4
Merge remote-tracking branch 'origin/ixv/lens-and-graphs-fix' 2021-01-28 10:09:10 +10:00
Liam Fitzgerald
4a90989064
Merge pull request #4340 from urbit/james/hark/usehovering
interface: consistent hover events
2021-01-28 10:05:44 +10:00
matildepark
476d106e34
Merge pull request #4334 from urbit/lf/store-debug
interface: add debug shim to store
2021-01-27 18:24:12 -05:00
matildepark
a3a730da67
Merge pull request #4339 from tylershuster/modal-button-semantics
fixes urbit/landscape#216
2021-01-27 17:47:52 -05:00
Tyler Brown Cifu Shuster
a81bca8661 interface: changes ModalButton semantics for keyboard acessibility
fixes urbit/landscape#216
2021-01-27 14:25:57 -08:00
James Acklin
71d8a266c4 hark: remove hook option
Fixes urbit/landscape#265
2021-01-27 17:25:01 -05:00
James Acklin
512da2d7ff hark: simplify hook
Fixes urbit/landscape#265
2021-01-27 17:23:51 -05:00
James Acklin
71a4fffb76 hark: persist hovering control
Fixes urbit/landscape#265
2021-01-27 15:52:28 -05:00
Isaac Visintainer
59e070e46e graph-store: updated tree type in import flow 2021-01-26 14:32:38 -08:00
Isaac Visintainer
d902f339c2 lens: remove chat-* exports 2021-01-26 14:32:38 -08:00
matildepark
8f3afbd0ef
Merge pull request #4331 from urbit/lf/hark-lazy-scroll
notifications: lazy load correctly
2021-01-26 16:19:39 -05:00
matildepark
b227c18354
Merge pull request #4332 from urbit/lf/circular-json-err
localState: prevent serialization of HTMLElement
2021-01-26 14:33:43 -05:00
Matilde Park
0a632b117f localState: add 'omniboxShown' to blacklist 2021-01-26 14:15:53 -05:00