Commit Graph

63 Commits

Author SHA1 Message Date
Jason Rhinelander c77d9a0e5b
add lunar debs 2023-04-21 18:30:52 -03:00
Jason Rhinelander fead72dc92
Don't install kinetic's broken base system recommends 2022-08-30 23:51:10 -03:00
Jason Rhinelander 5ef5a2c7d9
kinetic deb 2022-06-13 12:21:47 -03:00
Jason Rhinelander f6ff1e86d2
jammy 10.1.0 2022-05-30 19:54:29 -03:00
Jason Rhinelander 35001fccb4 use prebuilt builder ci; reformat 2021-10-27 12:12:30 -03:00
Jason Rhinelander 739401108a Add impish debs 2021-10-12 14:16:54 -03:00
Jason Rhinelander ded4c0efa2 Build in /staging 2021-04-22 15:45:14 -03:00
Jason Rhinelander 4fe94a7e39 Add hirsute debs 2021-04-22 14:24:08 -03:00
Jason Rhinelander fb982ffbe7 Merge remote-tracking branch 'origin/dev' into ubuntu/groovy 2020-11-12 17:12:09 -04:00
Jason Rhinelander 8bcc0aa77e Print CI machine at beginning of build 2020-11-12 16:59:49 -04:00
Jason Rhinelander 992da3c07b Rediff patches & fix drone conflicts 2020-11-11 19:49:48 -04:00
Jason Rhinelander ea154b7bf9 Merge remote-tracking branch 'origin/stable' into ubuntu/groovy 2020-11-11 18:45:33 -04:00
Jason Rhinelander 8175e5e810 Run lokid test under gdb
Scripts for running under gdb + dumping a stack trace on problems from
lokinet.
2020-11-06 18:04:20 -04:00
Jason Rhinelander 7f83c58c63 Merge arm/sim libs and collect headers in ios deps package 2020-11-06 00:41:28 -04:00
Jason Rhinelander 7d0eeeff06 Also build simulator library 2020-11-06 00:41:28 -04:00
Jason Rhinelander ca1a89ded0 Add ios build & upload
Also renames the android upload script to drone-android-blahblah to be
more consistent.
2020-11-06 00:41:28 -04:00
Jason Rhinelander 6cf17d4d28 Clean up submodule commands 2020-11-04 12:11:20 -04:00
Jason Rhinelander 792c658da4 Fix compiler over-optimization 2020-11-04 12:11:20 -04:00
Jason Rhinelander 0bc97684a2 Package merged wallet_api rather than plain wallet_api 2020-11-04 12:11:20 -04:00
Jason Rhinelander d032ffb225 Retitle build pipeline 2020-11-04 12:11:20 -04:00
Jason Rhinelander 7a533e19a3 Add android build to drone steps 2020-11-04 12:11:20 -04:00
Jason Rhinelander fdc35d5114 Remove boost filesystem/date-time from deps 2020-10-24 12:46:26 -03:00
Jason Rhinelander f3e9c1a693 Use sid more; crank clang version to 11
Switch several builds to sid, and updates the linux clang build to 11.
2020-10-24 12:43:28 -03:00
Jason Rhinelander dc16970e48 Remove staging repo for building debs
Using /staging isn't really needed now that we are into stable release
updates.
2020-10-21 03:30:04 -03:00
Jason Rhinelander b7dd5e8911 Target macos 10.12
When targetting macos <10.14 macos won't allow use of anything from
C++17 that throws, such as:
- std::get on a variant
- std::visit
- std::optional::value()
- std::any_cast

This avoids all of these.

For std::get, we either replace with std::get_if (where appropriate), or
else use a `var::get` implementation of std::get added to lokimq (also
updated here).  (This `var` namespace is just an `std` alias everywhere
*except* old target macos).

For std::visit, likewise lokimq adds an var::visit implementation for
old macos that we use.

std::optional::value() uses weren't useful anyway as everywhere it calls
them we've already checked that the option has a value, in which case we
can use `*opt` (which doesn't check for contents and throw).

std::any just has to be avoided as far as I can tell, but the one place
we used it is only ever a block, so I just replaced it with a `const
block*`.
2020-10-18 11:18:08 -03:00
Jason Rhinelander 026086613a Fix boost flags, enable LTO 2020-10-14 23:04:53 -03:00
Jason Rhinelander 30f77c2f21 Build with -DARCH_ID to make randomx happy
Also do the static build first so that test binaries pop out faster.
2020-10-14 18:52:32 -03:00
Jason Rhinelander 4788f40344 Set march to core2 for maximum mac compatibility 2020-10-14 02:35:59 -03:00
Jason Rhinelander 09529f4202 Windows build: do a generic build
The default uses -march=cpu which turns on avx2 and fma and other
CPU features that crash on older CPUs.
2020-10-12 15:51:24 -03:00
Jason Rhinelander f6c3adfb8e Small tweaks to build system
- make tagged and stable branch builds not add git tag to the tar.xz
  filename
- copy apt-get tweaks (to make it less noisy) from deb branches
- do a faster shallow submodule clone
- remove exclusion for removed is_hdd test
- remove deb_builder (deb building drone code is in its own branches)
- fix upload dir for a tagged build
2020-10-03 23:24:08 -03:00
Jason Rhinelander 9678a7de5f
Make static build compile for deprecit hardware (#1287) 2020-09-29 12:16:16 +10:00
Jason Rhinelander 14b6406763 Fix drone build name 2020-09-25 23:26:24 -03:00
Jason Rhinelander 30192c14f1 Drop groovy i386 build 2020-09-25 23:05:08 -03:00
Jason Rhinelander 89f539d68c Create groovy from sid 2020-09-25 23:01:16 -03:00
Jason Rhinelander 4982c276df Fixup drone deb build script 2020-09-25 23:00:07 -03:00
Jason Rhinelander 2bf9608577 Merge remote-tracking branch 'origin/dev' into deb8 2020-09-24 00:33:45 -03:00
Jason Rhinelander 50e080c521 Enable arm deb builds 2020-09-23 15:12:37 -03:00
Jason Rhinelander 6ac0592762 Move gpg into debian and allow it 2020-09-23 14:32:42 -03:00
Jason Rhinelander 99002eb01f de-https 2020-09-23 14:27:19 -03:00
Jason Rhinelander 5ef014a0ac Dearmor gpg key (as apt-get requires) 2020-09-23 14:15:32 -03:00
Jason Rhinelander dc29121273 Avoid needing multiple apt-get updates 2020-09-23 14:07:35 -03:00
Jason Rhinelander 90214ba39d Replace apt-key usage with copy in /etc/apt/trusted.gpg.d 2020-09-23 14:05:00 -03:00
Jason Rhinelander edf08ff1da Don't prepend /usr/lib/ccache
loki-core picks up ccache on its own
2020-09-22 20:37:28 -03:00
Jason Rhinelander ed23e6c6e7 Drop bionic arm64 build
ARM drone builds are heavily overloaded, drop one.
2020-09-22 16:45:35 -03:00
Jason Rhinelander 788aa9fb1a Add equivs 2020-09-22 13:36:18 -03:00
Jason Rhinelander f5a0c02dfc First stab at debs for loki8 2020-09-22 13:33:19 -03:00
Jason Rhinelander fb0aff57f6 Replace epee http client with curl-based client
In short: epee's http client is garbage, standard violating, and
unreliable.

This completely removes the epee http client support and replaces it
with cpr, a curl-based C++ wrapper.  rpc/http_client.h wraps cpr for RPC
requests specifically, but it is also usable directly.

This replacement has a number of advantages:

- requests are considerably more reliable.  The epee http client code
  assumes that a connection will be kept alive forever, and returns a
  failure if a connection is ever closed.  This results in some very
  annoying things: for example, preparing a transaction and then waiting
  a long tim before confirming it will usually result in an error
  communication with the daemon.  This is just terribly behaviour: the
  right thing to do on a connection failure is to resubmit the request.

- epee's http client is broken in lots of other ways: for example, it
  tries throwing SSL at the port to see if it is HTTPS, but this is
  protocol violating and just breaks (with a several second timeout) on
  anything that *isn't* epee http server (for example, when lokid is
  behind a proxying server).

- even when it isn't doing the above, the client breaks in other ways:
  for example, there is a comment (replaced in this PR) in the Trezor PR
  code that forces a connection close after every request because epee's
  http client doesn't do proper keep-alive request handling.

- it seems noticeably faster to me in practical use in this PR; both
  simple requests (for example, when running `lokid status`) and
  wallet<->daemon connections are faster, probably because of crappy
  code in epee.  (I think this is also related to the throw-ssl-at-it
  junk above: the epee client always generates an ssl certificate during
  static initialization because it might need one at some point).

- significantly reduces the amount of code we have to maintain.

- removes all the epee ssl option code: curl can handle all of that just
  fine.

- removes the epee socks proxy code; curl can handle that just fine.
  (And can do more: it also supports using HTTP/HTTPS proxies).

- When a cli wallet connection fails we know show why it failed (which
  now is an error message from curl), which could have all sorts of
  reasons like hostname resolution failure, bad ssl certificate, etc.
  Previously you just got a useless generic error that tells you
  nothing.

Other related changes in this PR:

- Drops the check-for-update and download-update code.  To the best of
my knowledge these have never been supported in loki-core and so it
didn't seem worth the trouble to convert them to use cpr for the
requests.

- Cleaned up node_rpc_proxy return values: there was an inconsistent mix
  of ways to return errors and how the returned strings were handled.
  Instead this cleans it up to return a pair<bool, val>, which (with
  C++17) can be transparently captured as:

    auto [success, val] = node.whatever(req);

  This drops the failure message string, but it was almost always set to
  something fairly useless (if we want to resurrect it we could easily
  change the first element to be a custom type with a bool operator for
  success, and a `.error` attribute containing some error string, but
  for the most part the current code wasn't doing much useful with the
  failure string).

- changed local detection (for automatic trusted daemon determination)
  to just look for localhost, and to not try to resolve anything.
  Trusting non-public IPs does not work well (e.g. with lokinet where
  all .loki addresses resolve to a local IP).

- ssl fingerprint option is removed; this isn't supported by curl
  (because it is essentially just duplicating what a custom cainfo
  bundle does)

- --daemon-ssl-allow-chained is removed; it wasn't a useful option (if
  you don't want chaining, don't specify a cainfo chain).

- --daemon-address is now a URL instead of just host:port.  (If you omit
  the protocol, http:// is prepended).

- --daemon-host and --daemon-port are now deprecated and produce a
  warning (in simplewallet) if used; the replacement is to use
  --daemon-address.

- --daemon-ssl is deprecated; specify --daemon-address=https://whatever
  instead.

- the above three are now hidden from --help

- reordered the wallet connection options to make more logical sense.
2020-08-07 17:14:03 -03:00
Jason Rhinelander c6b409eb8a Switch debian builds to testing
Stuff breaks more often on sid (like qt5 packages right now) and testing
is not far behind.
2020-07-02 12:56:36 -03:00
Jason Rhinelander 141d3cddbd Disable lto for Debug drone build 2020-07-02 12:55:28 -03:00
Jason Rhinelander c3bf6d6eb0 Bump OS X deployment target for drone CIs
MacOS build-in compiler doesn't like std::variant when targetting
anything earlier than 10.14.

(We can deal with this for releases by making a build for older macs
that uses a full clang stack, but will worry about that later).
2020-07-02 12:55:25 -03:00