kozyilmaz
3c3623ef23
[macOS] added curl method for param download
2017-12-17 19:30:19 +03:00
Homu
83af270002
Auto merge of #2786 - str4d:2074-build, r=str4d
...
Build system improvements
Includes commits cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6978
- Only the first commit (second is for QT)
- bitcoin/bitcoin#7059
- bitcoin/bitcoin#7603
- Only the first commit (without the `BITCOIN_QT_BIN` variable; the rest are for QT)
- bitcoin/bitcoin#7954
- bitcoin/bitcoin#8314
- Only the second commit (first is for QT)
- bitcoin/bitcoin#8504
- Only the first commit (second was undoing something we didn't have)
- bitcoin/bitcoin#8520
- bitcoin/bitcoin#8563
- bitcoin/bitcoin#8249
- bitcoin/bitcoin#9156
- bitcoin/bitcoin#9831
- bitcoin/bitcoin#9789
- bitcoin/bitcoin#10766
Part of #2074 .
2017-12-15 05:04:44 -08:00
Homu
89aaa67e9e
Auto merge of #2769 - syd0:rename-bitcoin-bash-completion, r=str4d
...
Rename bitcoin bash completion files so that they refer to zcash and not bitcoin.
This closes #2167
2017-12-04 04:58:19 -08:00
Jack Grigg
704337b2b8
Move Zcash flags into configure.ac
2017-12-01 14:10:18 +00:00
Jack Grigg
c1fcdd01dd
Change --enable-werror to apply to all warnings, use it in build.sh
2017-12-01 14:10:18 +00:00
Jack Grigg
e4cd341260
Replace hard-coded defaults for HOST and BUILD with config.guess
2017-11-29 15:25:14 +00:00
Jack Grigg
7fa05b29b6
Use g-prefixed coreutils commands if they are available
...
If they are present on the system, it means that the non-prefixed ones are not
necessarily the versions we want, while the prefixed ones are highly likely to
be the ones from GNU Coreutils.
2017-11-29 15:24:21 +00:00
syd
e619c21944
Rename bash completion files so that they refer to zcash and not bitcoin.
...
This closes #2167
2017-11-28 15:24:15 -05:00
Homu
0eebdefb8a
Auto merge of #2597 - kpcyrd:fetch-ipfs, r=str4d
...
Fetch params from ipfs if possible
This patch allows fetch-params to download the params from [ipfs], if it's installed. This reduces the need for a central server and ensures the params are available if the official server ceases to exist.
For now, the default is still wget. If wget exits with an error, the script automatically tries ipfs. To use ipfs instead of wget:
ZC_DISABLE_WGET=1 ./zcutil/fetch-params.sh
[ipfs]: https://github.com/ipfs/go-ipfs
2017-09-21 09:26:29 -07:00
kpcyrd
076e177dd9
Prefer wget over ipfs
2017-09-21 03:28:14 +02:00
kpcyrd
3ccbbe31a4
Fetch params from ipfs if possible
...
Disable ipfs with ZC_DISABLE_IPFS=
2017-09-21 03:28:04 +02:00
Homu
e797c7bdb1
Auto merge of #2586 - str4d:release-script-build-progress, r=str4d
...
Add build progress to the release script if progressbar module is available
Install progressbar2 in your Python path to see the build progress.
2017-09-19 14:43:11 -07:00
Homu
151932d478
Auto merge of #2600 - str4d:2497-hotfix-release, r=str4d
...
Implement process for hotfix releases
Closes #2497 .
2017-09-18 16:02:26 -07:00
Jack Grigg
fd5724eca7
make-release.py: Send stderr to stdout
2017-09-18 10:45:03 +01:00
Jack Grigg
24bfc7c6c6
Enforce sequential hotfix versioning
2017-08-31 02:05:07 +01:00
Jack Grigg
869c9f91c4
Add hotfix support to release script
2017-08-30 13:02:50 +01:00
Jack Grigg
d9d33a4b78
Add build progress to the release script if progressbar module is available
...
Install progressbar2 in your Python path to see the build progress.
2017-08-15 13:45:06 +01:00
Bjorn Hjortsberg
4272a1e2b1
Do not warn on built in declaration mismatch
2017-07-20 13:27:37 +02:00
Jack Grigg
caafbbb483
Pull in temporary release notes during the release process
2017-06-29 15:42:40 -07:00
Homu
35bf9e73ff
Auto merge of #2420 - kozyilmaz:disable-libs, r=str4d
...
option to disable building libraries (zcutil/build.sh)
option to disable building libraries (zcutil/build.sh)
2017-06-15 07:31:46 -07:00
kozyilmaz
c63417bbe7
option to disable building libraries (zcutil/build.sh)
2017-06-04 19:46:35 +03:00
kozyilmaz
cf4f400ca8
[macOS] system linker does not support “--version” option but only “-v”
2017-05-31 10:38:02 +03:00
Nathan Wilcox
88bf7eb050
Add a few more version strings to positive parser test.
2017-05-22 21:23:11 -07:00
Nathan Wilcox
187e64c7ab
Consider both beta and rc versions to be `IS_RELEASE == false`.
2017-05-22 20:42:00 -07:00
Nathan Wilcox
92333721e5
Examine all future versions which are assumed to follow the same Version parser schema.
2017-05-22 20:38:22 -07:00
Nathan Wilcox
73a3f7dc02
Include release version in commit comments.
2017-05-22 20:38:06 -07:00
Nathan Wilcox
0df82709b4
First full-release-branch version of script; rewrite large swatch of release-process.md. [Manually tested.]
2017-05-22 12:34:00 -07:00
Nathan Wilcox
c66c5ab21f
Tidy up / systematize logging output a bit more.
2017-05-19 18:20:00 -07:00
Nathan Wilcox
08d66a9c01
Polish logging a bit more.
2017-05-19 18:09:35 -07:00
Nathan Wilcox
c62edf9471
Generate manpages; commit that; improve error output in sh_log.
2017-05-19 18:05:02 -07:00
Nathan Wilcox
785244020a
Commit the version changes and build.
2017-05-19 18:05:02 -07:00
Nathan Wilcox
f6b9ffefb7
Shorten the arg log line.
2017-05-19 18:05:02 -07:00
Nathan Wilcox
14b2a420d3
Switch from `sh_out_logged` to `sh_log`.
2017-05-19 17:35:20 -07:00
Nathan Wilcox
4dbb6c0b1d
Modify the `APPROX_RELEASE_HEIGHT`.
2017-05-19 17:09:37 -07:00
Nathan Wilcox
ab55424763
Generalize buildnum patching for both `clientversion.h` and `configure.ac`.
2017-05-19 16:45:01 -07:00
Nathan Wilcox
482291582e
Implement the IS_RELEASE rule for betas.
2017-05-19 16:35:44 -07:00
Nathan Wilcox
68ab915a24
Implement `PathPatcher` abstraction, `clientversion.h` rewrite, and build numbering w/ unittests.
2017-05-19 16:32:09 -07:00
Nathan Wilcox
2d8d493ff9
Exit instead of raising an unexpected exception, since it's already logged.
2017-05-19 15:27:07 -07:00
Nathan Wilcox
fad06b020b
Make sure to pull the latest master.
2017-05-19 15:25:39 -07:00
Nathan Wilcox
ea5abe2ca7
Add an option to run against a different repo directory.
2017-05-19 15:15:59 -07:00
Nathan Wilcox
b43194baee
Make --help output clean by not running self-test.
2017-05-19 13:09:24 -07:00
Nathan Wilcox
1ecb494896
Always run unittests prior to actual runs.
2017-05-19 13:08:26 -07:00
Nathan Wilcox
b9b7f25fb9
Make SystemExit errors less redundant in output; verify clean git status on master.
2017-05-19 13:05:55 -07:00
Nathan Wilcox
3250b3d34e
Add version sorting, assert that RELEASE_PREV is the most recent release.
2017-05-19 13:00:59 -07:00
Nathan Wilcox
7f53785735
Add support for beta/rc release versions.
2017-05-19 12:24:22 -07:00
Nathan Wilcox
a93f4de2f6
Add all of the zcash release tags in my current repo as positive test vector.
2017-05-19 12:20:14 -07:00
Nathan Wilcox
987d040660
Add another case from debian-style versions.
2017-05-19 12:17:07 -07:00
Nathan Wilcox
6e5b990a35
Update version spec by altering test; also update regex to pass single 0 digits in major/minor/patch.
2017-05-19 12:16:13 -07:00
Nathan Wilcox
30cc01ef13
Start on a make-release.py script; currently just arg parsing and unittests [unittests fail].
2017-05-19 12:14:46 -07:00
Homu
4578919278
Auto merge of #2281 - str4d:release-version-handling, r=nathan-at-least
...
Release version handling
- Convert Zcash versions to Debian format for packaging
- [manpage] Handle build numbers in versions
2017-05-18 17:40:47 -07:00
Homu
2adeb3948b
Auto merge of #2369 - nathan-at-least:build-toolchain-logging, r=nathan-at-least
...
Print toolchain versions before making depends, autoconf, or main build.
Closes #2218 .
Note: I spent a half hour attempting to have make do this so that people not using `build.sh` would get the same output. There's no easy way I found to ensure that output occurs first and regardless of the result of other build rules.
2017-05-15 13:12:05 -07:00
Nathan Wilcox
867d3e344f
Show toolchain versions in build.sh.
2017-05-11 22:02:00 -07:00
Daira Hopwood
b04529fefd
Disable building Proton by default.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2017-05-10 16:54:58 +01:00
Jack Grigg
a2e20e9ac6
Convert Zcash versions to Debian format
2017-04-19 13:45:55 +12:00
Simon
f493d3e044
Add --disable-proton flag to build.sh. Proton has build/linker issues with gcc 4.9.2 and requires gcc 5.x.
2017-03-25 09:41:54 -07:00
Sean Bowe
802ea76b3a
Allow Rust-language related assets to be disabled with `--disable-rust`.
2017-03-18 07:47:40 -06:00
zkbot
a28b17b7b7
Auto merge of #1636 - daira:fix-licensing-and-remove-qt, r=str4d
...
Remove QT code
This removes the QT wallet code, and updates license documentation accordingly.
2017-03-10 23:47:43 +00:00
Simon
abecfc422c
Remove redundant gui options from build scripts
2017-03-10 10:35:23 -08:00
Jay Graber
24a24abf75
Add -t to git fetch for release-notes.py
2017-03-08 12:32:59 -08:00
Daira Hopwood
d596658022
Remove NO_QT make option.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2017-03-07 19:15:08 +00:00
Jay Graber
d64a2d5a44
Add 1.0.7 release notes and update authors.md
2017-03-03 22:02:32 -08:00
Jack Grigg
a0e6d5a185
Adjust gen-manpages.sh for Zcash, use in Debian builds
2017-03-02 11:18:44 -08:00
zkbot
73779d8c6d
Auto merge of #1888 - mvrilo:busybox-sha256sum, r=daira
...
Fix sha256sum on busybox
Busybox's version of `sha256sum` doesn't support `--check` parameter
```
/usr/bin/sha256sum: unrecognized option: check
BusyBox v1.24.2 (2016-08-12 14:38:34 GMT) multi-call binary.
Usage: sha256sum [-c[sw]] [FILE]...
Print or check SHA256 checksums
-c Check sums against list in FILEs
-s Don't output anything, status code shows success
-w Warn about improperly formatted checksum lines
The command '/bin/sh -c ./zcutil/fetch-params.sh' returned a non-zero code: 1```
2017-02-20 14:08:51 +00:00
Simon
a8d201026e
Fix bug in release process tool: bad regex in zcutil/release-notes.py.
2017-02-10 12:50:01 -08:00
Jack Grigg
2cc0a252ad
Add compile flag to disable compilation of mining code
2017-01-30 21:14:46 +01:00
Jack Grigg
b50b4d5c38
Generate Debian control file to fix shlibs lint
2017-01-17 01:55:50 +01:00
Jack Grigg
6a62bff3e0
Debian package lint
...
- Tweak description synopsis to make Debian happy
- Put bash completion files in correct directory
- Add a manpage for zcash-fetch-params
2017-01-17 01:55:50 +01:00
zkbot
6575dfba4e
Auto merge of #1930 - arcalinea:revise-release-note-generation, r=str4d
...
Gather release notes from previous release to HEAD
Release-notes.py used to depend on release already being tagged--now gathers release notes from previous tagged release up to current HEAD.
2016-12-09 10:42:33 +00:00
Jay Graber
c1e46db8ab
Gather release notes from previous release to HEAD
...
Also update release-process.md to replace git shortlog command with
release-notes.py script.
2016-12-09 23:40:23 +13:00
zkbot
4af99fc45d
Auto merge of #1909 - str4d:bash-completion, r=str4d
...
Bash completion
This PR pulls in bitcoin/bitcoin#8289 , updates the bash completion files for use with Zcash, and bundles them into the Debian package.
2016-12-08 00:43:41 +00:00
Jack Grigg
ca483b4064
Add bash completion files to Debian package
2016-12-02 17:12:38 +13:00
Jeffrey Walton
b8e72ced23
Add porter dev overrides for CC, CXX, MAKE, BUILD, HOST
2016-12-01 00:47:00 +13:00
Murilo Santana
5ad3193ac8
Fix sha256sum on busybox by using -c instead of --check
2016-11-20 16:04:51 -02:00
Jay Graber
3935f9dae6
Release-notes.py script to generate release notes and add contributors to authors.md
2016-11-16 15:27:13 -08:00
Jack Grigg
7a810efa08
Add --disable-tests flag to zcutils/build.sh
...
Closes #1787
2016-11-06 12:35:55 -08:00
Kevin Gallagher
4bc627b6a3
Improves usability of fetch-params.sh
...
Remove the lockfile at the end (fixes #1731 )
Makes it clearer what happens in the script output if params already exist.
2016-11-02 11:06:55 -07:00
Jack Grigg
ff5f66b847
Update Debian manpages and buildscript
2016-10-28 04:39:00 -07:00
Jack Grigg
7232f2f787
Add release notes for 1.0.0
...
The Debian build script has been modified to account for the version
discrepancy.
2016-10-28 04:12:27 -07:00
zkbot
ab5c175744
Auto merge of #1661 - ageis:deb-pkg-enhancements, r=arcalinea
...
Debian packaging fixes
* Updates maintainer scripts from latest version of `dh_make`
* Includes `rules` file
* Use `fakeroot` to build the package.
We use currently `dpkg-deb --build` instead of `debuild` or `dpkg-buildpackage`, so I don't know if the package is well-formatted for the latter. (one difference, the former works with uppercase `DEBIAN`, the latter lowercase `debian` -- that's why the directory was renamed)
2016-10-27 19:13:35 +00:00
Kevin Gallagher
fa7261bd44
Run Lintian after built package is copied to $SRC_PATH
...
Because of `set -e`, if there are any warnings, then the package won't be
copied back to the source directory. For now, there are definitely going to
remain some Lintian warnings which we'll want to ignore.
Also updates comments to make them more descriptive.
2016-10-27 09:08:38 -07:00
Jack Grigg
acb8bbe4fe
Add lintian check to zcutil/build-debian-package.sh
2016-10-27 08:44:44 -07:00
Jack Grigg
b7f7def877
Rework zcutil/build-debian-package.sh to place files correctly
...
See http://www.tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/
for a guide on how to prepare a distribution for using dpkg-deb.
2016-10-27 08:44:24 -07:00
zkbot
278439fbe3
Auto merge of #1623 - ebfull:sprout-params, r=str4d
...
Zcash zk-SNARK public parameters for 1.0 "Sprout".
Created in the ceremony this weekend! 🎉
We're writing a blog post about this, I'm going to publish the code shortly too.
Closes #1553
2016-10-27 03:08:10 +00:00
Kevin Gallagher
a049dd2953
Use fakeroot to build Debian package
2016-10-26 15:36:24 -07:00
Kevin Gallagher
a885ee4668
Prefer sha256sum but fall back to shasum if not available
...
One is provided by coreutils, the other is a Perl module.
2016-10-24 14:39:52 -07:00
Sean Bowe
27e3f362f0
Zcash zk-SNARK public parameters for 1.0 "Sprout".
2016-10-24 11:22:39 -06:00
David Mercer
33118f63b9
pass in both HOST and BUILD to depends system, needed for deterministic builds
2016-10-19 19:37:37 -07:00
David Mercer
850019de42
explicitly pass HOST and BUILD to ./configure
2016-10-19 15:48:52 -07:00
Kevin Gallagher
3327ef3df0
Moves zcash-fetch-params to /usr/bin
...
Since the file is managed by the package manager, this is a more appropriate
location for that script. Also updates the timestamp in the changelog.
2016-10-13 20:13:37 -07:00
Kevin Gallagher
b5718a5a57
Initial packaging for Debian
...
This adds some source files, a script and skeleton for building
a Debian package that installs the zcash daemon and CLI tool.
Also removes unused Bitcoin files.
2016-10-13 13:15:14 -07:00
Kevin Gallagher
e3320f4f0f
Increases timeout to 30s, wait before retry to 3s
...
Default: 20 tries
2016-10-11 10:56:01 -07:00
Kevin Gallagher
f964718c83
Set wget retry options for fetching parameters
...
This will retry upon refused connections and similar errors, wait 1 second
before the next retry, time out after 10 seconds if no data is received or
the connection times out, plus try an infinite number of times.
2016-10-10 20:34:55 -07:00
zkbot
d86218a52f
Auto merge of #1476 - ebfull:update-parameters, r=str4d
...
Update to beta2 public parameters
Also gets rid of the `testnet3`/`regtest` subdirectories/symlinks and other such things.
2016-10-04 04:54:02 -04:00
zkbot
4cfbe798bf
Auto merge of #1429 - str4d:867-update-dependencies, r=str4d
...
Update all dependencies
Also re-enables disabled compiler warnings.
Closes #867 , #944 , #1241 , #1255 , #1348 .
2016-10-04 03:48:42 -04:00
Sean Bowe
796c7ee52f
Update to `beta2` public parameters, remove `regtest`/`testnet3` parameters
...
subdirectories.
2016-10-03 15:58:02 -06:00
Kevin Gallagher
e70213103c
Verify TLS certificates w/ wget in fetch-params.sh
...
Per NCC-2016-017, wget was run with --no-check-certificate,
which means that the connection can be man-in-the-middled,
even if we are verifying the integrity of the params later via hash sums.
The rationale cited in the Bash comments does not stand up to scrutiny.
There's really no persuasive reason not to verify certificates.
Fixes #1346 .
2016-09-30 12:08:15 -07:00
Jack Grigg
df2bca8fbc
Re-enable disabled compiler warnings
...
Reverts:
- be1bae14e8
- ec3bd70b6d
Closes #944
2016-09-29 14:35:38 +13:00
Kevin Gallagher
2e113f6b9d
Lock to prevent parallel execution of fetch-params.sh
...
Two instances of the fetch-params.sh script running at once will
result in corruption of the proving key and an error when the
hashes are computed. This implements a lock to stop such a
scenario from occurring.
We also terminate and don't create the symlinks if the downloaded
parameters fail the checksum command.
2016-09-22 03:08:42 -07:00
Alfie John
70db019c6a
Updating wording to match Beta Guide
2016-09-15 22:00:13 +10:00
Alfie John
42c03d49f2
Typo in params README
2016-09-15 21:58:55 +10:00