restored the current "depends" and friends
fix windows test run unit test round 2 attempting to fix ccache use on darwin made ccache optional, no longer pulls clang on darwin build fixing darwin build from Dockerfile fixed missing nproc on OSX updated readme to include regtest example, build examples fix QT unit tests made -j get passed down, added build.sh
This commit is contained in:
parent
4a4c091c55
commit
f2462c74b3
68 changed files with 2319 additions and 2404 deletions
173
.travis.yml
173
.travis.yml
|
@ -1,70 +1,109 @@
|
||||||
matrix:
|
language: minimal
|
||||||
include:
|
filter_secrets: false
|
||||||
- os: linux
|
|
||||||
sudo: required
|
|
||||||
dist: xenial
|
|
||||||
language: c
|
|
||||||
env: TARGET=linux
|
|
||||||
- os: linux
|
|
||||||
sudo: required
|
|
||||||
dist: xenial
|
|
||||||
language: c
|
|
||||||
env: TARGET=windows
|
|
||||||
- os: osx
|
|
||||||
language: c
|
|
||||||
osx_image: xcode8.3
|
|
||||||
env: TARGET=osx
|
|
||||||
cache:
|
cache:
|
||||||
apt: true
|
|
||||||
ccache: true
|
|
||||||
directories:
|
directories:
|
||||||
|
- ${HOME}/ccache
|
||||||
|
|
||||||
|
stages:
|
||||||
- build
|
- build
|
||||||
- depends/built
|
- test
|
||||||
git:
|
- quality
|
||||||
depth: false
|
|
||||||
before_install:
|
jobs:
|
||||||
- date +%s > "${TRAVIS_BUILD_DIR}/start_time"
|
include:
|
||||||
- ls -lh build
|
|
||||||
- du -h -d 2 build
|
- &build-template
|
||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ccache; fi
|
stage: build
|
||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
|
name: linux
|
||||||
install: true
|
env: NAME=linux EXT=
|
||||||
script:
|
os: linux
|
||||||
- mkdir -p "dist/${TRAVIS_BRANCH}"
|
dist: xenial
|
||||||
- if [[ "${TARGET}" == "osx" ]]; then ./reproducible_build.sh -t -o -c -r; fi
|
language: minimal
|
||||||
- if [[ "${TARGET}" == "linux" ]]; then ./reproducible_build.sh -t -o -c -r; fi
|
services:
|
||||||
- if [[ "${TARGET}" == "windows" ]]; then ./packaging/build_windows.sh; fi
|
- docker
|
||||||
- if [[ "${TARGET}" == "osx" ]]; then zip -j "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip" src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx; fi
|
install:
|
||||||
- if [[ "${TARGET}" == "linux" ]]; then zip -j "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip" src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx; fi
|
- mkdir -p ${HOME}/ccache
|
||||||
- if [[ "${TARGET}" == "windows" ]]; then zip -j "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip" src/lbrycrdd.exe src/lbrycrd-cli.exe src/lbrycrd-tx.exe; fi
|
- docker pull $DOCKER_BUILD_IMAGE
|
||||||
- if [[ "${TARGET}" == "osx" ]]; then shasum -a 256 dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip > dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt; fi
|
script:
|
||||||
- if [[ "${TARGET}" == "linux" ]]; then sha256sum -b dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip > dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt; fi
|
- docker run -v "$(pwd):/lbrycrd" -v "${HOME}/ccache:/ccache" -w /lbrycrd -e CCACHE_DIR=/ccache ${DOCKER_IMAGE} packaging/build_${NAME}_64bit.sh
|
||||||
- if [[ "${TARGET}" == "windows" ]]; then sha256sum -b dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip > dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt; fi
|
before_deploy:
|
||||||
- cat dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt
|
- mkdir dist
|
||||||
before_cache:
|
- sudo zip -j dist/lbrycrd-${NAME}.zip src/lbrycrdd${EXT} src/lbrycrd-cli${EXT} src/lbrycrd-tx${EXT}
|
||||||
- ls -lh build
|
- sudo zip -j dist/lbrycrd-${NAME}-test.zip src/test/test_lbrycrd${EXT} src/test/test_lbrycrd_fuzzy${EXT}
|
||||||
- du -h -d 2 build
|
- sha256sum dist/lbrycrd-${NAME}.zip
|
||||||
deploy:
|
- sha256sum dist/lbrycrd-${NAME}-test.zip
|
||||||
- provider: releases
|
deploy:
|
||||||
draft: true
|
- provider: releases
|
||||||
file: "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip"
|
name: $TRAVIS_BRANCH
|
||||||
name: "${TRAVIS_BRANCH}"
|
target_commitish: $TRAVIS_COMMIT
|
||||||
skip_cleanup: true
|
tag_name: $TRAVIS_TAG
|
||||||
target_commitish: $TRAVIS_COMMIT
|
api_key:
|
||||||
tag_name: $TRAVIS_TAG
|
secure: "Ni5WZNR5CefWXpyDUQLMQbQ2LH4Iot+0SqIoM9c4maW06al1M8vu57vWuj2cESsW7JsaBehCE45Cwmo5kWyEjAiZY8sIMmvixkMP/8uPWuLgNmnIbm7U+d0j652DmZshDYtt8EomqV2RhAx/rmBnzGkruLOw9WTp9ZdBN3WbTt/IpZ2gMgVbGWYGOx+uRw7/yGw8m4gShQheto/dycbyyR3XV2WP9wuLmNYkcQ6JumSoQdDWXcvVfbCwylGq2sLDKwhvfTr4iwYyYsWdmhfdEQl0WcIv5C8xgdiY2vzhi2LmLqFbS/fvKNC26Tfo4bOHFG/eOnvqc+yyEB8B/xqW9Gs+A0TUh/3N30vHYZGcpiDU35DwAN5bZ1+s+mr/ZrNzBJ5BgT8io3g0Ko8gykbDvFQVpg7kxFsqA1YCikEpG86lVGk6clTa5guJvAHse+DfnbWO1nfDxYQXW0md861m0txk8RpTC/TVNyH/lL/vsS7LB67EHhRdZY+O1+5sUGMdtvvhMoxJYCwQGpLkh43KRsKynkMUR94w2O9hc8cknXdV3wrndVz00XNdcur6y4D7HTll1tBrF68CA2yKUSY5hsjtPmdlN+DW8ou/rJiKOpQZ/Xzp69AQEheOFfDPItxQRYxWj0dMOk8eszf0wFvi1N7J/hT/IHnuX5ITfa/T4NE="
|
||||||
on:
|
file: dist/lbrycrd-${NAME}.zip
|
||||||
tags: true
|
skip_cleanup: true
|
||||||
api_key:
|
overwrite: true
|
||||||
secure: "Ni5WZNR5CefWXpyDUQLMQbQ2LH4Iot+0SqIoM9c4maW06al1M8vu57vWuj2cESsW7JsaBehCE45Cwmo5kWyEjAiZY8sIMmvixkMP/8uPWuLgNmnIbm7U+d0j652DmZshDYtt8EomqV2RhAx/rmBnzGkruLOw9WTp9ZdBN3WbTt/IpZ2gMgVbGWYGOx+uRw7/yGw8m4gShQheto/dycbyyR3XV2WP9wuLmNYkcQ6JumSoQdDWXcvVfbCwylGq2sLDKwhvfTr4iwYyYsWdmhfdEQl0WcIv5C8xgdiY2vzhi2LmLqFbS/fvKNC26Tfo4bOHFG/eOnvqc+yyEB8B/xqW9Gs+A0TUh/3N30vHYZGcpiDU35DwAN5bZ1+s+mr/ZrNzBJ5BgT8io3g0Ko8gykbDvFQVpg7kxFsqA1YCikEpG86lVGk6clTa5guJvAHse+DfnbWO1nfDxYQXW0md861m0txk8RpTC/TVNyH/lL/vsS7LB67EHhRdZY+O1+5sUGMdtvvhMoxJYCwQGpLkh43KRsKynkMUR94w2O9hc8cknXdV3wrndVz00XNdcur6y4D7HTll1tBrF68CA2yKUSY5hsjtPmdlN+DW8ou/rJiKOpQZ/Xzp69AQEheOFfDPItxQRYxWj0dMOk8eszf0wFvi1N7J/hT/IHnuX5ITfa/T4NE="
|
draft: true
|
||||||
- provider: s3
|
on:
|
||||||
access_key_id: AKIAICKFHNTR5RITASAQ
|
tags: true
|
||||||
secret_access_key:
|
- provider: s3
|
||||||
secure: Qfgs8vGnEUvgiZNP2S9zY8qHEzaDOceF/XTv32jRBOISWfTqOTE56DZbOp8WKHPAqn0dx04jKA1NfV9f06sXU1NVbiJ2VYISo6XAk0n3RBJL3/mhNxvut/zM2DHkFPljWTkWEColS0ZyA3m4eUyJvAw/i+mOBT/zDD/oIlS5Uo5l/x3LmF9fYBuei0ucwSQeNOr2wCMIl+pXrIU7B3lEzXh1asayW6A9y7DOqMLnrSQ7TLlSssbnhuhDVpFx0xxX/U2NPraotbGKdo3wwMbms/lluBe60I/LsDNp9/SZXMDXh2YLGUImr97octwpdzIMjF+kU7QAZJzM7grz8PU9+MQh2V5sn6Xsww2x4PdkmHGz/2FMzhrCrlPf5JCaPBH49G+w4/29HYmMrlimOOVx4qXCpQ/XtWWne/d6MF0qqT6JhdPuD9ohmTpxcHRkCe2fxUw6Yn3dj+/+YoCywAcwcBm5jLpAotmWoCmmcnm9rvB7bIuPPZAjJUZViCnyvwY4Tj3Fb+sOuK4b/O5D2+cuS+WgQRkN/RspYlXrXTIh8Efv/yhW5L9WdzG1OExJDw2hX5VTccRRgIKZxZp80U2eYqn2M07+1nU+ShX4kgiSon46k5cfacLgzLKWEyCxWSSTbsYcwRxvDEjtYy4wxAYx8+J3dgQPs/opDXoQTJMjud0=
|
access_key_id: AKIAICKFHNTR5RITASAQ
|
||||||
bucket: build.lbry.io
|
secret_access_key:
|
||||||
upload-dir: lbrycrd
|
secure: Qfgs8vGnEUvgiZNP2S9zY8qHEzaDOceF/XTv32jRBOISWfTqOTE56DZbOp8WKHPAqn0dx04jKA1NfV9f06sXU1NVbiJ2VYISo6XAk0n3RBJL3/mhNxvut/zM2DHkFPljWTkWEColS0ZyA3m4eUyJvAw/i+mOBT/zDD/oIlS5Uo5l/x3LmF9fYBuei0ucwSQeNOr2wCMIl+pXrIU7B3lEzXh1asayW6A9y7DOqMLnrSQ7TLlSssbnhuhDVpFx0xxX/U2NPraotbGKdo3wwMbms/lluBe60I/LsDNp9/SZXMDXh2YLGUImr97octwpdzIMjF+kU7QAZJzM7grz8PU9+MQh2V5sn6Xsww2x4PdkmHGz/2FMzhrCrlPf5JCaPBH49G+w4/29HYmMrlimOOVx4qXCpQ/XtWWne/d6MF0qqT6JhdPuD9ohmTpxcHRkCe2fxUw6Yn3dj+/+YoCywAcwcBm5jLpAotmWoCmmcnm9rvB7bIuPPZAjJUZViCnyvwY4Tj3Fb+sOuK4b/O5D2+cuS+WgQRkN/RspYlXrXTIh8Efv/yhW5L9WdzG1OExJDw2hX5VTccRRgIKZxZp80U2eYqn2M07+1nU+ShX4kgiSon46k5cfacLgzLKWEyCxWSSTbsYcwRxvDEjtYy4wxAYx8+J3dgQPs/opDXoQTJMjud0=
|
||||||
acl: public_read
|
bucket: build.lbry.io
|
||||||
local_dir: dist
|
upload-dir: lbrycrd/${TRAVIS_BRANCH}
|
||||||
skip_cleanup: true
|
acl: public_read
|
||||||
on:
|
local_dir: dist
|
||||||
repo: lbryio/lbrycrd
|
skip_cleanup: true
|
||||||
all_branches: true
|
on:
|
||||||
|
repo: lbryio/lbrycrd
|
||||||
|
all_branches: true
|
||||||
|
|
||||||
|
- <<: *build-template
|
||||||
|
name: windows
|
||||||
|
env: NAME=windows EXT=.exe
|
||||||
|
|
||||||
|
- <<: *build-template
|
||||||
|
name: osx
|
||||||
|
env: NAME=darwin EXT=
|
||||||
|
before_install:
|
||||||
|
- mkdir -p ./depends/SDKs && pushd depends/SDKs && curl -C - ${MAC_OS_SDK} | tar --skip-old-files -xJ && popd
|
||||||
|
|
||||||
|
- &test-template
|
||||||
|
stage: test
|
||||||
|
env: NAME=linux
|
||||||
|
os: linux
|
||||||
|
dist: xenial
|
||||||
|
language: minimal
|
||||||
|
git:
|
||||||
|
depth: 3
|
||||||
|
install:
|
||||||
|
- mkdir testrun && cd testrun
|
||||||
|
- curl http://build.lbry.io/lbrycrd/${TRAVIS_BRANCH}/lbrycrd-${NAME}-test.zip -o temp.zip
|
||||||
|
- unzip temp.zip
|
||||||
|
script: ./test_lbrycrd
|
||||||
|
|
||||||
|
- <<: *test-template
|
||||||
|
# os: windows # doesn't support secrets at the moment
|
||||||
|
os: linux
|
||||||
|
dist: xenial
|
||||||
|
env: NAME=windows
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
script:
|
||||||
|
- docker pull $DOCKER_WINE_IMAGE
|
||||||
|
- docker run -v "$(pwd):/test" -e "WINEDEBUG=-all" -it $DOCKER_WINE_IMAGE wine "/test/test_lbrycrd.exe"
|
||||||
|
|
||||||
|
- <<: *test-template
|
||||||
|
os: osx
|
||||||
|
osx_image: xcode8.3
|
||||||
|
env: NAME=darwin
|
||||||
|
|
||||||
|
|
||||||
|
- stage: quality
|
||||||
|
name: "check format"
|
||||||
|
os: linux
|
||||||
|
dist: xenial
|
||||||
|
language: minimal
|
||||||
|
install:
|
||||||
|
- sudo apt-get install -y clang-format-3.9
|
||||||
|
script: git diff -U0 origin/master -- '*.h' '*.cpp' | ./contrib/devtools/clang-format-diff.py -p1
|
||||||
|
|
138
README.md
138
README.md
|
@ -1,20 +1,22 @@
|
||||||
# LBRYcrd - The LBRY blockchain
|
# LBRYcrd - The LBRY blockchain
|
||||||
|
|
||||||
![alt text](lbrycrdd_daemon_screenshot.png "lbrycrdd daemon screenshot")
|
[![Build Status](https://travis-ci.org/lbryio/lbrycrd.svg?branch=master)](https://travis-ci.org/lbryio/lbrycrd)
|
||||||
|
|
||||||
LBRYcrd uses a blockchain similar to bitcoin's to implement an index and payment system for content on the LBRY network. It is a fork of bitcoin core.
|
LBRYcrd uses a blockchain similar to bitcoin's to implement an index and payment system for content on the LBRY network. It is a fork of bitcoin core. In addition to the libraries used by bitcoin, LBRYcrd also uses icu4c.
|
||||||
|
|
||||||
|
Please read the [lbry.tech overview](https://lbry.tech/overview) for a general understanding of the LBRY pieces. From there you could read the [LBRY spec](https://spec.lbry.com/) for specifics on the data in the blockchain.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Latest binaries are available from https://github.com/lbryio/lbrycrd/releases. There is no installation procedure, the binaries will be run as-is.
|
Latest binaries are available from https://github.com/lbryio/lbrycrd/releases. There is no installation procedure; the CLI binaries will run as-is and will have any uncommon dependencies statically linked into the binary. The QT GUI is not supported. LBRYcrd is distributed as a collection of executable files; traditional installers are not provided.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The `lbrycrdd` executable will start a LBRYcrd node and connect you to the LBRYcrd network. Use the `lbrycrd-cli` executable
|
The `lbrycrdd` executable will start a LBRYcrd node and connect you to the LBRYcrd network. Use the `lbrycrd-cli` executable
|
||||||
to interact with lbrycrdd through the command line. Help pages for both executable are available through
|
to interact with lbrycrdd through the command line. Command-line help for both executables are available through
|
||||||
the "--help" flag (e.g. `lbrycrd-cli --help`).
|
the "--help" flag (e.g. `lbrycrdd --help`). Examples:
|
||||||
|
|
||||||
### Example Usage
|
#### Examples:
|
||||||
|
|
||||||
Run `./lbrycrdd -server -daemon` to start lbrycrdd in the background.
|
Run `./lbrycrdd -server -daemon` to start lbrycrdd in the background.
|
||||||
|
|
||||||
|
@ -22,18 +24,30 @@ Run `./lbrycrd-cli getinfo` to check for some basic information about your LBRYc
|
||||||
|
|
||||||
Run `./lbrycrd-cli help` to get a list of all commands that you can run. To get help on specific commands run `./lbrycrd-cli [command_name] help`
|
Run `./lbrycrd-cli help` to get a list of all commands that you can run. To get help on specific commands run `./lbrycrd-cli [command_name] help`
|
||||||
|
|
||||||
### Data directory
|
Test locally:
|
||||||
|
```
|
||||||
|
./lbrycrdd -server -regtest -txindex # run this in its own window
|
||||||
|
./lbrycrd-cli -regtest generate 120 # mine 20 spendable coins
|
||||||
|
./lbrycrd-cli -regtest claimname my_name deadbeef 1 # hold a name claim with 1 coin
|
||||||
|
./lbrycrd-cli -regtest generate 1 # get that claim into the block
|
||||||
|
./lbrycrd-cli -regtest listnameclaims # show owned claims
|
||||||
|
./lbrycrd-cli -regtest getclaimsforname my_name # show claims under that name
|
||||||
|
./lbrycrd-cli -regtest stop # kill lbrycrdd
|
||||||
|
rm -fr ~/.lbrycrd/regtest/ # destroy regtest data
|
||||||
|
```
|
||||||
|
For further understanding of a "regtest" setup, see the local stack setup instructions here: https://lbry.tech/resources/regtest-setup
|
||||||
|
|
||||||
Lbrycrdd will use the below default data directories:
|
The CLI help is also browsable online at https://lbry.tech/api/blockchain
|
||||||
|
|
||||||
Windows < Vista: C:\Documents and Settings\Username\Application Data\lbrycrd
|
#### Data directory:
|
||||||
|
|
||||||
Windows >= Vista: C:\Users\Username\AppData\Roaming\lbrycrd
|
Lbrycrdd will use the below default data directories (changeable with -datadir):
|
||||||
|
|
||||||
Mac: ~/Library/Application Support/lbrycrd
|
|
||||||
|
|
||||||
Unix: ~/.lbrycrd
|
|
||||||
|
|
||||||
|
```
|
||||||
|
Windows: %APPDATA%\lbrycrd
|
||||||
|
Mac: ~/Library/Application Support/lbrycrd
|
||||||
|
Unix: ~/.lbrycrd
|
||||||
|
```
|
||||||
The data directory contains various things such as your default wallet (wallet.dat), debug logs (debug.log), and blockchain data. You can optionally create a configuration file lbrycrd.conf in the default data directory which will be used by default when running lbrycrdd.
|
The data directory contains various things such as your default wallet (wallet.dat), debug logs (debug.log), and blockchain data. You can optionally create a configuration file lbrycrd.conf in the default data directory which will be used by default when running lbrycrdd.
|
||||||
|
|
||||||
For a list of configuration parameters, run `./lbrycrdd --help`. Below is a sample lbrycrd.conf to enable JSON RPC server on lbrycrdd.
|
For a list of configuration parameters, run `./lbrycrdd --help`. Below is a sample lbrycrd.conf to enable JSON RPC server on lbrycrdd.
|
||||||
|
@ -47,14 +61,91 @@ txindex=1
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running from Source
|
## Running from Source
|
||||||
|
The easiest way to compile is to utilize the Docker image that contains the necessary compilers: lbry/build_lbrycrd. This will allow you to reproduce the build as made on our build servers. I this sample we map a local lbrycrd folder and a local ccache folder inside the image:
|
||||||
|
```
|
||||||
|
git clone https://github.com/lbryio/lbrycrd.git
|
||||||
|
cd lbrycrd
|
||||||
|
docker run -v "$(pwd):/lbrycrd" --rm -v "${HOME}/ccache:/ccache" -w /lbrycrd -e CCACHE_DIR=/ccache lbry/build_lbrycrd packaging/build_linux_64bit.sh
|
||||||
|
```
|
||||||
|
Some examples of compiling directly:
|
||||||
|
#### Ubuntu with pulled static dependencies:
|
||||||
|
```
|
||||||
|
sudo apt install build-essential git libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates
|
||||||
|
git clone https://github.com/lbryio/lbrycrd.git
|
||||||
|
cd lbrycrd
|
||||||
|
./packaging/build_linux_64bit.sh
|
||||||
|
./src/test/test_lbrycrd
|
||||||
|
|
||||||
Run `./reproducible_build.sh -c -t`. This will build the binaries and put them into the `./src` directory.
|
```
|
||||||
|
Other Linux distros would be similar. The build shell script is fairly trivial; take a peek at its contents.
|
||||||
|
#### Ubuntu with local shared dependencies:
|
||||||
|
Note: using untested dependencies may lead to conflicting results.
|
||||||
|
```
|
||||||
|
sudo add-apt-repository ppa:bitcoin/bitcoin
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install libdb4.8-dev libdb4.8++-dev libicu-dev libssl-dev libevent-dev \
|
||||||
|
build-essential git libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates \
|
||||||
|
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
|
||||||
|
|
||||||
|
# optionally include libminiupnpc-dev libzmq3-dev
|
||||||
|
|
||||||
If you encounter any errors, please check `doc/build-*.md` for further instructions. If you're still stuck, [create an issue](https://github.com/lbryio/lbrycrd/issues/new) with the output of that command, your system info, and any other information you think might be helpful.
|
git clone https://github.com/lbryio/lbrycrd.git
|
||||||
|
cd lbrycrd
|
||||||
|
./autogen.sh
|
||||||
|
./configure --enable-static --disable-shared --with-pic --without-gui CXXFLAGS="-O3 -march=native"
|
||||||
|
make -j$(nproc)
|
||||||
|
./src/lbrycrdd -server ...
|
||||||
|
|
||||||
|
```
|
||||||
|
#### MacOS (cross-compiled):
|
||||||
|
```
|
||||||
|
sudo apt-get install clang llvm git libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates \
|
||||||
|
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
|
||||||
|
|
||||||
|
git clone https://github.com/lbryio/lbrycrd.git
|
||||||
|
cd lbrycrd
|
||||||
|
# download MacOS SDK from your favorite source
|
||||||
|
mkdir depends/SDKs
|
||||||
|
tar ... extract SDK to depends/SDKs/MacOSX10.11.sdk
|
||||||
|
./packaging/build_darwin_64bit.sh
|
||||||
|
|
||||||
|
```
|
||||||
|
Look in packaging/build_darwin_64bit.sh for further understanding.
|
||||||
|
#### MacOS with local shared dependencies:
|
||||||
|
```
|
||||||
|
brew install boost berkeley-db@4 icu4c libevent
|
||||||
|
# fix conflict with gawk pulled first:
|
||||||
|
brew reinstall readline
|
||||||
|
brew reinstall gawk
|
||||||
|
|
||||||
|
git clone https://github.com/lbryio/lbrycrd.git
|
||||||
|
cd lbrycrd/depends
|
||||||
|
make NO_QT=1
|
||||||
|
cd ..
|
||||||
|
./autogen.sh
|
||||||
|
CONFIG_SITE=$(pwd)/depends/x86_64-apple-darwin15.6.0/share/config.site ./configure --enable-static --disable-shared --with-pic --without-gui --enable-reduce-exports CXXFLAGS=-O2
|
||||||
|
make -j$(sysctl -n hw.ncpu)
|
||||||
|
|
||||||
|
```
|
||||||
|
#### Windows (cross-compiled):
|
||||||
|
Compiling on MS Windows (outside of WSL) is not supported. The Windows build is cross-compiled from Linux like so:
|
||||||
|
```
|
||||||
|
sudo apt-get install build-essential git libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates \
|
||||||
|
g++-mingw-w64-x86-64 mingw-w64-x86-64-dev
|
||||||
|
|
||||||
|
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
||||||
|
|
||||||
|
git clone https://github.com/lbryio/lbrycrd.git
|
||||||
|
cd lbrycrd
|
||||||
|
./packaging/build_windows_64bit.sh
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
If you encounter any errors, please check `doc/build-*.md` for further instructions. If you're still stuck, [create an issue](https://github.com/lbryio/lbrycrd/issues/new) with the output of that command, your system info, and any other information you think might be helpful. The scripts in the packaging folder are simple and will grant extra light on the build process as needed.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Contributions to this project are welcome, encouraged, and compensated. For more details, see [lbry.io/faq/contributing](https://lbry.io/faq/contributing)
|
Contributions to this project are welcome, encouraged, and compensated. For more details, see [https://lbry.tech/contribute](https://lbry.tech/contribute)
|
||||||
|
|
||||||
We follow the same coding guidelines as documented by Bitcoin Core, see [here](/doc/developer-notes.md). To run an automated code formatting check, try:
|
We follow the same coding guidelines as documented by Bitcoin Core, see [here](/doc/developer-notes.md). To run an automated code formatting check, try:
|
||||||
`git diff -U0 master -- '*.h' '*.cpp' | ./contrib/devtools/clang-format-diff.py -p1`. This will check any commits not on master for proper code formatting.
|
`git diff -U0 master -- '*.h' '*.cpp' | ./contrib/devtools/clang-format-diff.py -p1`. This will check any commits not on master for proper code formatting.
|
||||||
|
@ -67,15 +158,14 @@ regularly to indicate new official, stable release versions.
|
||||||
Testing and code review is the bottleneck for development; we get more pull
|
Testing and code review is the bottleneck for development; we get more pull
|
||||||
requests than we can review and test on short notice. Please be patient and help out by testing
|
requests than we can review and test on short notice. Please be patient and help out by testing
|
||||||
other people's pull requests, and remember this is a security-critical project where any mistake might cost people
|
other people's pull requests, and remember this is a security-critical project where any mistake might cost people
|
||||||
lots of money. Developers are strongly encouraged to write [unit tests](/doc/unit-tests.md) for new code, and to
|
lots of money. Developers are strongly encouraged to write [unit tests](/doc/unit-tests.md) for new code and to
|
||||||
submit new unit tests for old code. Unit tests can be compiled and run
|
submit new unit tests for old code. Unit tests are compiled by default and can be run with `src/test/test_lbrycrd`.
|
||||||
(assuming they weren't disabled in configure) with: `make check`
|
|
||||||
|
|
||||||
The Travis CI system makes sure that every pull request is built, and that unit and sanity tests are automatically run.
|
The Travis CI system makes sure that every pull request is built, and that unit and sanity tests are automatically run. See https://travis-ci.org/lbryio/lbrycrd
|
||||||
|
|
||||||
### Testnet
|
### Testnet
|
||||||
|
|
||||||
Testnet is maintained for testing purposes and can be accessed using the command `./lbrycrdd -testnet`. If you would like to obtain testnet credits, please contact brannon@lbry.io or grin@lbry.io.
|
Testnet is maintained for testing purposes and can be accessed using the command `./lbrycrdd -testnet`. If you would like to obtain testnet credits, please contact brannon@lbry.com or grin@lbry.com .
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -83,11 +173,11 @@ This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
|
||||||
|
|
||||||
## Security
|
## Security
|
||||||
|
|
||||||
We take security seriously. Please contact security@lbry.io regarding any security issues.
|
We take security seriously. Please contact security@lbry.com regarding any security issues.
|
||||||
Our PGP key is [here](https://keybase.io/lbry/key.asc) if you need it.
|
Our PGP key is [here](https://keybase.io/lbry/key.asc) if you need it.
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
The primary contact for this project is [@BrannonKing](https://github.com/BrannonKing) (brannon@lbry.io)
|
The primary contact for this project is [@BrannonKing](https://github.com/BrannonKing) (brannon@lbry.com)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,73 +33,73 @@
|
||||||
|
|
||||||
AC_DEFUN([AX_BOOST_LOCALE],
|
AC_DEFUN([AX_BOOST_LOCALE],
|
||||||
[
|
[
|
||||||
AC_ARG_WITH([boost-locale],
|
AC_ARG_WITH([boost-locale],
|
||||||
AS_HELP_STRING([--with-boost-locale@<:@=special-lib@:>@],
|
AS_HELP_STRING([--with-boost-locale@<:@=special-lib@:>@],
|
||||||
[use the Locale library from boost - it is possible to specify a certain library for the linker
|
[use the Locale library from boost - it is possible to specify a certain library for the linker
|
||||||
e.g. --with-boost-locale=boost_locale-gcc-mt ]),
|
e.g. --with-boost-locale=boost_locale-gcc-mt ]),
|
||||||
[
|
[
|
||||||
if test "$withval" = "no"; then
|
if test "$withval" = "no"; then
|
||||||
want_boost="no"
|
want_boost="no"
|
||||||
elif test "$withval" = "yes"; then
|
elif test "$withval" = "yes"; then
|
||||||
want_boost="yes"
|
want_boost="yes"
|
||||||
ax_boost_user_locale_lib=""
|
ax_boost_user_locale_lib=""
|
||||||
else
|
else
|
||||||
want_boost="yes"
|
want_boost="yes"
|
||||||
ax_boost_user_locale_lib="$withval"
|
ax_boost_user_locale_lib="$withval"
|
||||||
fi
|
fi
|
||||||
],
|
],
|
||||||
[want_boost="yes"]
|
[want_boost="yes"]
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "x$want_boost" = "xyes"; then
|
if test "x$want_boost" = "xyes"; then
|
||||||
AC_REQUIRE([AC_PROG_CC])
|
AC_REQUIRE([AC_PROG_CC])
|
||||||
AC_REQUIRE([AC_CANONICAL_BUILD])
|
AC_REQUIRE([AC_CANONICAL_BUILD])
|
||||||
CPPFLAGS_SAVED="$CPPFLAGS"
|
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
||||||
export CPPFLAGS
|
export CPPFLAGS
|
||||||
|
|
||||||
LDFLAGS_SAVED="$LDFLAGS"
|
LDFLAGS_SAVED="$LDFLAGS"
|
||||||
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
||||||
export LDFLAGS
|
export LDFLAGS
|
||||||
|
|
||||||
AC_CACHE_CHECK(whether the Boost::Locale library is available,
|
AC_CACHE_CHECK(whether the Boost::Locale library is available,
|
||||||
ax_cv_boost_locale,
|
ax_cv_boost_locale,
|
||||||
[AC_LANG_PUSH([C++])
|
[AC_LANG_PUSH([C++])
|
||||||
CXXFLAGS_SAVE=$CXXFLAGS
|
CXXFLAGS_SAVE=$CXXFLAGS
|
||||||
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/locale.hpp>]],
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/locale.hpp>]],
|
||||||
[[boost::locale::generator gen;
|
[[boost::locale::generator gen;
|
||||||
std::locale::global(gen(""));]])],
|
std::locale::global(gen(""));]])],
|
||||||
ax_cv_boost_locale=yes, ax_cv_boost_locale=no)
|
ax_cv_boost_locale=yes, ax_cv_boost_locale=no)
|
||||||
CXXFLAGS=$CXXFLAGS_SAVE
|
CXXFLAGS=$CXXFLAGS_SAVE
|
||||||
AC_LANG_POP([C++])
|
AC_LANG_POP([C++])
|
||||||
])
|
])
|
||||||
if test "x$ax_cv_boost_locale" = "xyes"; then
|
if test "x$ax_cv_boost_locale" = "xyes"; then
|
||||||
AC_SUBST(BOOST_CPPFLAGS)
|
AC_SUBST(BOOST_CPPFLAGS)
|
||||||
|
|
||||||
AC_DEFINE(HAVE_BOOST_LOCALE,,[define if the Boost::Locale library is available])
|
AC_DEFINE(HAVE_BOOST_LOCALE,,[define if the Boost::Locale library is available])
|
||||||
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
|
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
|
||||||
|
|
||||||
LDFLAGS_SAVE=$LDFLAGS
|
LDFLAGS_SAVE=$LDFLAGS
|
||||||
if test "x$ax_boost_user_locale_lib" = "x"; then
|
if test "x$ax_boost_user_locale_lib" = "x"; then
|
||||||
for libextension in `ls $BOOSTLIBDIR/libboost_locale*.so* $BOOSTLIBDIR/libboost_locale*.dylib* $BOOSTLIBDIR/libboost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_locale.*\)\.so.*$;\1;' -e 's;^lib\(boost_locale.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_locale.*\)\.a.*$;\1;'` ; do
|
for libextension in `ls $BOOSTLIBDIR/libboost_locale*.so* $BOOSTLIBDIR/libboost_locale*.dylib* $BOOSTLIBDIR/libboost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_locale.*\)\.so.*$;\1;' -e 's;^lib\(boost_locale.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_locale.*\)\.a.*$;\1;'` ; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
AC_CHECK_LIB($ax_lib, exit,
|
AC_CHECK_LIB($ax_lib, exit,
|
||||||
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||||
[link_locale="no"])
|
[link_locale="no"])
|
||||||
done
|
done
|
||||||
if test "x$link_locale" != "xyes"; then
|
if test "x$link_locale" != "xyes"; then
|
||||||
for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` ; do
|
for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` ; do
|
||||||
ax_lib=${libextension}
|
ax_lib=${libextension}
|
||||||
AC_CHECK_LIB($ax_lib, exit,
|
AC_CHECK_LIB($ax_lib, exit,
|
||||||
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||||
[link_locale="no"])
|
[link_locale="no"])
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
|
for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
|
||||||
AC_CHECK_LIB($ax_lib, exit,
|
AC_CHECK_LIB($ax_lib, exit,
|
||||||
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||||
[link_locale="no"])
|
[link_locale="no"])
|
||||||
done
|
done
|
||||||
|
@ -108,13 +108,13 @@ AC_DEFUN([AX_BOOST_LOCALE],
|
||||||
if test "x$ax_lib" = "x"; then
|
if test "x$ax_lib" = "x"; then
|
||||||
AC_MSG_ERROR(Could not find a version of the library!)
|
AC_MSG_ERROR(Could not find a version of the library!)
|
||||||
fi
|
fi
|
||||||
if test "x$link_locale" = "xno"; then
|
if test "x$link_locale" = "xno"; then
|
||||||
AC_MSG_ERROR(Could not link against $ax_lib !)
|
AC_MSG_ERROR(Could not link against $ax_lib !)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||||
LDFLAGS="$LDFLAGS_SAVED"
|
LDFLAGS="$LDFLAGS_SAVED"
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
82
build.sh
Executable file
82
build.sh
Executable file
|
@ -0,0 +1,82 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
function HELP {
|
||||||
|
echo "Use this command to build lbrycrd."
|
||||||
|
echo "Dependencies will be pulled and built first."
|
||||||
|
echo "Use autogen & configure directly to avoid this and use system shared libraries instead."
|
||||||
|
echo
|
||||||
|
echo "Optional arguments:"
|
||||||
|
echo "-jN: number of parallel build jobs"
|
||||||
|
echo "-q: compile the QT GUI (not working at present)"
|
||||||
|
echo "-d: force a rebuild of dependencies"
|
||||||
|
echo "-u: run the unit tests when done"
|
||||||
|
echo "-g: include debug symbols"
|
||||||
|
echo "-h: show help"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
REBUILD_DEPENDENCIES=false
|
||||||
|
RUN_UNIT_TESTS=false
|
||||||
|
COMPILE_WITH_DEBUG=false
|
||||||
|
DO_NOT_COMPILE_THE_GUI="NO_QT=1"
|
||||||
|
WITH_COMPILE_THE_GUI=no
|
||||||
|
|
||||||
|
if test -z $PARALLEL_JOBS; then
|
||||||
|
PARALLEL_JOBS=$(expr $(getconf _NPROCESSORS_ONLN) / 2 + 1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
while getopts j:qdugh FLAG; do
|
||||||
|
case ${FLAG} in
|
||||||
|
j)
|
||||||
|
PARALLEL_JOBS=$OPTARG
|
||||||
|
;;
|
||||||
|
q)
|
||||||
|
DO_NOT_COMPILE_THE_GUI=
|
||||||
|
WITH_COMPILE_THE_GUI=qt5
|
||||||
|
;;
|
||||||
|
g)
|
||||||
|
COMPILE_WITH_DEBUG=true
|
||||||
|
;;
|
||||||
|
u)
|
||||||
|
RUN_UNIT_TESTS=true
|
||||||
|
;;
|
||||||
|
d)
|
||||||
|
REBUILD_DEPENDENCIES=true
|
||||||
|
;;
|
||||||
|
h)
|
||||||
|
HELP
|
||||||
|
;;
|
||||||
|
\?)
|
||||||
|
HELP
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Compiling with ${PARALLEL_JOBS} jobs in parallel."
|
||||||
|
|
||||||
|
BUILD_FLAGS=(CXXFLAGS="-O3 -march=native")
|
||||||
|
if test "$COMPILE_WITH_DEBUG" = true; then
|
||||||
|
BUILD_FLAGS=(--with-debug CXXFLAGS="-Og -g")
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd depends
|
||||||
|
if test "$REBUILD_DEPENDENCIES" = true; then
|
||||||
|
make clean
|
||||||
|
fi
|
||||||
|
make -j${PARALLEL_JOBS} ${DO_NOT_COMPILE_THE_GUI} V=1
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
LC_ALL=C autoreconf --install
|
||||||
|
|
||||||
|
CONFIG_SITE=$(pwd)/depends/$($(pwd)/depends/config.guess)/share/config.site ./configure --enable-reduce-exports \
|
||||||
|
--enable-static --disable-shared --with-pic --with-gui=${WITH_COMPILE_THE_GUI} "${BUILD_FLAGS[@]}"
|
||||||
|
|
||||||
|
if test $? -eq 0; then
|
||||||
|
make -j${PARALLEL_JOBS}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $? -eq 0 && "$RUN_UNIT_TESTS" = true; then
|
||||||
|
./src/test/test_lbrycrd
|
||||||
|
fi
|
63
configure.ac
63
configure.ac
|
@ -646,9 +646,10 @@ if test x$ac_cv_sys_large_files != x &&
|
||||||
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
|
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_static != x; then
|
AS_IF([test x$enable_static != x && test x$LDFLAGS != xdarwin], [
|
||||||
|
# darwin should be using -stdlib=libc++ (and may need a -static instead)
|
||||||
AX_CHECK_LINK_FLAG([[-static-libstdc++]], [LDFLAGS="$LDFLAGS -static-libstdc++"])
|
AX_CHECK_LINK_FLAG([[-static-libstdc++]], [LDFLAGS="$LDFLAGS -static-libstdc++"])
|
||||||
fi
|
])
|
||||||
AX_CHECK_LINK_FLAG([[-Wl,--large-address-aware]], [LDFLAGS="$LDFLAGS -Wl,--large-address-aware"])
|
AX_CHECK_LINK_FLAG([[-Wl,--large-address-aware]], [LDFLAGS="$LDFLAGS -Wl,--large-address-aware"])
|
||||||
|
|
||||||
AX_GCC_FUNC_ATTRIBUTE([visibility])
|
AX_GCC_FUNC_ATTRIBUTE([visibility])
|
||||||
|
@ -708,8 +709,6 @@ fi
|
||||||
AX_CHECK_COMPILE_FLAG([-fstack-reuse=none],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-reuse=none"])
|
AX_CHECK_COMPILE_FLAG([-fstack-reuse=none],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-reuse=none"])
|
||||||
if test x$use_hardening != xno; then
|
if test x$use_hardening != xno; then
|
||||||
use_hardening=yes
|
use_hardening=yes
|
||||||
AX_CHECK_COMPILE_FLAG([-Wstack-protector],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"])
|
|
||||||
AX_CHECK_COMPILE_FLAG([-fstack-protector-all],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"])
|
|
||||||
|
|
||||||
AX_CHECK_PREPROC_FLAG([-D_FORTIFY_SOURCE=2],[
|
AX_CHECK_PREPROC_FLAG([-D_FORTIFY_SOURCE=2],[
|
||||||
AX_CHECK_PREPROC_FLAG([-U_FORTIFY_SOURCE],[
|
AX_CHECK_PREPROC_FLAG([-U_FORTIFY_SOURCE],[
|
||||||
|
@ -729,6 +728,10 @@ if test x$use_hardening != xno; then
|
||||||
*mingw*)
|
*mingw*)
|
||||||
AC_CHECK_LIB([ssp], [main],, AC_MSG_ERROR(libssp missing))
|
AC_CHECK_LIB([ssp], [main],, AC_MSG_ERROR(libssp missing))
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
AX_CHECK_COMPILE_FLAG([-Wstack-protector],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"])
|
||||||
|
AX_CHECK_COMPILE_FLAG([-fstack-protector-all],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"])
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -975,8 +978,7 @@ fi
|
||||||
|
|
||||||
if test x$use_boost = xyes; then
|
if test x$use_boost = xyes; then
|
||||||
|
|
||||||
BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB $BOOST_THREAD_LIB $BOOST_CHRONO_LIB $BOOST_LOCALE_LIB"
|
BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB $BOOST_LOCALE_LIB $BOOST_THREAD_LIB $BOOST_CHRONO_LIB"
|
||||||
|
|
||||||
|
|
||||||
dnl If boost (prior to 1.57) was built without c++11, it emulated scoped enums
|
dnl If boost (prior to 1.57) was built without c++11, it emulated scoped enums
|
||||||
dnl using c++98 constructs. Unfortunately, this implementation detail leaked into
|
dnl using c++98 constructs. Unfortunately, this implementation detail leaked into
|
||||||
|
@ -1066,19 +1068,25 @@ fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AS_IF([test "x$ICU_PREFIX" != xauto], [
|
# the plan for dealing with ICU:
|
||||||
ICU_CPPFLAGS="-I$ICU_PREFIX/include"
|
# if the user specifies an ICU prefix, use that one.
|
||||||
ICU_LIBS="-L$ICU_PREFIX/lib -licui18n -licuuc -licudata -ldl"
|
# if the user did not specify an ICU prefix but did specify a general prefix use that one.
|
||||||
# PKG_CONFIG_PATH="${ICU_PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH"
|
# otherwise use pkg_config if it's available.
|
||||||
# export PKG_CONFIG_PATH
|
# well, actually, things seem to work fine without this fallback to pkg_config so we'll leave that out for now.
|
||||||
|
# note: in order to use AC_CHECK_LIB we have to override CPPFLAGS and LDFLAGS
|
||||||
|
# however, we don't want to keep those overridden after our checks;
|
||||||
|
# we want to rely on ICU_CPPFLAGS and ICU_LIBS after that
|
||||||
|
# to further complicate matters there are at least three different naming conventions for ICU libraries
|
||||||
|
# to simplify things we'll just check one from each convention
|
||||||
|
|
||||||
|
AS_IF([test "x${prefix}" != "xNONE" && test "x$ICU_PREFIX" == "xauto"], [
|
||||||
|
ICU_PREFIX="${prefix}"
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_MSG_NOTICE([Using ICU_CPPFLAGS $ICU_CPPFLAGS])
|
AS_IF([test "x$ICU_PREFIX" != "xauto"], [
|
||||||
AC_MSG_NOTICE([Using ICU_LIBS $ICU_LIBS])
|
ICU_CPPFLAGS="$(PKG_CONFIG_SYSROOT_DIR=/ PKG_CONFIG_LIBDIR=$ICU_PREFIX/lib/pkgconfig PKG_CONFIG_PATH=$ICU_PREFIX/share/pkgconfig pkg-config icu-io icu-uc icu-i18n --cflags)"
|
||||||
|
ICU_LIBS="$(PKG_CONFIG_SYSROOT_DIR=/ PKG_CONFIG_LIBDIR=$ICU_PREFIX/lib/pkgconfig PKG_CONFIG_PATH=$ICU_PREFIX/share/pkgconfig pkg-config icu-io icu-uc icu-i18n --libs)"
|
||||||
CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
|
])
|
||||||
ORIG_LDFLAGS=$LDFLAGS
|
|
||||||
LDFLAGS="$LDFLAGS $ICU_LIBS"
|
|
||||||
|
|
||||||
if test x$use_pkgconfig = xyes; then
|
if test x$use_pkgconfig = xyes; then
|
||||||
: dnl
|
: dnl
|
||||||
|
@ -1107,20 +1115,14 @@ if test x$use_pkgconfig = xyes; then
|
||||||
else
|
else
|
||||||
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
|
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "x$ICU_PREFIX" == "xauto"; then
|
||||||
|
PKG_CHECK_MODULES([ICU], [icu-io, icu-uc, icu-i18n])
|
||||||
|
fi
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else # compiling on Window:
|
else # probably compiling on Windows or cross-compiling for it:
|
||||||
AC_MSG_NOTICE([Configuring for Windows])
|
AC_MSG_NOTICE([Configuring for MinGW])
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -Ix86_64-w64-mingw32/include"
|
|
||||||
LDFLAGS="$LDFLAGS -Lx86_64-w64-mingw32/lib"
|
|
||||||
|
|
||||||
AC_CHECK_HEADER([unicode/errorcode.h],,AC_MSG_ERROR(libicu headers missing))
|
|
||||||
AC_CHECK_LIB([icudata], [main], ICU_LIBS=$ICU_LIBS,
|
|
||||||
AC_CHECK_LIB([icu18n], [main],ICU_LIBS=$ICU_LIBS, ICU_LIBS="-L$ICU_PREFIX/lib -lsicuio -lsicuin -lsiculx -lsicule -lsicuuc -lsicudt"))
|
|
||||||
AC_MSG_NOTICE([Using ICU_LIBS=$ICU_LIBS])
|
|
||||||
LDFLAGS="$ORIG_LDFLAGS $ICU_LIBS"
|
|
||||||
AC_CHECK_LIB([sicudt], [main], ICU_LIBS=$ICU_LIBS, AC_MSG_ERROR(icu libraries missing))
|
|
||||||
|
|
||||||
AC_CHECK_HEADER([openssl/crypto.h],,AC_MSG_ERROR(libcrypto headers missing))
|
AC_CHECK_HEADER([openssl/crypto.h],,AC_MSG_ERROR(libcrypto headers missing))
|
||||||
AC_CHECK_LIB([crypto], [main],CRYPTO_LIBS=-lcrypto, AC_MSG_ERROR(libcrypto missing))
|
AC_CHECK_LIB([crypto], [main],CRYPTO_LIBS=-lcrypto, AC_MSG_ERROR(libcrypto missing))
|
||||||
|
@ -1166,6 +1168,9 @@ else # compiling on Window:
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_NOTICE([Using ICU_CPPFLAGS="$ICU_CPPFLAGS"])
|
||||||
|
AC_MSG_NOTICE([Using ICU_LIBS="$ICU_LIBS"])
|
||||||
|
|
||||||
save_CXXFLAGS="${CXXFLAGS}"
|
save_CXXFLAGS="${CXXFLAGS}"
|
||||||
CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}"
|
CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}"
|
||||||
AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT
|
AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
--- src/dbinc/atomic.h 2013-03-12 14:07:22.000000000 -0400
|
|
||||||
+++ src/dbinc/atomic.h.change 2013-03-12 14:06:35.000000000 -0400
|
|
||||||
@@ -144,7 +144,7 @@
|
|
||||||
#define atomic_inc(env, p) __atomic_inc(p)
|
|
||||||
#define atomic_dec(env, p) __atomic_dec(p)
|
|
||||||
#define atomic_compare_exchange(env, p, o, n) \
|
|
||||||
- __atomic_compare_exchange((p), (o), (n))
|
|
||||||
+ __atomic_compare_exchange_db((p), (o), (n))
|
|
||||||
static inline int __atomic_inc(db_atomic_t *p)
|
|
||||||
{
|
|
||||||
int temp;
|
|
||||||
@@ -176,7 +176,7 @@
|
|
||||||
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
|
|
||||||
* which configure could be changed to use.
|
|
||||||
*/
|
|
||||||
-static inline int __atomic_compare_exchange(
|
|
||||||
+static inline int __atomic_compare_exchange_db(
|
|
||||||
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
|
|
||||||
{
|
|
||||||
atomic_value_t was;
|
|
3
depends/.gitignore
vendored
3
depends/.gitignore
vendored
|
@ -7,3 +7,6 @@ x86_64*
|
||||||
i686*
|
i686*
|
||||||
mips*
|
mips*
|
||||||
arm*
|
arm*
|
||||||
|
aarch64*
|
||||||
|
riscv32*
|
||||||
|
riscv64*
|
|
@ -1,13 +1,12 @@
|
||||||
.NOTPARALLEL :
|
.NOTPARALLEL :
|
||||||
|
|
||||||
SOURCES_PATH ?= $(BASEDIR)/sources
|
SOURCES_PATH ?= $(BASEDIR)/sources
|
||||||
|
WORK_PATH = $(BASEDIR)/work
|
||||||
BASE_CACHE ?= $(BASEDIR)/built
|
BASE_CACHE ?= $(BASEDIR)/built
|
||||||
SDK_PATH ?= $(BASEDIR)/SDKs
|
SDK_PATH ?= $(BASEDIR)/SDKs
|
||||||
NO_QT ?=
|
NO_QT ?=
|
||||||
NO_WALLET ?=
|
NO_WALLET ?=
|
||||||
NO_UPNP ?=
|
NO_UPNP ?=
|
||||||
ICU_DIR ?=
|
|
||||||
ICU_ONLY ?=
|
|
||||||
FALLBACK_DOWNLOAD_PATH ?= https://bitcoincore.org/depends-sources
|
FALLBACK_DOWNLOAD_PATH ?= https://bitcoincore.org/depends-sources
|
||||||
|
|
||||||
BUILD = $(shell ./config.guess)
|
BUILD = $(shell ./config.guess)
|
||||||
|
@ -23,7 +22,6 @@ BUILD_ID_SALT ?= salt
|
||||||
host:=$(BUILD)
|
host:=$(BUILD)
|
||||||
ifneq ($(HOST),)
|
ifneq ($(HOST),)
|
||||||
host:=$(HOST)
|
host:=$(HOST)
|
||||||
host_toolchain:=$(HOST)-
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(DEBUG),)
|
ifneq ($(DEBUG),)
|
||||||
|
@ -32,9 +30,9 @@ else
|
||||||
release_type=release
|
release_type=release
|
||||||
endif
|
endif
|
||||||
|
|
||||||
base_build_dir=$(BASEDIR)/work/build
|
base_build_dir=$(WORK_PATH)/build
|
||||||
base_staging_dir=$(BASEDIR)/work/staging
|
base_staging_dir=$(WORK_PATH)/staging
|
||||||
base_download_dir=$(BASEDIR)/work/download
|
base_download_dir=$(WORK_PATH)/download
|
||||||
canonical_host:=$(shell ./config.sub $(HOST))
|
canonical_host:=$(shell ./config.sub $(HOST))
|
||||||
build:=$(shell ./config.sub $(BUILD))
|
build:=$(shell ./config.sub $(BUILD))
|
||||||
|
|
||||||
|
@ -75,11 +73,7 @@ include hosts/$(host_os).mk
|
||||||
include hosts/default.mk
|
include hosts/default.mk
|
||||||
include builders/$(build_os).mk
|
include builders/$(build_os).mk
|
||||||
include builders/default.mk
|
include builders/default.mk
|
||||||
ifeq ($(ICU_ONLY),)
|
|
||||||
include packages/packages.mk
|
include packages/packages.mk
|
||||||
else
|
|
||||||
include packages/packages.icu.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
build_id_string:=$(BUILD_ID_SALT)
|
build_id_string:=$(BUILD_ID_SALT)
|
||||||
build_id_string+=$(shell $(build_CC) --version 2>/dev/null)
|
build_id_string+=$(shell $(build_CC) --version 2>/dev/null)
|
||||||
|
@ -95,14 +89,17 @@ $(host_arch)_$(host_os)_id_string+=$(shell $(host_CXX) --version 2>/dev/null)
|
||||||
$(host_arch)_$(host_os)_id_string+=$(shell $(host_RANLIB) --version 2>/dev/null)
|
$(host_arch)_$(host_os)_id_string+=$(shell $(host_RANLIB) --version 2>/dev/null)
|
||||||
$(host_arch)_$(host_os)_id_string+=$(shell $(host_STRIP) --version 2>/dev/null)
|
$(host_arch)_$(host_os)_id_string+=$(shell $(host_STRIP) --version 2>/dev/null)
|
||||||
|
|
||||||
qt_packages_$(NO_QT) = $(qt_packages) $(qt_$(host_os)_packages)
|
qt_packages_$(NO_QT) = $(qt_packages) $(qt_$(host_os)_packages) $(qt_$(host_arch)_$(host_os)_packages)
|
||||||
qt_native_packages_$(NO_QT) = $(qt_native_packages)
|
|
||||||
wallet_packages_$(NO_WALLET) = $(wallet_packages)
|
wallet_packages_$(NO_WALLET) = $(wallet_packages)
|
||||||
upnp_packages_$(NO_UPNP) = $(upnp_packages)
|
upnp_packages_$(NO_UPNP) = $(upnp_packages)
|
||||||
|
|
||||||
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
|
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
|
||||||
$(info $$packages is [${packages}])
|
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
|
||||||
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages) $(qt_native_packages_)
|
|
||||||
|
ifneq ($(qt_packages_),)
|
||||||
|
native_packages += $(qt_native_packages)
|
||||||
|
endif
|
||||||
|
|
||||||
all_packages = $(packages) $(native_packages)
|
all_packages = $(packages) $(native_packages)
|
||||||
|
|
||||||
meta_depends = Makefile funcs.mk builders/default.mk hosts/default.mk hosts/$(host_os).mk builders/$(build_os).mk
|
meta_depends = Makefile funcs.mk builders/default.mk hosts/default.mk hosts/$(host_os).mk builders/$(build_os).mk
|
||||||
|
@ -125,8 +122,8 @@ $(host_prefix)/.stamp_$(final_build_id): $(native_packages) $(packages)
|
||||||
$(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_build_id)
|
$(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_build_id)
|
||||||
$(AT)@mkdir -p $(@D)
|
$(AT)@mkdir -p $(@D)
|
||||||
$(AT)sed -e 's|@HOST@|$(host)|' \
|
$(AT)sed -e 's|@HOST@|$(host)|' \
|
||||||
-e 's|@CC@|$(toolchain_path)$(host_CC)|' \
|
-e 's|@CC@|$(host_CC)|' \
|
||||||
-e 's|@CXX@|$(toolchain_path)$(host_CXX)|' \
|
-e 's|@CXX@|$(host_CXX)|' \
|
||||||
-e 's|@AR@|$(toolchain_path)$(host_AR)|' \
|
-e 's|@AR@|$(toolchain_path)$(host_AR)|' \
|
||||||
-e 's|@RANLIB@|$(toolchain_path)$(host_RANLIB)|' \
|
-e 's|@RANLIB@|$(toolchain_path)$(host_RANLIB)|' \
|
||||||
-e 's|@NM@|$(toolchain_path)$(host_NM)|' \
|
-e 's|@NM@|$(toolchain_path)$(host_NM)|' \
|
||||||
|
@ -137,8 +134,8 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
|
||||||
-e 's|@CXXFLAGS@|$(strip $(host_CXXFLAGS) $(host_$(release_type)_CXXFLAGS))|' \
|
-e 's|@CXXFLAGS@|$(strip $(host_CXXFLAGS) $(host_$(release_type)_CXXFLAGS))|' \
|
||||||
-e 's|@CPPFLAGS@|$(strip $(host_CPPFLAGS) $(host_$(release_type)_CPPFLAGS))|' \
|
-e 's|@CPPFLAGS@|$(strip $(host_CPPFLAGS) $(host_$(release_type)_CPPFLAGS))|' \
|
||||||
-e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \
|
-e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \
|
||||||
|
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
|
||||||
-e 's|@no_qt@|$(NO_QT)|' \
|
-e 's|@no_qt@|$(NO_QT)|' \
|
||||||
-e 's|@ICU_DIR@|$(ICU_DIR)|' \
|
|
||||||
-e 's|@no_wallet@|$(NO_WALLET)|' \
|
-e 's|@no_wallet@|$(NO_WALLET)|' \
|
||||||
-e 's|@no_upnp@|$(NO_UPNP)|' \
|
-e 's|@no_upnp@|$(NO_UPNP)|' \
|
||||||
-e 's|@debug@|$(DEBUG)|' \
|
-e 's|@debug@|$(DEBUG)|' \
|
||||||
|
@ -169,17 +166,23 @@ $(host_prefix)/share/config.site: check-packages
|
||||||
|
|
||||||
check-packages: check-sources
|
check-packages: check-sources
|
||||||
|
|
||||||
|
clean-all: clean
|
||||||
|
@rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64* riscv32* riscv64*
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -rf $(WORK_PATH) $(BASE_CACHE) $(BUILD)
|
||||||
|
|
||||||
install: check-packages $(host_prefix)/share/config.site
|
install: check-packages $(host_prefix)/share/config.site
|
||||||
|
|
||||||
|
|
||||||
download-one: check-sources $(all_sources)
|
download-one: check-sources $(all_sources)
|
||||||
|
|
||||||
download-osx:
|
download-osx:
|
||||||
@$(MAKE) -s HOST=x86_64-apple-darwin11 download-one
|
@$(MAKE) -s HOST=x86_64-apple-darwin14 download-one
|
||||||
download-linux:
|
download-linux:
|
||||||
@$(MAKE) -s HOST=x86_64-unknown-linux-gnu download-one
|
@$(MAKE) -s HOST=x86_64-unknown-linux-gnu download-one
|
||||||
download-win:
|
download-win:
|
||||||
@$(MAKE) -s HOST=x86_64-w64-mingw32 download-one
|
@$(MAKE) -s HOST=x86_64-w64-mingw32 download-one
|
||||||
download: download-osx download-linux download-win
|
download: download-osx download-linux download-win
|
||||||
|
|
||||||
.PHONY: install cached download-one download-osx download-linux download-win download check-packages check-sources
|
.PHONY: install cached clean clean-all download-one download-osx download-linux download-win download check-packages check-sources
|
||||||
|
|
|
@ -22,17 +22,42 @@ Common `host-platform-triplets` for cross compilation are:
|
||||||
|
|
||||||
- `i686-w64-mingw32` for Win32
|
- `i686-w64-mingw32` for Win32
|
||||||
- `x86_64-w64-mingw32` for Win64
|
- `x86_64-w64-mingw32` for Win64
|
||||||
- `x86_64-apple-darwin11` for MacOSX
|
- `x86_64-apple-darwin14` for macOS
|
||||||
- `arm-linux-gnueabihf` for Linux ARM
|
- `arm-linux-gnueabihf` for Linux ARM 32 bit
|
||||||
|
- `aarch64-linux-gnu` for Linux ARM 64 bit
|
||||||
|
- `riscv32-linux-gnu` for Linux RISC-V 32 bit
|
||||||
|
- `riscv64-linux-gnu` for Linux RISC-V 64 bit
|
||||||
|
|
||||||
No other options are needed, the paths are automatically configured.
|
No other options are needed, the paths are automatically configured.
|
||||||
|
|
||||||
|
Install the required dependencies: Ubuntu & Debian
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
For macOS cross compilation:
|
||||||
|
|
||||||
|
sudo apt-get install curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
|
||||||
|
|
||||||
|
For Win32/Win64 cross compilation:
|
||||||
|
|
||||||
|
- see [build-windows.md](../doc/build-windows.md#cross-compilation-for-ubuntu-and-windows-subsystem-for-linux)
|
||||||
|
|
||||||
|
For linux (including i386, ARM) cross compilation:
|
||||||
|
|
||||||
|
sudo apt-get install curl g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold bsdmainutils
|
||||||
|
|
||||||
|
For linux RISC-V 64-bit cross compilation (there are no packages for 32-bit):
|
||||||
|
|
||||||
|
sudo apt-get install curl g++-riscv64-linux-gnu binutils-riscv64-linux-gnu
|
||||||
|
|
||||||
|
RISC-V known issue: gcc-7.3.0 and gcc-7.3.1 result in a broken `test_lbrycrd` executable (see https://github.com/bitcoin/bitcoin/pull/13543),
|
||||||
|
this is apparently fixed in gcc-8.1.0.
|
||||||
|
|
||||||
Dependency Options:
|
Dependency Options:
|
||||||
The following can be set when running make: make FOO=bar
|
The following can be set when running make: make FOO=bar
|
||||||
|
|
||||||
SOURCES_PATH: downloaded sources will be placed here
|
SOURCES_PATH: downloaded sources will be placed here
|
||||||
BASE_CACHE: built packages will be placed here
|
BASE_CACHE: built packages will be placed here
|
||||||
SDK_PATH: Path where sdk's can be found (used by OSX)
|
SDK_PATH: Path where sdk's can be found (used by macOS)
|
||||||
FALLBACK_DOWNLOAD_PATH: If a source file can't be fetched, try here before giving up
|
FALLBACK_DOWNLOAD_PATH: If a source file can't be fetched, try here before giving up
|
||||||
NO_QT: Don't download/build/cache qt and its dependencies
|
NO_QT: Don't download/build/cache qt and its dependencies
|
||||||
NO_WALLET: Don't download/build/cache libs needed to enable the wallet
|
NO_WALLET: Don't download/build/cache libs needed to enable the wallet
|
||||||
|
@ -42,12 +67,12 @@ The following can be set when running make: make FOO=bar
|
||||||
BUILD_ID_SALT: Optional salt to use when generating build package ids
|
BUILD_ID_SALT: Optional salt to use when generating build package ids
|
||||||
|
|
||||||
If some packages are not built, for example `make NO_WALLET=1`, the appropriate
|
If some packages are not built, for example `make NO_WALLET=1`, the appropriate
|
||||||
options will be passed to bitcoin's configure. In this case, `--disable-wallet`.
|
options will be passed to lbrycrd's configure. In this case, `--disable-wallet`.
|
||||||
|
|
||||||
Additional targets:
|
Additional targets:
|
||||||
|
|
||||||
download: run 'make download' to fetch all sources without building them
|
download: run 'make download' to fetch all sources without building them
|
||||||
download-osx: run 'make download-osx' to fetch all sources needed for osx builds
|
download-osx: run 'make download-osx' to fetch all sources needed for macOS builds
|
||||||
download-win: run 'make download-win' to fetch all sources needed for win builds
|
download-win: run 'make download-win' to fetch all sources needed for win builds
|
||||||
download-linux: run 'make download-linux' to fetch all sources needed for linux builds
|
download-linux: run 'make download-linux' to fetch all sources needed for linux builds
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
build_darwin_CC: = $(shell xcrun -f clang)
|
build_darwin_CC:=$(shell xcrun -f clang)
|
||||||
build_darwin_CXX: = $(shell xcrun -f clang++)
|
build_darwin_CXX:=$(shell xcrun -f clang++)
|
||||||
build_darwin_AR: = $(shell xcrun -f ar)
|
build_darwin_AR:=$(shell xcrun -f ar)
|
||||||
build_darwin_RANLIB: = $(shell xcrun -f ranlib)
|
build_darwin_RANLIB:=$(shell xcrun -f ranlib)
|
||||||
build_darwin_STRIP: = $(shell xcrun -f strip)
|
build_darwin_STRIP:=$(shell xcrun -f strip)
|
||||||
build_darwin_OTOOL: = $(shell xcrun -f otool)
|
build_darwin_OTOOL:=$(shell xcrun -f otool)
|
||||||
build_darwin_NM: = $(shell xcrun -f nm)
|
build_darwin_NM:=$(shell xcrun -f nm)
|
||||||
build_darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
|
build_darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
|
||||||
build_darwin_SHA256SUM = shasum -a 256
|
build_darwin_SHA256SUM=shasum -a 256
|
||||||
build_darwin_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
||||||
|
|
||||||
#darwin host on darwin builder. overrides darwin host preferences.
|
#darwin host on darwin builder. overrides darwin host preferences.
|
||||||
darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION)
|
darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION)
|
||||||
darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION)
|
darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION) -stdlib=libc++
|
||||||
darwin_AR:=$(shell xcrun -f ar)
|
darwin_AR:=$(shell xcrun -f ar)
|
||||||
darwin_RANLIB:=$(shell xcrun -f ranlib)
|
darwin_RANLIB:=$(shell xcrun -f ranlib)
|
||||||
darwin_STRIP:=$(shell xcrun -f strip)
|
darwin_STRIP:=$(shell xcrun -f strip)
|
||||||
|
|
611
depends/config.guess
vendored
611
depends/config.guess
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,27 +1,25 @@
|
||||||
|
depends_prefix="`dirname ${ac_site_file}`/.."
|
||||||
|
|
||||||
cross_compiling=maybe
|
cross_compiling=maybe
|
||||||
host_alias=@HOST@
|
host_alias=@HOST@
|
||||||
ac_tool_prefix=${host_alias}-
|
ac_tool_prefix=${host_alias}-
|
||||||
|
|
||||||
if test -z $with_boost; then
|
if test -z $with_boost; then
|
||||||
with_boost=$prefix
|
with_boost=$depends_prefix
|
||||||
fi
|
fi
|
||||||
if test -z $with_qt_plugindir; then
|
if test -z $with_qt_plugindir; then
|
||||||
with_qt_plugindir=$prefix/plugins
|
with_qt_plugindir=$depends_prefix/plugins
|
||||||
fi
|
fi
|
||||||
if test -z $with_qt_translationdir; then
|
if test -z $with_qt_translationdir; then
|
||||||
with_qt_translationdir=$prefix/translations
|
with_qt_translationdir=$depends_prefix/translations
|
||||||
fi
|
fi
|
||||||
if test -z $with_qt_bindir; then
|
if test -z $with_qt_bindir && test -z "@no_qt@"; then
|
||||||
with_qt_bindir=$prefix/native/bin
|
with_qt_bindir=$depends_prefix/native/bin
|
||||||
fi
|
fi
|
||||||
if test -z $with_protoc_bindir; then
|
if test -z $with_protoc_bindir && test -z "@no_qt@"; then
|
||||||
with_protoc_bindir=$prefix/native/bin
|
with_protoc_bindir=$depends_prefix/native/bin
|
||||||
fi
|
|
||||||
if test -z $with_comparison_tool; then
|
|
||||||
with_comparison_tool=$prefix/native/share/BitcoindComparisonTool_jar/BitcoindComparisonTool.jar
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
with_icu_dir=@icu_dir@
|
|
||||||
|
|
||||||
if test -z $enable_wallet && test -n "@no_wallet@"; then
|
if test -z $enable_wallet && test -n "@no_wallet@"; then
|
||||||
enable_wallet=no
|
enable_wallet=no
|
||||||
|
@ -42,32 +40,31 @@ fi
|
||||||
|
|
||||||
if test x@host_os@ = xmingw32; then
|
if test x@host_os@ = xmingw32; then
|
||||||
if test -z $with_qt_incdir; then
|
if test -z $with_qt_incdir; then
|
||||||
with_qt_incdir=$prefix/include
|
with_qt_incdir=$depends_prefix/include
|
||||||
fi
|
fi
|
||||||
if test -z $with_qt_libdir; then
|
if test -z $with_qt_libdir; then
|
||||||
with_qt_libdir=$prefix/lib
|
with_qt_libdir=$depends_prefix/lib
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PATH=$prefix/native/bin:$PATH
|
PATH=$depends_prefix/native/bin:$PATH
|
||||||
PKG_CONFIG="`which pkg-config` --static"
|
PKG_CONFIG="`which pkg-config` --static"
|
||||||
|
|
||||||
# These two need to remain exported because pkg-config does not see them
|
# These two need to remain exported because pkg-config does not see them
|
||||||
# otherwise. That means they must be unexported at the end of configure.ac to
|
# otherwise. That means they must be unexported at the end of configure.ac to
|
||||||
# avoid ruining the cache. Sigh.
|
# avoid ruining the cache. Sigh.
|
||||||
|
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig
|
||||||
|
if test -z "@allow_host_packages@"; then
|
||||||
|
export PKGCONFIG_LIBDIR=
|
||||||
|
fi
|
||||||
|
|
||||||
export PKG_CONFIG_LIBDIR=$prefix/lib/pkgconfig
|
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
|
||||||
export PKG_CONFIG_PATH=$prefix/share/pkgconfig
|
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
|
||||||
|
|
||||||
CPPFLAGS="-I$prefix/include/ $CPPFLAGS"
|
|
||||||
LDFLAGS="-L$prefix/lib $LDFLAGS"
|
|
||||||
|
|
||||||
CC="@CC@"
|
CC="@CC@"
|
||||||
CXX="@CXX@"
|
CXX="@CXX@"
|
||||||
OBJC="${CC}"
|
OBJC="${CC}"
|
||||||
OBJCXX="${CXX}"
|
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH
|
||||||
CCACHE=$prefix/native/bin/ccache
|
|
||||||
PYTHONPATH=$prefix/native/lib/python/dist-packages:$PYTHONPATH
|
|
||||||
|
|
||||||
if test -n "@AR@"; then
|
if test -n "@AR@"; then
|
||||||
AR=@AR@
|
AR=@AR@
|
||||||
|
@ -100,6 +97,3 @@ fi
|
||||||
if test -n "@LDFLAGS@"; then
|
if test -n "@LDFLAGS@"; then
|
||||||
LDFLAGS="@LDFLAGS@ $LDFLAGS"
|
LDFLAGS="@LDFLAGS@ $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
if test -n "@ICU_DIR@"; then
|
|
||||||
ICU_DIR="@ICU_DIR@"
|
|
||||||
fi
|
|
||||||
|
|
1683
depends/config.sub
vendored
1683
depends/config.sub
vendored
File diff suppressed because it is too large
Load diff
|
@ -7,7 +7,7 @@ In theory, binaries for any target OS/architecture can be created, from a
|
||||||
builder running any OS/architecture. In practice, build-side tools must be
|
builder running any OS/architecture. In practice, build-side tools must be
|
||||||
specified when the defaults don't fit, and packages must be amended to work
|
specified when the defaults don't fit, and packages must be amended to work
|
||||||
on new hosts. For now, a build architecture of x86_64 is assumed, either on
|
on new hosts. For now, a build architecture of x86_64 is assumed, either on
|
||||||
Linux or OSX.
|
Linux or macOS.
|
||||||
|
|
||||||
### No reliance on timestamps
|
### No reliance on timestamps
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ $($(1)_preprocessed): | $($(1)_dependencies) $($(1)_extracted)
|
||||||
$(AT)echo Preprocessing $(1)...
|
$(AT)echo Preprocessing $(1)...
|
||||||
$(AT)mkdir -p $$(@D) $($(1)_patch_dir)
|
$(AT)mkdir -p $$(@D) $($(1)_patch_dir)
|
||||||
$(AT)$(foreach patch,$($(1)_patches),cd $(PATCHES_PATH)/$(1); cp $(patch) $($(1)_patch_dir) ;)
|
$(AT)$(foreach patch,$($(1)_patches),cd $(PATCHES_PATH)/$(1); cp $(patch) $($(1)_patch_dir) ;)
|
||||||
$(AT)cd $$(@D); $(call $(1)_preprocess_cmds, $(1))
|
$(AT)+cd $$(@D); $(call $(1)_preprocess_cmds, $(1))
|
||||||
$(AT)touch $$@
|
$(AT)touch $$@
|
||||||
$($(1)_configured): | $($(1)_preprocessed)
|
$($(1)_configured): | $($(1)_preprocessed)
|
||||||
$(AT)echo Configuring $(1)...
|
$(AT)echo Configuring $(1)...
|
||||||
|
@ -190,7 +190,7 @@ $($(1)_built): | $($(1)_configured)
|
||||||
$($(1)_staged): | $($(1)_built)
|
$($(1)_staged): | $($(1)_built)
|
||||||
$(AT)echo Staging $(1)...
|
$(AT)echo Staging $(1)...
|
||||||
$(AT)mkdir -p $($(1)_staging_dir)/$(host_prefix)
|
$(AT)mkdir -p $($(1)_staging_dir)/$(host_prefix)
|
||||||
$(AT)cd $($(1)_build_dir); $($(1)_stage_env) $(call $(1)_stage_cmds, $(1))
|
$(AT)+cd $($(1)_build_dir); $($(1)_stage_env) $(call $(1)_stage_cmds, $(1))
|
||||||
$(AT)rm -rf $($(1)_extract_dir)
|
$(AT)rm -rf $($(1)_extract_dir)
|
||||||
$(AT)touch $$@
|
$(AT)touch $$@
|
||||||
$($(1)_postprocessed): | $($(1)_staged)
|
$($(1)_postprocessed): | $($(1)_staged)
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
OSX_MIN_VERSION=10.7
|
OSX_MIN_VERSION=10.10
|
||||||
OSX_SDK_VERSION=10.9
|
OSX_SDK_VERSION=10.11
|
||||||
OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk
|
OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk
|
||||||
LD64_VERSION=241.9
|
LD64_VERSION=253.9
|
||||||
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION)
|
|
||||||
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION)
|
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) -isysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -B $(host_prefix)/native/bin
|
||||||
|
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) -isysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -stdlib=libc++ -B $(host_prefix)/native/bin
|
||||||
|
|
||||||
darwin_CFLAGS=-pipe
|
darwin_CFLAGS=-pipe
|
||||||
darwin_CXXFLAGS=$(darwin_CFLAGS)
|
darwin_CXXFLAGS=$(darwin_CFLAGS)
|
||||||
|
@ -11,7 +12,7 @@ darwin_CXXFLAGS=$(darwin_CFLAGS)
|
||||||
darwin_release_CFLAGS=-O2
|
darwin_release_CFLAGS=-O2
|
||||||
darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)
|
darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)
|
||||||
|
|
||||||
darwin_debug_CFLAGS=-O1
|
darwin_debug_CFLAGS=-Og
|
||||||
darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS)
|
darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS)
|
||||||
|
|
||||||
darwin_native_toolchain=native_cctools
|
darwin_native_toolchain=native_cctools
|
|
@ -1,3 +1,7 @@
|
||||||
|
ifneq ($(host),$(build))
|
||||||
|
host_toolchain:=$(host)-
|
||||||
|
endif
|
||||||
|
|
||||||
default_host_CC = $(host_toolchain)gcc
|
default_host_CC = $(host_toolchain)gcc
|
||||||
default_host_CXX = $(host_toolchain)g++
|
default_host_CXX = $(host_toolchain)g++
|
||||||
default_host_AR = $(host_toolchain)ar
|
default_host_AR = $(host_toolchain)ar
|
||||||
|
|
|
@ -4,28 +4,28 @@ linux_CXXFLAGS=$(linux_CFLAGS)
|
||||||
linux_release_CFLAGS=-O2
|
linux_release_CFLAGS=-O2
|
||||||
linux_release_CXXFLAGS=$(linux_release_CFLAGS)
|
linux_release_CXXFLAGS=$(linux_release_CFLAGS)
|
||||||
|
|
||||||
linux_debug_CFLAGS=-O1
|
linux_debug_CFLAGS=-Og
|
||||||
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
|
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
|
||||||
|
|
||||||
linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
||||||
|
|
||||||
ifeq (86,$(findstring 86,$(build_arch)))
|
ifeq (86,$(findstring 86,$(build_arch)))
|
||||||
i686_linux_CC=gcc -m32
|
i686_linux_CC=cc -m32
|
||||||
i686_linux_CXX=g++ -m32
|
i686_linux_CXX=c++ -m32
|
||||||
i686_linux_AR=ar
|
i686_linux_AR=ar
|
||||||
i686_linux_RANLIB=ranlib
|
i686_linux_RANLIB=ranlib
|
||||||
i686_linux_NM=nm
|
i686_linux_NM=nm
|
||||||
i686_linux_STRIP=strip
|
i686_linux_STRIP=strip
|
||||||
|
|
||||||
x86_64_linux_CC=gcc -m64
|
x86_64_linux_CC=cc -m64
|
||||||
x86_64_linux_CXX=g++ -m64
|
x86_64_linux_CXX=c++ -m64
|
||||||
x86_64_linux_AR=ar
|
x86_64_linux_AR=ar
|
||||||
x86_64_linux_RANLIB=ranlib
|
x86_64_linux_RANLIB=ranlib
|
||||||
x86_64_linux_NM=nm
|
x86_64_linux_NM=nm
|
||||||
x86_64_linux_STRIP=strip
|
x86_64_linux_STRIP=strip
|
||||||
else
|
else
|
||||||
i686_linux_CC=$(default_host_CC) -m32
|
i686_linux_CC=cc -m32
|
||||||
i686_linux_CXX=$(default_host_CXX) -m32
|
i686_linux_CXX=c++ -m32
|
||||||
x86_64_linux_CC=$(default_host_CC) -m64
|
x86_64_linux_CC=cc -m64
|
||||||
x86_64_linux_CXX=$(default_host_CXX) -m64
|
x86_64_linux_CXX=c++ -m64
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -9,11 +9,13 @@ define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication
|
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication
|
||||||
$(package)_config_opts_mingw32=--enable-mingw
|
$(package)_config_opts_mingw32=--enable-mingw
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
|
$(package)_cxxflags=-std=c++11
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h && \
|
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h && \
|
||||||
sed -i.old 's/atomic_init/atomic_init_db/' dbinc/atomic.h mp/mp_region.c mp/mp_mvcc.c mp/mp_fget.c mutex/mut_method.c mutex/mut_tas.c
|
sed -i.old 's/atomic_init/atomic_init_db/' dbinc/atomic.h mp/mp_region.c mp/mp_mvcc.c mp/mp_fget.c mutex/mut_method.c mutex/mut_tas.c && \
|
||||||
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub dist
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
|
|
@ -1,16 +1,19 @@
|
||||||
package=boost
|
package=boost
|
||||||
$(package)_version=1_59_0
|
$(package)_version=1_69_0
|
||||||
$(package)_download_path=http://sourceforge.net/projects/boost/files/boost/1.59.0
|
$(package)_download_path=https://dl.bintray.com/boostorg/release/1.69.0/source/
|
||||||
$(package)_file_name=$(package)_$($(package)_version).tar.bz2
|
$(package)_file_name=$(package)_$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=727a932322d94287b62abb1bd2d41723eec4356a7728909e38adb65ca25241ca
|
$(package)_sha256_hash=8f32d4617390d1c2d16f26a27ab60d97807b35440d45891fa340fc2648b04406
|
||||||
$(package)_dependencies:icu
|
$(package)_dependencies=icu
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts_release=variant=release
|
$(package)_config_opts_release=variant=release
|
||||||
$(package)_config_opts_debug=variant=debug
|
$(package)_config_opts_debug=variant=debug
|
||||||
$(package)_config_opts=--layout=tagged --build-type=complete --user-config=user-config.jam boost.locale.iconv=off boost.locale.posix=off
|
$(package)_config_opts=--layout=tagged --build-type=complete --user-config=user-config.jam
|
||||||
$(package)_config_opts+=threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 -sICU_PATH=$(ICU_DIR)
|
$(package)_config_opts+=threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1
|
||||||
$(package)_config_opts+=-sICU_LINK=-L$(ICU_DIR) -lsicudt -lsicuin -lsicuio -lsicule -lsiculx -lsicutest -lsicutu -lsicuuc
|
$(package)_config_opts+=boost.locale.iconv=off boost.locale.posix=off boost.locale.icu=on boost.locale.std=off -sICU_PATH="$(host_prefix)"
|
||||||
|
# The stupid ICU_LINK handling reorders the dependencies alphabetically, thus making it impossible to get the link order correct.
|
||||||
|
# To work around this we're using the ldflags below but we need ICU_LINK to be non-blank so that we don't get an auto-generated conflict with ldflags.
|
||||||
|
$(package)_config_opts+=-sICU_LINK="-time"
|
||||||
$(package)_config_opts_linux=threadapi=pthread runtime-link=shared
|
$(package)_config_opts_linux=threadapi=pthread runtime-link=shared
|
||||||
$(package)_config_opts_darwin=--toolset=darwin-4.2.1 runtime-link=shared
|
$(package)_config_opts_darwin=--toolset=darwin-4.2.1 runtime-link=shared
|
||||||
$(package)_config_opts_mingw32=binary-format=pe target-os=windows threadapi=win32 runtime-link=static
|
$(package)_config_opts_mingw32=binary-format=pe target-os=windows threadapi=win32 runtime-link=static
|
||||||
|
@ -21,17 +24,15 @@ $(package)_toolset_$(host_os)=gcc
|
||||||
$(package)_archiver_$(host_os)=$($(package)_ar)
|
$(package)_archiver_$(host_os)=$($(package)_ar)
|
||||||
$(package)_toolset_darwin=darwin
|
$(package)_toolset_darwin=darwin
|
||||||
$(package)_archiver_darwin=$($(package)_libtool)
|
$(package)_archiver_darwin=$($(package)_libtool)
|
||||||
$(package)_config_libraries=chrono,filesystem,program_options,system,locale,regex,thread,test
|
$(package)_config_libraries=chrono,filesystem,system,locale,thread,test
|
||||||
$(package)_cxxflags=-fvisibility=hidden
|
$(package)_cxxflags=-std=c++11 -fvisibility=hidden -Wno-deprecated
|
||||||
$(package)_cxxflags_linux=-fPIC
|
$(package)_cxxflags_linux=-fPIC
|
||||||
$(package)_config_env+=BOOST_ICU_ICONV="off"
|
# The ideal doesn't work because vars are evaluated before any dependency is processed:
|
||||||
$(package)_config_env+=BOOST_ICU_POSIX="off"
|
# $(package)_ldflags=$$(shell PKG_CONFIG_SYSROOT_DIR=/ PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig pkg-config icu-io icu-uc icu-i18n --libs)
|
||||||
$(package)_config_env+=ICU_PREFIX=$(ICU_DIR)
|
# So we substitute poorly (as these may not actually match all scenarios):
|
||||||
$(package)_config_env+=BOOST_ICU_LIBS="-L$(ICU_DIR) -lsicudt -lsicuin -lsicuio -lsicule -lsiculx -lsicutest -lsicutu -lsicuuc"
|
$(package)_ldflags_mingw32=-L$(host_prefix)/lib -lsicuio -lsicuuc -lsicudt
|
||||||
$(package)_build_env+=BOOST_ICU_ICONV="off"
|
$(package)_ldflags_linux=-L$(host_prefix)/lib -licuio -licuuc -licudata -licui18n
|
||||||
$(package)_build_env+=BOOST_ICU_POSIX="off"
|
$(package)_ldflags_darwin=-L$(host_prefix)/lib -licuio -licuuc -licudata -licui18n
|
||||||
$(package)_build_env+=ICU_PREFIX=$(ICU_DIR)
|
|
||||||
$(package)_build_env+=BOOST_ICU_LIBS="-L$(ICU_DIR) -lsicudt -lsicuin -lsicuio -lsicule -lsiculx -lsicutest -lsicutu -lsicuuc"
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
|
@ -39,12 +40,13 @@ define $(package)_preprocess_cmds
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
echo "int main() { return 0; }" > ./libs/locale/build/has_icu_test.cpp && echo "int main() { return 0; }" > ./libs/regex/build/has_icu_test.cpp && echo "ICU INSTALL: $(ICU_DIR)" && echo "BOOST CONFIG LIBRARIES: $(boost_config_libraries)" && ./bootstrap.sh --with-icu=$(ICU_DIR) --with-libraries=$(boost_config_libraries)
|
./bootstrap.sh --with-icu="$(host_prefix)" --with-libraries="$(boost_config_libraries)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
ICU_PATH=$(ICU_DIR) ./b2 link=static cxxflags=-fPIC -d0 -q -j12 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) install
|
./b2 -d2 -j`getconf _NPROCESSORS_ONLN` -d1 --reconfigure --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) stage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
|
./b2 -d0 -j`getconf _NPROCESSORS_ONLN` --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) install
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package=dbus
|
package=dbus
|
||||||
$(package)_version=1.8.6
|
$(package)_version=1.10.18
|
||||||
$(package)_download_path=http://dbus.freedesktop.org/releases/dbus
|
$(package)_download_path=https://dbus.freedesktop.org/releases/dbus
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
||||||
$(package)_sha256_hash=eded83ca007b719f32761e60fd8b9ffd0f5796a4caf455b01b5a5ef740ebd23f
|
$(package)_sha256_hash=6049ddd5f3f3e2618f615f1faeda0a115104423a7996b7aa73e2f36e38cc514a
|
||||||
$(package)_dependencies=expat
|
$(package)_dependencies=expat
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package=expat
|
package=expat
|
||||||
$(package)_version=2.1.0
|
$(package)_version=2.2.5
|
||||||
$(package)_download_path=http://sourceforge.net/projects/expat/files/expat/$($(package)_version)
|
$(package)_download_path=https://github.com/libexpat/libexpat/releases/download/R_2_2_5/
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86
|
$(package)_sha256_hash=d9dc32efba7e74f788fcc4f212a43216fc37cf5f23f4c2339664d473353aedf6
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-static
|
$(package)_config_opts=--disable-static
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package=fontconfig
|
package=fontconfig
|
||||||
$(package)_version=2.11.1
|
$(package)_version=2.12.1
|
||||||
$(package)_download_path=http://www.freedesktop.org/software/fontconfig/release/
|
$(package)_download_path=http://www.freedesktop.org/software/fontconfig/release/
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99
|
$(package)_sha256_hash=b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3
|
||||||
$(package)_dependencies=freetype expat
|
$(package)_dependencies=freetype expat
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
|
@ -13,7 +13,13 @@ define $(package)_config_cmds
|
||||||
$($(package)_autoconf)
|
$($(package)_autoconf)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# 2.12.1 uses CHAR_WIDTH which is reserved and clashes with some glibc versions, but newer versions of fontconfig
|
||||||
|
# have broken makefiles which needlessly attempt to re-generate headers with gperf.
|
||||||
|
# Instead, change all uses of CHAR_WIDTH, and disable the rule that forces header re-generation.
|
||||||
|
# This can be removed once the upstream build is fixed.
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
|
sed -i 's/CHAR_WIDTH/CHARWIDTH/g' fontconfig/fontconfig.h src/fcobjshash.gperf src/fcobjs.h src/fcobjshash.h && \
|
||||||
|
sed -i 's/fcobjshash.h: fcobjshash.gperf/fcobjshash.h:/' src/Makefile && \
|
||||||
$(MAKE)
|
$(MAKE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package=freetype
|
package=freetype
|
||||||
$(package)_version=2.5.3
|
$(package)_version=2.7.1
|
||||||
$(package)_download_path=http://downloads.sourceforge.net/$(package)
|
$(package)_download_path=http://download.savannah.gnu.org/releases/$(package)
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=c0848b29d52ef3ca27ad92e08351f023c5e24ce8cea7d8fe69fc96358e65f75e
|
$(package)_sha256_hash=3a3bb2c4e15ffb433f2032f50a5b5a92558206822e22bfe8cbe339af4aa82f88
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--without-zlib --without-png --disable-static
|
$(package)_config_opts=--without-zlib --without-png --disable-static
|
||||||
|
|
|
@ -1,18 +1,36 @@
|
||||||
package=icu
|
package=icu
|
||||||
$(package)_version=57_1
|
$(package)_version=63_2
|
||||||
$(package)_download_path=http://download.icu-project.org/files/icu4c/57.1
|
$(package)_download_path=https://github.com/unicode-org/icu/releases/download/release-63-2/
|
||||||
$(package)_file_name=$(package)4c-$($(package)_version)-src.tgz
|
$(package)_file_name=$(package)4c-$($(package)_version)-src.tgz
|
||||||
$(package)_sha256_hash=ff8c67cb65949b1e7808f2359f2b80f722697048e90e7cfc382ec1fe229e9581
|
$(package)_sha256_hash=4671e985b5c11252bff3c2374ab84fd73c609f2603bb6eb23b8b154c69ea4215
|
||||||
$(package)_build_subdir=source
|
$(package)_build_subdir=source
|
||||||
|
$(package)_standard_opts=--disable-extras --disable-strict --enable-static --disable-shared --disable-tests --disable-samples --disable-dyload --disable-layoutex
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--enable-debug --disable-release --host=x86_64-w64-mingw32 --with-cross-build=/tmp/icu_staging/icu/source --enable-extras=no --enable-strict=no --enable-static --enable-shared=no --enable-tests=no --enable-samples=no --enable-dyload=no
|
$(package)_config_opts=$($(package)_standard_opts)
|
||||||
|
$(package)_config_opts_debug=--enable-debug --disable-release
|
||||||
$(package)_config_opts_release=--disable-debug --enable-release
|
$(package)_config_opts_release=--disable-debug --enable-release
|
||||||
$(package)_config_opts_mingw32=--host=x86_64-w64-mingw32
|
$(package)_config_opts_mingw32=--with-cross-build="$($(package)_extract_dir)/build"
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_darwin=--with-cross-build="$($(package)_extract_dir)/build" LIBTOOL="$($(package)_libtool)"
|
||||||
|
$(package)_archiver_darwin=$($(package)_libtool)
|
||||||
|
$(package)_cflags_linux=-fPIC
|
||||||
|
$(package)_cppflags_linux=-fPIC
|
||||||
|
$(package)_cxxflags=-std=c++11
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_preprocess_cmds
|
||||||
|
PKG_CONFIG_SYSROOT_DIR=/ \
|
||||||
|
PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig \
|
||||||
|
PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig \
|
||||||
|
mkdir -p build && cd build && \
|
||||||
|
../source/runConfigureICU Linux $($(package)_standard_opts) CXXFLAGS=-std=c++11 && \
|
||||||
|
$(MAKE) && cd ..
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
PKG_CONFIG_SYSROOT_DIR=/ \
|
||||||
|
PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig \
|
||||||
|
PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig \
|
||||||
$($(package)_autoconf)
|
$($(package)_autoconf)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -21,5 +39,5 @@ define $(package)_build_cmds
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
$(MAKE) DESTDIR=/tmp/icu_install install
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
package=libevent
|
package=libevent
|
||||||
$(package)_version=2.0.22
|
$(package)_version=2.1.8-stable
|
||||||
$(package)_download_path=https://github.com/libevent/libevent/releases/download/release-2.0.22-stable
|
$(package)_download_path=https://github.com/libevent/libevent/archive/
|
||||||
$(package)_file_name=$(package)-$($(package)_version)-stable.tar.gz
|
$(package)_file_name=release-$($(package)_version).tar.gz
|
||||||
$(package)_sha256_hash=71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3
|
$(package)_sha256_hash=316ddb401745ac5d222d7c529ef1eada12f58f6376a66c1118eee803cb70f83d
|
||||||
$(package)_patches=reuseaddr.patch
|
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
patch -p1 < $($(package)_patch_dir)/reuseaddr.patch
|
./autogen.sh
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared --disable-openssl --disable-libevent-regress
|
$(package)_config_opts=--disable-shared --disable-openssl --disable-libevent-regress --disable-samples
|
||||||
$(package)_config_opts_release=--disable-debug-mode
|
$(package)_config_opts_release=--disable-debug-mode
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package=miniupnpc
|
package=miniupnpc
|
||||||
$(package)_version=1.9.20160209
|
$(package)_version=2.0.20180203
|
||||||
$(package)_download_path=http://miniupnp.free.fr/files
|
$(package)_download_path=http://miniupnp.free.fr/files
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
||||||
$(package)_sha256_hash=572171eacc1d72537ce47b6f4571260757ab7bcfdaf54c3a55c7f88594d94b6f
|
$(package)_sha256_hash=90dda8c7563ca6cd4a83e23b3c66dbbea89603a1675bfdb852897c2c9cc220b7
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_build_opts=CC="$($(package)_cc)"
|
$(package)_build_opts=CC="$($(package)_cc)"
|
||||||
$(package)_build_opts_darwin=OS=Darwin LIBTOOL="$($(package)_libtool)"
|
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
|
||||||
$(package)_build_opts_mingw32=-f Makefile.mingw
|
$(package)_build_opts_mingw32=-f Makefile.mingw
|
||||||
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
|
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package=native_biplist
|
package=native_biplist
|
||||||
$(package)_version=0.9
|
$(package)_version=1.0.3
|
||||||
$(package)_download_path=https://pypi.python.org/packages/source/b/biplist
|
$(package)_download_path=https://bitbucket.org/wooster/biplist/downloads
|
||||||
$(package)_file_name=biplist-$($(package)_version).tar.gz
|
$(package)_file_name=biplist-$($(package)_version).tar.gz
|
||||||
$(package)_sha256_hash=b57cadfd26e4754efdf89e9e37de87885f9b5c847b2615688ca04adfaf6ca604
|
$(package)_sha256_hash=4c0549764c5fe50b28042ec21aa2e14fe1a2224e239a1dae77d9e7f3932aa4c6
|
||||||
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
|
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
package=native_ccache
|
|
||||||
$(package)_version=3.2.4
|
|
||||||
$(package)_download_path=http://samba.org/ftp/ccache
|
|
||||||
$(package)_file_name=ccache-$($(package)_version).tar.bz2
|
|
||||||
$(package)_sha256_hash=ffeb967edb549e67da0bd5f44f729a2022de9fdde65dfd80d2a7204d7f75332e
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
|
||||||
$(package)_config_opts=
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_config_cmds
|
|
||||||
$($(package)_autoconf)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_build_cmds
|
|
||||||
$(MAKE)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
|
||||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_postprocess_cmds
|
|
||||||
rm -rf lib include
|
|
||||||
endef
|
|
|
@ -1,43 +1,20 @@
|
||||||
package=native_cctools
|
package=native_cctools
|
||||||
$(package)_version=ee31ae567931c426136c94aad457c7b51d844beb
|
$(package)_version=807d6fd1be5d2224872e381870c0a75387fe05e6
|
||||||
$(package)_download_path=https://github.com/theuni/cctools-port/archive
|
$(package)_download_path=https://github.com/theuni/cctools-port/archive
|
||||||
$(package)_file_name=$($(package)_version).tar.gz
|
$(package)_file_name=$($(package)_version).tar.gz
|
||||||
$(package)_sha256_hash=ef107e6ab1b3994cb22e14f4f5c59ea0c0b5a988e6b21d42ed9616b018bbcbf9
|
$(package)_sha256_hash=a09c9ba4684670a0375e42d9d67e7f12c1f62581a27f28f7c825d6d7032ccc6a
|
||||||
$(package)_build_subdir=cctools
|
$(package)_build_subdir=cctools
|
||||||
$(package)_clang_version=3.3
|
|
||||||
$(package)_clang_download_path=http://llvm.org/releases/$($(package)_clang_version)
|
|
||||||
$(package)_clang_download_file=clang+llvm-$($(package)_clang_version)-amd64-Ubuntu-12.04.2.tar.gz
|
|
||||||
$(package)_clang_file_name=clang-llvm-$($(package)_clang_version)-amd64-Ubuntu-12.04.2.tar.gz
|
|
||||||
$(package)_clang_sha256_hash=60d8f69f032d62ef61bf527857ebb933741ec3352d4d328c5516aa520662dab7
|
|
||||||
$(package)_extra_sources=$($(package)_clang_file_name)
|
|
||||||
|
|
||||||
define $(package)_fetch_cmds
|
|
||||||
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_download_file),$($(package)_file_name),$($(package)_sha256_hash)) && \
|
|
||||||
$(call fetch_file,$(package),$($(package)_clang_download_path),$($(package)_clang_download_file),$($(package)_clang_file_name),$($(package)_clang_sha256_hash))
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_extract_cmds
|
|
||||||
mkdir -p $($(package)_extract_dir) && \
|
|
||||||
echo "$($(package)_sha256_hash) $($(package)_source)" > $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
||||||
echo "$($(package)_clang_sha256_hash) $($(package)_source_dir)/$($(package)_clang_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
||||||
$(build_SHA256SUM) -c $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
||||||
mkdir -p toolchain/bin toolchain/lib/clang/3.5/include && \
|
|
||||||
tar --strip-components=1 -C toolchain -xf $($(package)_source_dir)/$($(package)_clang_file_name) && \
|
|
||||||
echo "#!/bin/sh" > toolchain/bin/$(host)-dsymutil && \
|
|
||||||
echo "exit 0" >> toolchain/bin/$(host)-dsymutil && \
|
|
||||||
chmod +x toolchain/bin/$(host)-dsymutil && \
|
|
||||||
tar --strip-components=1 -xf $($(package)_source)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--target=$(host) --disable-libuuid
|
$(package)_config_opts=--target=$(host) --disable-lto-support --prefix=/
|
||||||
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
|
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
|
||||||
$(package)_cc=$($(package)_extract_dir)/toolchain/bin/clang
|
$(package)_cc=cc
|
||||||
$(package)_cxx=$($(package)_extract_dir)/toolchain/bin/clang++
|
$(package)_cxx=c++
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
cd $($(package)_build_subdir); ./autogen.sh
|
cd $($(package)_build_subdir); ./autogen.sh && \
|
||||||
|
sed -i.old "/define HAVE_PTHREADS/d" ld64/src/ld/InputFiles.h
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
@ -49,14 +26,6 @@ define $(package)_build_cmds
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install && \
|
mkdir -p $($(package)_staging_prefix_dir) && \
|
||||||
cd $($(package)_extract_dir)/toolchain && \
|
$(MAKE) DESTDIR=$($(package)_staging_prefix_dir) install
|
||||||
mkdir -p $($(package)_staging_prefix_dir)/lib/clang/$($(package)_clang_version)/include && \
|
|
||||||
mkdir -p $($(package)_staging_prefix_dir)/bin $($(package)_staging_prefix_dir)/include && \
|
|
||||||
cp -P bin/clang bin/clang++ $($(package)_staging_prefix_dir)/bin/ &&\
|
|
||||||
cp lib/libLTO.so $($(package)_staging_prefix_dir)/lib/ && \
|
|
||||||
cp -rf lib/clang/$($(package)_clang_version)/include/* $($(package)_staging_prefix_dir)/lib/clang/$($(package)_clang_version)/include/ && \
|
|
||||||
cp bin/$(host)-dsymutil $($(package)_staging_prefix_dir)/bin && \
|
|
||||||
if `test -d include/c++/`; then cp -rf include/c++/ $($(package)_staging_prefix_dir)/include/; fi && \
|
|
||||||
if `test -d lib/c++/`; then cp -rf lib/c++/ $($(package)_staging_prefix_dir)/lib/; fi
|
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
package=native_comparisontool
|
|
||||||
$(package)_version=8c6666f
|
|
||||||
$(package)_download_path=https://github.com/theuni/bitcoind-comparisontool/raw/master
|
|
||||||
$(package)_file_name=pull-tests-$($(package)_version).jar
|
|
||||||
$(package)_sha256_hash=a865332b3827abcde684ab79f5f43c083b0b6a4c97ff5508c79f29fee24f11cd
|
|
||||||
$(package)_install_dirname=BitcoindComparisonTool_jar
|
|
||||||
$(package)_install_filename=BitcoindComparisonTool.jar
|
|
||||||
|
|
||||||
define $(package)_extract_cmds
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_configure_cmds
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_build_cmds
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
|
||||||
mkdir -p $($(package)_staging_prefix_dir)/share/$($(package)_install_dirname) && \
|
|
||||||
cp $($(package)_source) $($(package)_staging_prefix_dir)/share/$($(package)_install_dirname)/$($(package)_install_filename)
|
|
||||||
endef
|
|
|
@ -1,9 +1,8 @@
|
||||||
package=native_ds_store
|
package=native_ds_store
|
||||||
$(package)_version=c80c23706eae
|
$(package)_version=1.1.2
|
||||||
$(package)_download_path=https://bitbucket.org/al45tair/ds_store/get
|
$(package)_download_path=https://github.com/al45tair/ds_store/archive/
|
||||||
$(package)_download_file=$($(package)_version).tar.bz2
|
$(package)_file_name=v$($(package)_version).tar.gz
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
$(package)_sha256_hash=3b3ecb7bf0a5157f5b6010bc3af7c141fb0ad3527084e63336220d22744bc20c
|
||||||
$(package)_sha256_hash=ce1aa412211610c63d567bbe3e06213006a2d5ba5d76d89399c151b5472cb0da
|
|
||||||
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
|
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
|
||||||
$(package)_dependencies=native_biplist
|
$(package)_dependencies=native_biplist
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
package=native_mac_alias
|
package=native_mac_alias
|
||||||
$(package)_version=1.1.0
|
$(package)_version=2.0.7
|
||||||
$(package)_download_path=https://bitbucket.org/al45tair/mac_alias/get
|
$(package)_download_path=https://github.com/al45tair/mac_alias/archive/
|
||||||
$(package)_download_file=v$($(package)_version).tar.bz2
|
$(package)_file_name=v$($(package)_version).tar.gz
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
$(package)_sha256_hash=6f606d3b6bccd2112aeabf1a063f5b5ece87005a5d7e97c8faca23b916e88838
|
||||||
$(package)_sha256_hash=87ad827e66790028361e43fc754f68ed041a9bdb214cca03c853f079b04fb120
|
|
||||||
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
|
$(package)_install_libdir=$(build_prefix)/lib/python/dist-packages
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
|
|
|
@ -6,18 +6,54 @@ $(package)_sha256_hash=8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fce
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
|
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
|
||||||
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl no-zlib no-shared no-dso
|
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
|
||||||
$(package)_config_opts+=no-krb5 no-camellia no-capieng no-cast no-cms no-dtls1 no-gost no-gmp no-heartbeats no-idea no-jpake no-md2
|
$(package)_config_opts+=no-camellia
|
||||||
$(package)_config_opts+=no-mdc2 no-rc5 no-rdrand no-rfc3779 no-rsax no-sctp no-seed no-sha0 no-static_engine no-whirlpool no-rc2 no-rc4 no-ssl2 no-ssl3
|
$(package)_config_opts+=no-capieng
|
||||||
|
$(package)_config_opts+=no-cast
|
||||||
|
$(package)_config_opts+=no-comp
|
||||||
|
$(package)_config_opts+=no-dso
|
||||||
|
$(package)_config_opts+=no-dtls1
|
||||||
|
$(package)_config_opts+=no-ec_nistp_64_gcc_128
|
||||||
|
$(package)_config_opts+=no-gost
|
||||||
|
$(package)_config_opts+=no-gmp
|
||||||
|
$(package)_config_opts+=no-heartbeats
|
||||||
|
$(package)_config_opts+=no-idea
|
||||||
|
$(package)_config_opts+=no-jpake
|
||||||
|
$(package)_config_opts+=no-krb5
|
||||||
|
$(package)_config_opts+=no-libunbound
|
||||||
|
$(package)_config_opts+=no-md2
|
||||||
|
$(package)_config_opts+=no-mdc2
|
||||||
|
$(package)_config_opts+=no-rc4
|
||||||
|
$(package)_config_opts+=no-rc5
|
||||||
|
$(package)_config_opts+=no-rdrand
|
||||||
|
$(package)_config_opts+=no-rfc3779
|
||||||
|
$(package)_config_opts+=no-rsax
|
||||||
|
$(package)_config_opts+=no-sctp
|
||||||
|
$(package)_config_opts+=no-seed
|
||||||
|
$(package)_config_opts+=no-sha0
|
||||||
|
$(package)_config_opts+=no-shared
|
||||||
|
$(package)_config_opts+=no-ssl-trace
|
||||||
|
$(package)_config_opts+=no-ssl2
|
||||||
|
$(package)_config_opts+=no-ssl3
|
||||||
|
$(package)_config_opts+=no-static_engine
|
||||||
|
$(package)_config_opts+=no-store
|
||||||
|
$(package)_config_opts+=no-unit-test
|
||||||
|
$(package)_config_opts+=no-weak-ssl-ciphers
|
||||||
|
$(package)_config_opts+=no-whirlpool
|
||||||
|
$(package)_config_opts+=no-zlib
|
||||||
|
$(package)_config_opts+=no-zlib-dynamic
|
||||||
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
|
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
|
||||||
$(package)_config_opts_linux=-fPIC -Wa,--noexecstack
|
$(package)_config_opts_linux=-fPIC -Wa,--noexecstack
|
||||||
$(package)_config_opts_x86_64_linux=linux-x86_64
|
$(package)_config_opts_x86_64_linux=linux-x86_64
|
||||||
$(package)_config_opts_i686_linux=linux-generic32
|
$(package)_config_opts_i686_linux=linux-generic32
|
||||||
$(package)_config_opts_arm_linux=linux-generic32
|
$(package)_config_opts_arm_linux=linux-generic32
|
||||||
|
$(package)_config_opts_armv7l_linux=linux-generic32
|
||||||
$(package)_config_opts_aarch64_linux=linux-generic64
|
$(package)_config_opts_aarch64_linux=linux-generic64
|
||||||
$(package)_config_opts_mipsel_linux=linux-generic32
|
$(package)_config_opts_mipsel_linux=linux-generic32
|
||||||
$(package)_config_opts_mips_linux=linux-generic32
|
$(package)_config_opts_mips_linux=linux-generic32
|
||||||
$(package)_config_opts_powerpc_linux=linux-generic32
|
$(package)_config_opts_powerpc_linux=linux-generic32
|
||||||
|
$(package)_config_opts_riscv32_linux=linux-generic32
|
||||||
|
$(package)_config_opts_riscv64_linux=linux-generic64
|
||||||
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
|
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
|
||||||
$(package)_config_opts_x86_64_mingw32=mingw64
|
$(package)_config_opts_x86_64_mingw32=mingw64
|
||||||
$(package)_config_opts_i686_mingw32=mingw
|
$(package)_config_opts_i686_mingw32=mingw
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
packages:=icu
|
|
|
@ -1,12 +1,10 @@
|
||||||
packages:=boost openssl libevent
|
packages:=icu boost openssl libevent zeromq
|
||||||
darwin_packages:=zeromq
|
|
||||||
linux_packages:=zeromq
|
|
||||||
native_packages := native_ccache native_comparisontool
|
|
||||||
|
|
||||||
qt_native_packages = native_protobuf
|
qt_native_packages = native_protobuf
|
||||||
qt_packages = qrencode protobuf
|
qt_packages = qrencode protobuf zlib
|
||||||
|
|
||||||
|
qt_linux_packages:=qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans
|
||||||
|
|
||||||
qt_linux_packages= qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans
|
|
||||||
qt_darwin_packages=qt
|
qt_darwin_packages=qt
|
||||||
qt_mingw32_packages=qt
|
qt_mingw32_packages=qt
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ $(package)_download_path=$(native_$(package)_download_path)
|
||||||
$(package)_file_name=$(native_$(package)_file_name)
|
$(package)_file_name=$(native_$(package)_file_name)
|
||||||
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
|
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
|
||||||
$(package)_dependencies=native_$(package)
|
$(package)_dependencies=native_$(package)
|
||||||
|
$(package)_cxxflags=-std=c++11
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc
|
$(package)_config_opts=--disable-shared --with-protoc=$(build_prefix)/bin/protoc
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package=qrencode
|
package=qrencode
|
||||||
$(package)_version=3.4.4
|
$(package)_version=3.4.4
|
||||||
$(package)_download_path=https://fukuchi.org/works/qrencode/
|
$(package)_download_path=https://fukuchi.org/works/qrencode/
|
||||||
$(package)_file_name=qrencode-$(qrencode_version).tar.bz2
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=efe5188b1ddbcbf98763b819b146be6a90481aac30cfc8d858ab78a19cde1fa5
|
$(package)_sha256_hash=efe5188b1ddbcbf98763b819b146be6a90481aac30cfc8d858ab78a19cde1fa5
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
|
|
|
@ -1,42 +1,47 @@
|
||||||
PACKAGE=qt
|
PACKAGE=qt
|
||||||
$(package)_version=5.5.0
|
$(package)_version=5.9.6
|
||||||
$(package)_download_path=http://download.qt.io/official_releases/qt/5.5/$($(package)_version)/submodules
|
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules
|
||||||
$(package)_suffix=opensource-src-$($(package)_version).tar.gz
|
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
|
||||||
$(package)_file_name=qtbase-$($(package)_suffix)
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
||||||
$(package)_sha256_hash=7e82b1318f88e56a2a9376e069aa608d4fd96b48cb0e1b880ae658b0a1af0561
|
$(package)_sha256_hash=eed620cb268b199bd83b3fc6a471c51d51e1dc2dbb5374fc97a0cc75facbe36f
|
||||||
$(package)_dependencies=openssl
|
$(package)_dependencies=openssl zlib
|
||||||
$(package)_linux_dependencies=freetype fontconfig dbus libxcb libX11 xproto libXext
|
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext
|
||||||
$(package)_build_subdir=qtbase
|
$(package)_build_subdir=qtbase
|
||||||
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
||||||
$(package)_patches=mac-qmake.conf fix-xcb-include-order.patch mingw-uuidof.patch pidlist_absolute.patch
|
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch fix_rcc_determinism.patch xkb-default.patch
|
||||||
|
|
||||||
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
||||||
$(package)_qttranslations_sha256_hash=c4bd6db6e426965c6f8824c54e81f68bbd61e2bae1bcadc328c6e81c45902a0d
|
$(package)_qttranslations_sha256_hash=9822084f8e2d2939ba39f4af4c0c2320e45d5996762a9423f833055607604ed8
|
||||||
|
|
||||||
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
||||||
$(package)_qttools_sha256_hash=d9e06bd19ecc86afba5e95d45a906d1bc1ad579aa70001e36143c1aaf695bdd6
|
$(package)_qttools_sha256_hash=50e75417ec0c74bb8b1989d1d8e981ee83690dce7dfc0c2169f7c00f397e5117
|
||||||
|
|
||||||
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
||||||
$(package)_extra_sources += $($(package)_qttools_file_name)
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts_release = -release
|
$(package)_config_opts_release = -release
|
||||||
$(package)_config_opts_debug = -debug
|
$(package)_config_opts_debug = -debug
|
||||||
$(package)_config_opts += -opensource -confirm-license
|
$(package)_config_opts += -bindir $(build_prefix)/bin
|
||||||
$(package)_config_opts += -no-audio-backend
|
$(package)_config_opts += -c++std c++11
|
||||||
|
$(package)_config_opts += -confirm-license
|
||||||
|
$(package)_config_opts += -dbus-runtime
|
||||||
|
$(package)_config_opts += -hostprefix $(build_prefix)
|
||||||
|
$(package)_config_opts += -no-cups
|
||||||
|
$(package)_config_opts += -no-egl
|
||||||
|
$(package)_config_opts += -no-eglfs
|
||||||
|
$(package)_config_opts += -no-freetype
|
||||||
|
$(package)_config_opts += -no-gif
|
||||||
$(package)_config_opts += -no-glib
|
$(package)_config_opts += -no-glib
|
||||||
$(package)_config_opts += -no-icu
|
$(package)_config_opts += -no-icu
|
||||||
$(package)_config_opts += -no-cups
|
|
||||||
$(package)_config_opts += -no-iconv
|
$(package)_config_opts += -no-iconv
|
||||||
$(package)_config_opts += -no-gif
|
$(package)_config_opts += -no-kms
|
||||||
$(package)_config_opts += -no-freetype
|
$(package)_config_opts += -no-linuxfb
|
||||||
$(package)_config_opts += -no-nis
|
$(package)_config_opts += -no-libudev
|
||||||
$(package)_config_opts += -no-pch
|
$(package)_config_opts += -no-mtdev
|
||||||
|
$(package)_config_opts += -no-openvg
|
||||||
|
$(package)_config_opts += -no-reduce-relocations
|
||||||
$(package)_config_opts += -no-qml-debug
|
$(package)_config_opts += -no-qml-debug
|
||||||
$(package)_config_opts += -nomake examples
|
|
||||||
$(package)_config_opts += -nomake tests
|
|
||||||
$(package)_config_opts += -no-feature-style-windowsmobile
|
|
||||||
$(package)_config_opts += -no-feature-style-windowsce
|
|
||||||
$(package)_config_opts += -no-sql-db2
|
$(package)_config_opts += -no-sql-db2
|
||||||
$(package)_config_opts += -no-sql-ibase
|
$(package)_config_opts += -no-sql-ibase
|
||||||
$(package)_config_opts += -no-sql-oci
|
$(package)_config_opts += -no-sql-oci
|
||||||
|
@ -46,36 +51,27 @@ $(package)_config_opts += -no-sql-odbc
|
||||||
$(package)_config_opts += -no-sql-psql
|
$(package)_config_opts += -no-sql-psql
|
||||||
$(package)_config_opts += -no-sql-sqlite
|
$(package)_config_opts += -no-sql-sqlite
|
||||||
$(package)_config_opts += -no-sql-sqlite2
|
$(package)_config_opts += -no-sql-sqlite2
|
||||||
$(package)_config_opts += -prefix $(host_prefix)
|
$(package)_config_opts += -no-use-gold-linker
|
||||||
$(package)_config_opts += -hostprefix $(build_prefix)
|
$(package)_config_opts += -no-xinput2
|
||||||
$(package)_config_opts += -bindir $(build_prefix)/bin
|
$(package)_config_opts += -nomake examples
|
||||||
$(package)_config_opts += -no-c++11
|
$(package)_config_opts += -nomake tests
|
||||||
|
$(package)_config_opts += -opensource
|
||||||
$(package)_config_opts += -openssl-linked
|
$(package)_config_opts += -openssl-linked
|
||||||
$(package)_config_opts += -v
|
$(package)_config_opts += -optimized-qmake
|
||||||
$(package)_config_opts += -static
|
$(package)_config_opts += -pch
|
||||||
$(package)_config_opts += -silent
|
|
||||||
$(package)_config_opts += -pkg-config
|
$(package)_config_opts += -pkg-config
|
||||||
|
$(package)_config_opts += -prefix $(host_prefix)
|
||||||
$(package)_config_opts += -qt-libpng
|
$(package)_config_opts += -qt-libpng
|
||||||
$(package)_config_opts += -qt-libjpeg
|
$(package)_config_opts += -qt-libjpeg
|
||||||
$(package)_config_opts += -qt-zlib
|
|
||||||
$(package)_config_opts += -qt-pcre
|
$(package)_config_opts += -qt-pcre
|
||||||
$(package)_config_opts += -no-pulseaudio
|
$(package)_config_opts += -system-zlib
|
||||||
$(package)_config_opts += -no-openvg
|
$(package)_config_opts += -static
|
||||||
$(package)_config_opts += -no-xrender
|
$(package)_config_opts += -silent
|
||||||
$(package)_config_opts += -no-alsa
|
$(package)_config_opts += -v
|
||||||
$(package)_config_opts += -no-mtdev
|
$(package)_config_opts += -no-feature-printer
|
||||||
$(package)_config_opts += -no-gstreamer
|
$(package)_config_opts += -no-feature-printdialog
|
||||||
$(package)_config_opts += -no-mitshm
|
$(package)_config_opts += -no-feature-concurrent
|
||||||
$(package)_config_opts += -no-kms
|
$(package)_config_opts += -no-feature-xml
|
||||||
$(package)_config_opts += -no-reduce-relocations
|
|
||||||
$(package)_config_opts += -no-egl
|
|
||||||
$(package)_config_opts += -no-eglfs
|
|
||||||
$(package)_config_opts += -no-linuxfb
|
|
||||||
$(package)_config_opts += -no-xinput2
|
|
||||||
$(package)_config_opts += -no-libudev
|
|
||||||
$(package)_config_opts += -no-use-gold-linker
|
|
||||||
$(package)_config_opts += -reduce-exports
|
|
||||||
$(package)_config_opts += -optimized-qmake
|
|
||||||
|
|
||||||
ifneq ($(build_os),darwin)
|
ifneq ($(build_os),darwin)
|
||||||
$(package)_config_opts_darwin = -xplatform macx-clang-linux
|
$(package)_config_opts_darwin = -xplatform macx-clang-linux
|
||||||
|
@ -87,16 +83,19 @@ $(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
|
||||||
$(package)_config_opts_darwin += -device-option MAC_LD64_VERSION=$(LD64_VERSION)
|
$(package)_config_opts_darwin += -device-option MAC_LD64_VERSION=$(LD64_VERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(package)_config_opts_linux = -qt-xkbcommon
|
$(package)_config_opts_linux = -qt-xkbcommon-x11
|
||||||
$(package)_config_opts_linux += -qt-xcb
|
$(package)_config_opts_linux += -qt-xcb
|
||||||
$(package)_config_opts_linux += -system-freetype
|
$(package)_config_opts_linux += -system-freetype
|
||||||
$(package)_config_opts_linux += -no-sm
|
$(package)_config_opts_linux += -no-feature-sessionmanager
|
||||||
$(package)_config_opts_linux += -fontconfig
|
$(package)_config_opts_linux += -fontconfig
|
||||||
$(package)_config_opts_linux += -no-opengl
|
$(package)_config_opts_linux += -no-opengl
|
||||||
$(package)_config_opts_arm_linux = -platform linux-g++ -xplatform $(host)
|
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
|
||||||
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
||||||
|
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
|
||||||
|
$(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++
|
||||||
$(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-"
|
$(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-"
|
||||||
$(package)_build_env = QT_RCC_TEST=1
|
$(package)_build_env = QT_RCC_TEST=1
|
||||||
|
$(package)_build_env += QT_RCC_SOURCE_DATE_OVERRIDE=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_fetch_cmds
|
define $(package)_fetch_cmds
|
||||||
|
@ -120,24 +119,33 @@ define $(package)_extract_cmds
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
|
sed -i.old "s|FT_Get_Font_Format|FT_Get_X11_Font_Format|" qtbase/src/platformsupport/fontdatabases/freetype/qfontengine_ft.cpp && \
|
||||||
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
||||||
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
|
sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
|
||||||
|
sed -i.old "s/src_plugins.depends = src_sql src_network/src_plugins.depends = src_network/" qtbase/src/src.pro && \
|
||||||
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
|
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
|
||||||
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
|
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
|
||||||
|
sed -i.old 's/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0)/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft)/' qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm && \
|
||||||
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
|
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
|
||||||
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
||||||
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \
|
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
|
||||||
patch -p1 < $($(package)_patch_dir)/mingw-uuidof.patch && \
|
sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
patch -p1 < $($(package)_patch_dir)/pidlist_absolute.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch &&\
|
||||||
echo "QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
patch -p1 -i $($(package)_patch_dir)/fix_configure_mac.patch &&\
|
||||||
echo "QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch &&\
|
||||||
echo "QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
patch -p1 -i $($(package)_patch_dir)/fix_rcc_determinism.patch &&\
|
||||||
sed -i.old "s|QMAKE_CFLAGS = |QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
patch -p1 -i $($(package)_patch_dir)/xkb-default.patch &&\
|
||||||
sed -i.old "s|QMAKE_LFLAGS = |QMAKE_LFLAGS = $($(package)_ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
sed -i.old "s|QMAKE_CXXFLAGS = |QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
|
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
|
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
|
echo "QMAKE_LINK_OBJECT_MAX = 10" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
|
||||||
|
echo "QMAKE_LINK_OBJECT_SCRIPT = object_script" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
|
||||||
|
sed -i.old "s|QMAKE_CFLAGS = |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package)_ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|QMAKE_CXXFLAGS = |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
@ -145,21 +153,26 @@ define $(package)_config_cmds
|
||||||
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
|
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
|
||||||
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
|
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
|
||||||
./configure $($(package)_config_opts) && \
|
./configure $($(package)_config_opts) && \
|
||||||
|
echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
|
||||||
|
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
|
||||||
$(MAKE) sub-src-clean && \
|
$(MAKE) sub-src-clean && \
|
||||||
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
|
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
|
||||||
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. &&\
|
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
|
||||||
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile
|
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
|
||||||
|
cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
|
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
|
||||||
$(MAKE) -C ../qttools/src/linguist/lrelease && \
|
$(MAKE) -C ../qttools/src/linguist/lrelease && \
|
||||||
|
$(MAKE) -C ../qttools/src/linguist/lupdate && \
|
||||||
$(MAKE) -C ../qttranslations
|
$(MAKE) -C ../qttranslations
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. &&\
|
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. && \
|
||||||
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
||||||
|
$(MAKE) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
||||||
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
|
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
|
||||||
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
|
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
|
||||||
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \
|
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \
|
||||||
|
|
|
@ -1,66 +0,0 @@
|
||||||
PACKAGE=qt46
|
|
||||||
$(package)_version=4.6.4
|
|
||||||
$(package)_download_path=http://download.qt-project.org/archive/qt/4.6/
|
|
||||||
$(package)_file_name=qt-everywhere-opensource-src-$($(package)_version).tar.gz
|
|
||||||
$(package)_sha256_hash=9ad4d46c721b53a429ed5a2eecfd3c239a9ab566562f183f99d3125f1a234250
|
|
||||||
$(package)_dependencies=openssl freetype dbus libX11 xproto libXext libICE libSM
|
|
||||||
$(package)_patches=stlfix.patch
|
|
||||||
|
|
||||||
define $(package)_set_vars
|
|
||||||
$(package)_config_opts = -prefix $(host_prefix) -headerdir $(host_prefix)/include/qt4 -bindir $(build_prefix)/bin
|
|
||||||
$(package)_config_opts += -release -no-separate-debug-info -opensource -confirm-license
|
|
||||||
$(package)_config_opts += -stl -qt-zlib
|
|
||||||
|
|
||||||
$(package)_config_opts += -nomake examples -nomake tests -nomake tools -nomake translations -nomake demos -nomake docs
|
|
||||||
$(package)_config_opts += -no-audio-backend -no-glib -no-nis -no-cups -no-iconv -no-gif -no-pch
|
|
||||||
$(package)_config_opts += -no-xkb -no-xrender -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xsync -no-xinput -no-mitshm -no-xshape
|
|
||||||
$(package)_config_opts += -no-libtiff -no-fontconfig -openssl-linked
|
|
||||||
$(package)_config_opts += -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-mysql
|
|
||||||
$(package)_config_opts += -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2
|
|
||||||
$(package)_config_opts += -no-xmlpatterns -no-multimedia -no-phonon -no-scripttools -no-declarative
|
|
||||||
$(package)_config_opts += -no-phonon-backend -no-webkit -no-javascript-jit -no-script
|
|
||||||
$(package)_config_opts += -no-svg -no-libjpeg -no-libtiff -no-libpng -no-libmng -no-qt3support -no-opengl
|
|
||||||
|
|
||||||
$(package)_config_opts_x86_64_linux += -platform linux-g++-64
|
|
||||||
$(package)_config_opts_i686_linux = -platform linux-g++-32
|
|
||||||
$(package)_build_env = QT_RCC_TEST=1
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
|
||||||
sed -i.old "s|/include /usr/include||" config.tests/unix/freetype/freetype.pri && \
|
|
||||||
sed -i.old "s|src_plugins.depends = src_gui src_sql src_svg|src_plugins.depends = src_gui src_sql|" src/src.pro && \
|
|
||||||
sed -i.old "s|\.lower(|\.toLower(|g" src/network/ssl/qsslsocket_openssl.cpp && \
|
|
||||||
sed -i.old "s|Key_BackSpace|Key_Backspace|" src/gui/itemviews/qabstractitemview.cpp && \
|
|
||||||
sed -i.old "s|/usr/X11R6/lib64|$(host_prefix)/lib|" mkspecs/*/*.conf && \
|
|
||||||
sed -i.old "s|/usr/X11R6/lib|$(host_prefix)/lib|" mkspecs/*/*.conf && \
|
|
||||||
sed -i.old "s|/usr/X11R6/include|$(host_prefix)/include|" mkspecs/*/*.conf && \
|
|
||||||
sed -i.old "s|QMAKE_LFLAGS_SHLIB\t+= -shared|QMAKE_LFLAGS_SHLIB\t+= -shared -Wl,--exclude-libs,ALL|" mkspecs/common/g++.conf && \
|
|
||||||
sed -i.old "/SSLv2_client_method/d" src/network/ssl/qsslsocket_openssl.cpp src/network/ssl/qsslsocket_openssl_symbols.cpp && \
|
|
||||||
sed -i.old "/SSLv2_server_method/d" src/network/ssl/qsslsocket_openssl.cpp src/network/ssl/qsslsocket_openssl_symbols.cpp && \
|
|
||||||
patch -p1 < $($(package)_patch_dir)/stlfix.patch
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_config_cmds
|
|
||||||
export PKG_CONFIG_SYSROOT_DIR=/ && \
|
|
||||||
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
|
|
||||||
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
|
|
||||||
export CPATH=$(host_prefix)/include && \
|
|
||||||
OPENSSL_LIBS='-L$(host_prefix)/lib -lssl -lcrypto' ./configure $($(package)_config_opts) && \
|
|
||||||
cd tools/linguist/lrelease; ../../../bin/qmake -o Makefile lrelease.pro
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_build_cmds
|
|
||||||
export CPATH=$(host_prefix)/include && \
|
|
||||||
$(MAKE) -C src && \
|
|
||||||
$(MAKE) -C tools/linguist/lrelease
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
|
||||||
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) install && \
|
|
||||||
$(MAKE) -C tools/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_postprocess_cmds
|
|
||||||
rm -rf mkspecs/ lib/cmake/ lib/*.prl lib/*.la && \
|
|
||||||
find native/bin -type f -exec mv {} {}-qt4 \;
|
|
||||||
endef
|
|
|
@ -4,6 +4,10 @@ $(package)_download_path=http://xorg.freedesktop.org/releases/individual/proto
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=f3f4b23ac8db9c3a9e0d8edb591713f3d70ef9c3b175970dd8823dfc92aa5bb0
|
$(package)_sha256_hash=f3f4b23ac8db9c3a9e0d8edb591713f3d70ef9c3b175970dd8823dfc92aa5bb0
|
||||||
|
|
||||||
|
define $(package)_preprocess_cmds
|
||||||
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub .
|
||||||
|
endef
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared
|
$(package)_config_opts=--disable-shared
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -1,12 +1,20 @@
|
||||||
package=zeromq
|
package=zeromq
|
||||||
$(package)_version=4.0.7
|
$(package)_version=4.3.1
|
||||||
$(package)_download_path=http://download.zeromq.org
|
$(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
|
||||||
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
||||||
$(package)_sha256_hash=e00b2967e074990d0538361cc79084a0a92892df2c6e7585da34e4c61ee47b03
|
$(package)_sha256_hash=bcbabe1e2c7d0eec4ed612e10b94b112dd5f06fcefa994a0c79a45d835cd21eb
|
||||||
|
$(package)_patches=0001-fix-build-with-older-mingw64.patch 0002-disable-pthread_set_name_np.patch
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--without-documentation --disable-shared
|
$(package)_config_opts=--without-docs --disable-shared --without-libsodium --disable-curve --disable-curve-keygen --disable-perf --disable-Werror
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
|
$(package)_cxxflags=-std=c++11
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_preprocess_cmds
|
||||||
|
patch -p1 < $($(package)_patch_dir)/0001-fix-build-with-older-mingw64.patch && \
|
||||||
|
patch -p1 < $($(package)_patch_dir)/0002-disable-pthread_set_name_np.patch && \
|
||||||
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub config
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
@ -14,13 +22,14 @@ define $(package)_config_cmds
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
$(MAKE) -C src
|
$(MAKE) src/libzmq.la
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
$(MAKE) -C src DESTDIR=$($(package)_staging_dir) install
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install-libLTLIBRARIES install-includeHEADERS install-pkgconfigDATA
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_postprocess_cmds
|
define $(package)_postprocess_cmds
|
||||||
|
sed -i.old "s/ -lstdc++//" lib/pkgconfig/libzmq.pc && \
|
||||||
rm -rf bin share
|
rm -rf bin share
|
||||||
endef
|
endef
|
||||||
|
|
27
depends/packages/zlib.mk
Normal file
27
depends/packages/zlib.mk
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
package=zlib
|
||||||
|
$(package)_version=1.2.11
|
||||||
|
$(package)_download_path=http://www.zlib.net
|
||||||
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
||||||
|
$(package)_sha256_hash=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
|
||||||
|
|
||||||
|
define $(package)_set_vars
|
||||||
|
$(package)_build_opts= CC="$($(package)_cc)"
|
||||||
|
$(package)_build_opts+=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -fPIC"
|
||||||
|
$(package)_build_opts+=RANLIB="$($(package)_ranlib)"
|
||||||
|
$(package)_build_opts+=AR="$($(package)_ar)"
|
||||||
|
$(package)_build_opts_darwin+=AR="$($(package)_libtool)"
|
||||||
|
$(package)_build_opts_darwin+=ARFLAGS="-o"
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_config_cmds
|
||||||
|
./configure --static --prefix=$(host_prefix)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_build_cmds
|
||||||
|
$(MAKE) $($(package)_build_opts) libz.a
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_stage_cmds
|
||||||
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install $($(package)_build_opts)
|
||||||
|
endef
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
--- old/evutil.c 2015-08-28 19:26:23.488765923 -0400
|
|
||||||
+++ new/evutil.c 2015-08-28 19:27:41.392767019 -0400
|
|
||||||
@@ -321,15 +321,16 @@
|
|
||||||
int
|
|
||||||
evutil_make_listen_socket_reuseable(evutil_socket_t sock)
|
|
||||||
{
|
|
||||||
-#ifndef WIN32
|
|
||||||
int one = 1;
|
|
||||||
+#ifndef WIN32
|
|
||||||
/* REUSEADDR on Unix means, "don't hang on to this address after the
|
|
||||||
* listener is closed." On Windows, though, it means "don't keep other
|
|
||||||
* processes from binding to this address while we're using it. */
|
|
||||||
return setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &one,
|
|
||||||
(ev_socklen_t)sizeof(one));
|
|
||||||
#else
|
|
||||||
- return 0;
|
|
||||||
+ return setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (const char*) &one,
|
|
||||||
+ (ev_socklen_t)sizeof(one));
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
--- old/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 02:06:42.705930685 +0000
|
|
||||||
+++ new/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 02:08:41.281926351 +0000
|
|
||||||
@@ -94,8 +94,6 @@
|
|
||||||
|
|
||||||
DEFINES += $$QMAKE_DEFINES_XCB
|
|
||||||
LIBS += $$QMAKE_LIBS_XCB
|
|
||||||
-QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
-QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
|
|
||||||
CONFIG += qpa/genericunixfontdatabase
|
|
||||||
|
|
||||||
@@ -104,7 +102,8 @@
|
|
||||||
contains(QT_CONFIG, xcb-qt) {
|
|
||||||
DEFINES += XCB_USE_RENDER
|
|
||||||
XCB_DIR = ../../../3rdparty/xcb
|
|
||||||
- INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/sysinclude
|
|
||||||
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
LIBS += -lxcb -L$$OUT_PWD/xcb-static -lxcb-static
|
|
||||||
} else {
|
|
||||||
LIBS += -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms
|
|
||||||
--- old/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 2015-03-17 02:07:04.641929383 +0000
|
|
||||||
+++ new/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 2015-03-17 02:10:15.485922059 +0000
|
|
||||||
@@ -8,7 +8,8 @@
|
|
||||||
|
|
||||||
XCB_DIR = ../../../../3rdparty/xcb
|
|
||||||
|
|
||||||
-INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/include/xcb $$XCB_DIR/sysinclude
|
|
||||||
+QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude
|
|
||||||
+QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude
|
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
--- old/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro 2015-07-24 16:02:59.530038830 -0400
|
|
||||||
+++ new/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro 2015-07-24 16:01:22.106037459 -0400
|
|
||||||
@@ -11,3 +11,9 @@
|
|
||||||
qxcbmain.cpp
|
|
||||||
OTHER_FILES += xcb.json README
|
|
||||||
|
|
||||||
+contains(QT_CONFIG, xcb-qt) {
|
|
||||||
+ DEFINES += XCB_USE_RENDER
|
|
||||||
+ XCB_DIR = ../../../3rdparty/xcb
|
|
||||||
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
+}
|
|
50
depends/patches/qt/fix_configure_mac.patch
Normal file
50
depends/patches/qt/fix_configure_mac.patch
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
--- old/qtbase/mkspecs/features/mac/sdk.prf 2018-02-08 10:24:48.000000000 -0800
|
||||||
|
+++ new/qtbase/mkspecs/features/mac/sdk.prf 2018-03-23 10:38:56.000000000 -0700
|
||||||
|
@@ -8,21 +8,21 @@
|
||||||
|
defineReplace(xcodeSDKInfo) {
|
||||||
|
info = $$1
|
||||||
|
equals(info, "Path"): \
|
||||||
|
- info = --show-sdk-path
|
||||||
|
+ infoarg = --show-sdk-path
|
||||||
|
equals(info, "PlatformPath"): \
|
||||||
|
- info = --show-sdk-platform-path
|
||||||
|
+ infoarg = --show-sdk-platform-path
|
||||||
|
equals(info, "SDKVersion"): \
|
||||||
|
- info = --show-sdk-version
|
||||||
|
+ infoarg = --show-sdk-version
|
||||||
|
sdk = $$2
|
||||||
|
isEmpty(sdk): \
|
||||||
|
sdk = $$QMAKE_MAC_SDK
|
||||||
|
|
||||||
|
isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}) {
|
||||||
|
- QMAKE_MAC_SDK.$${sdk}.$${info} = $$system("/usr/bin/xcrun --sdk $$sdk $$info 2>/dev/null")
|
||||||
|
+ QMAKE_MAC_SDK.$${sdk}.$${info} = $$system("/usr/bin/xcrun --sdk $$sdk $$infoarg 2>/dev/null")
|
||||||
|
# --show-sdk-platform-path won't work for Command Line Tools; this is fine
|
||||||
|
# only used by the XCTest backend to testlib
|
||||||
|
- isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}):if(!isEmpty(QMAKE_XCODEBUILD_PATH)|!equals(info, "--show-sdk-platform-path")): \
|
||||||
|
- error("Could not resolve SDK $$info for \'$$sdk\'")
|
||||||
|
+ isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}):if(!isEmpty(QMAKE_XCODEBUILD_PATH)|!equals(infoarg, "--show-sdk-platform-path")): \
|
||||||
|
+ error("Could not resolve SDK $$info for \'$$sdk\' using $$infoarg")
|
||||||
|
cache(QMAKE_MAC_SDK.$${sdk}.$${info}, set stash, QMAKE_MAC_SDK.$${sdk}.$${info})
|
||||||
|
}
|
||||||
|
|
||||||
|
--- old/qtbase/configure 2018-02-08 10:24:48.000000000 -0800
|
||||||
|
+++ new/qtbase/configure 2018-03-23 05:42:29.000000000 -0700
|
||||||
|
@@ -232,8 +232,13 @@
|
||||||
|
|
||||||
|
sdk=$(getSingleQMakeVariable "QMAKE_MAC_SDK" "$1")
|
||||||
|
if [ -z "$sdk" ]; then echo "QMAKE_MAC_SDK must be set when building on Mac" >&2; exit 1; fi
|
||||||
|
- sysroot=$(/usr/bin/xcrun --sdk $sdk --show-sdk-path 2>/dev/null)
|
||||||
|
- if [ -z "$sysroot" ]; then echo "Failed to resolve SDK path for '$sdk'" >&2; exit 1; fi
|
||||||
|
+ sysroot=$(getSingleQMakeVariable "QMAKE_MAC_SDK_PATH" "$1")
|
||||||
|
+
|
||||||
|
+ echo "sysroot pre-configured as $sysroot";
|
||||||
|
+ if [ -z "$sysroot" ]; then
|
||||||
|
+ sysroot=$(/usr/bin/xcrun --sdk $sdk --show-sdk-path 2>/dev/null)
|
||||||
|
+ if [ -z "$sysroot" ]; then echo "Failed to resolve SDK path for '$sdk'" >&2; exit 1; fi
|
||||||
|
+ fi
|
||||||
|
|
||||||
|
case "$sdk" in
|
||||||
|
macosx*)
|
||||||
|
|
||||||
|
|
19
depends/patches/qt/fix_no_printer.patch
Normal file
19
depends/patches/qt/fix_no_printer.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- x/qtbase/src/plugins/platforms/cocoa/qprintengine_mac_p.h
|
||||||
|
+++ y/qtbase/src/plugins/platforms/cocoa/qprintengine_mac_p.h
|
||||||
|
@@ -52,6 +52,7 @@
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
+#include <qpa/qplatformprintdevice.h>
|
||||||
|
|
||||||
|
#ifndef QT_NO_PRINTER
|
||||||
|
|
||||||
|
--- x/qtbase/src/plugins/plugins.pro
|
||||||
|
+++ y/qtbase/src/plugins/plugins.pro
|
||||||
|
@@ -8,6 +8,3 @@ qtHaveModule(gui) {
|
||||||
|
qtConfig(imageformatplugin): SUBDIRS *= imageformats
|
||||||
|
!android:qtConfig(library): SUBDIRS *= generic
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-!winrt:qtHaveModule(printsupport): \
|
||||||
|
- SUBDIRS += printsupport
|
11
depends/patches/qt/fix_qt_pkgconfig.patch
Normal file
11
depends/patches/qt/fix_qt_pkgconfig.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- old/qtbase/mkspecs/features/qt_module.prf
|
||||||
|
+++ new/qtbase/mkspecs/features/qt_module.prf
|
||||||
|
@@ -245,7 +245,7 @@
|
||||||
|
load(qt_targets)
|
||||||
|
|
||||||
|
# this builds on top of qt_common
|
||||||
|
-!internal_module:!lib_bundle:if(unix|mingw) {
|
||||||
|
+unix|mingw {
|
||||||
|
CONFIG += create_pc
|
||||||
|
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
|
||||||
|
host_build: \
|
15
depends/patches/qt/fix_rcc_determinism.patch
Normal file
15
depends/patches/qt/fix_rcc_determinism.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- old/qtbase/src/tools/rcc/rcc.cpp
|
||||||
|
+++ new/qtbase/src/tools/rcc/rcc.cpp
|
||||||
|
@@ -207,7 +207,11 @@ void RCCFileInfo::writeDataInfo(RCCResourceLibrary &lib)
|
||||||
|
if (lib.formatVersion() >= 2) {
|
||||||
|
// last modified time stamp
|
||||||
|
const QDateTime lastModified = m_fileInfo.lastModified();
|
||||||
|
- lib.writeNumber8(quint64(lastModified.isValid() ? lastModified.toMSecsSinceEpoch() : 0));
|
||||||
|
+ quint64 lastmod = quint64(lastModified.isValid() ? lastModified.toMSecsSinceEpoch() : 0);
|
||||||
|
+ static const quint64 sourceDate = 1000 * qgetenv("QT_RCC_SOURCE_DATE_OVERRIDE").toULongLong();
|
||||||
|
+ if (sourceDate != 0)
|
||||||
|
+ lastmod = sourceDate;
|
||||||
|
+ lib.writeNumber8(lastmod);
|
||||||
|
if (text || pass1)
|
||||||
|
lib.writeChar('\n');
|
||||||
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
MAKEFILE_GENERATOR = UNIX
|
MAKEFILE_GENERATOR = UNIX
|
||||||
CONFIG += app_bundle incremental global_init_link_order lib_version_first plugin_no_soname absolute_library_soname
|
CONFIG += app_bundle incremental global_init_link_order lib_version_first plugin_no_soname absolute_library_soname
|
||||||
DEFINES += QT_NO_PRINTER QT_NO_PRINTDIALOG
|
|
||||||
QMAKE_INCREMENTAL_STYLE = sublib
|
QMAKE_INCREMENTAL_STYLE = sublib
|
||||||
include(../common/macx.conf)
|
include(../common/macx.conf)
|
||||||
include(../common/gcc-base-mac.conf)
|
include(../common/gcc-base-mac.conf)
|
||||||
|
@ -11,14 +10,15 @@ QMAKE_XCODE_VERSION=4.3
|
||||||
QMAKE_XCODE_DEVELOPER_PATH=/Developer
|
QMAKE_XCODE_DEVELOPER_PATH=/Developer
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = $${MAC_MIN_VERSION}
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = $${MAC_MIN_VERSION}
|
||||||
QMAKE_MAC_SDK=macosx
|
QMAKE_MAC_SDK=macosx
|
||||||
QMAKE_MAC_SDK.macosx.path = $${MAC_SDK_PATH}
|
QMAKE_MAC_SDK.macosx.Path = $${MAC_SDK_PATH}
|
||||||
QMAKE_MAC_SDK.macosx.platform_name = macosx
|
QMAKE_MAC_SDK.macosx.platform_name = macosx
|
||||||
QMAKE_MAC_SDK.macosx.version = $${MAC_SDK_VERSION}
|
QMAKE_MAC_SDK.macosx.SDKVersion = $${MAC_SDK_VERSION}
|
||||||
QMAKE_MAC_SDK.macosx.platform_path = /phony
|
QMAKE_MAC_SDK.macosx.PlatformPath = /phony
|
||||||
QMAKE_CFLAGS += -target $${MAC_TARGET}
|
QMAKE_APPLE_DEVICE_ARCHS=x86_64
|
||||||
QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS
|
!host_build: QMAKE_CFLAGS += -target $${MAC_TARGET}
|
||||||
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
|
!host_build: QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS
|
||||||
QMAKE_LFLAGS += -target $${MAC_TARGET} -mlinker-version=$${MAC_LD64_VERSION}
|
!host_build: QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
|
||||||
|
!host_build: QMAKE_LFLAGS += -target $${MAC_TARGET} -mlinker-version=$${MAC_LD64_VERSION}
|
||||||
QMAKE_AR = $${CROSS_COMPILE}ar cq
|
QMAKE_AR = $${CROSS_COMPILE}ar cq
|
||||||
QMAKE_RANLIB=$${CROSS_COMPILE}ranlib
|
QMAKE_RANLIB=$${CROSS_COMPILE}ranlib
|
||||||
QMAKE_LIBTOOL=$${CROSS_COMPILE}libtool
|
QMAKE_LIBTOOL=$${CROSS_COMPILE}libtool
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp 2015-06-20 17:40:20.956781548 -0400
|
|
||||||
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp 2015-06-20 17:29:32.052772416 -0400
|
|
||||||
@@ -69,7 +69,7 @@
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <windowsx.h>
|
|
||||||
-#ifndef Q_OS_WINCE
|
|
||||||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
# include <comdef.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -762,7 +762,7 @@
|
|
||||||
HWND_MESSAGE, NULL, (HINSTANCE)GetModuleHandle(0), NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifndef Q_OS_WINCE
|
|
||||||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
// Re-engineered from the inline function _com_error::ErrorMessage().
|
|
||||||
// We cannot use it directly since it uses swprintf_s(), which is not
|
|
||||||
// present in the MSVCRT.DLL found on Windows XP (QTBUG-35617).
|
|
||||||
@@ -781,7 +781,7 @@
|
|
||||||
return QStringLiteral("IDispatch error #") + QString::number(wCode);
|
|
||||||
return QStringLiteral("Unknown error 0x0") + QString::number(comError.Error(), 16);
|
|
||||||
}
|
|
||||||
-#endif // !Q_OS_WINCE
|
|
||||||
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Common COM error strings.
|
|
||||||
@@ -846,12 +846,12 @@
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
-#ifndef Q_OS_WINCE
|
|
||||||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
_com_error error(hr);
|
|
||||||
result += QByteArrayLiteral(" (");
|
|
||||||
result += errorMessageFromComError(error);
|
|
||||||
result += ')';
|
|
||||||
-#endif // !Q_OS_WINCE
|
|
||||||
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
diff -dur old/qtbase/src/plugins/platforms/windows/qwindowscontext.h new/qtbase/src/plugins/platforms/windows/qwindowscontext.h
|
|
||||||
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.h 2015-06-29 22:04:40.000000000 +0200
|
|
||||||
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.h 2015-11-01 12:55:59.751234846 +0100
|
|
||||||
@@ -124,10 +124,18 @@
|
|
||||||
inline void init();
|
|
||||||
|
|
||||||
typedef HRESULT (WINAPI *SHCreateItemFromParsingName)(PCWSTR, IBindCtx *, const GUID&, void **);
|
|
||||||
+#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3)
|
|
||||||
+ typedef HRESULT (WINAPI *SHGetKnownFolderIDList)(const GUID &, DWORD, HANDLE, ITEMIDLIST **);
|
|
||||||
+#else
|
|
||||||
typedef HRESULT (WINAPI *SHGetKnownFolderIDList)(const GUID &, DWORD, HANDLE, PIDLIST_ABSOLUTE *);
|
|
||||||
+#endif
|
|
||||||
typedef HRESULT (WINAPI *SHGetStockIconInfo)(int , int , _SHSTOCKICONINFO *);
|
|
||||||
typedef HRESULT (WINAPI *SHGetImageList)(int, REFIID , void **);
|
|
||||||
+#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3)
|
|
||||||
+ typedef HRESULT (WINAPI *SHCreateItemFromIDList)(const ITEMIDLIST *, REFIID, void **);
|
|
||||||
+#else
|
|
||||||
typedef HRESULT (WINAPI *SHCreateItemFromIDList)(PCIDLIST_ABSOLUTE, REFIID, void **);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
SHCreateItemFromParsingName sHCreateItemFromParsingName;
|
|
||||||
SHGetKnownFolderIDList sHGetKnownFolderIDList;
|
|
||||||
diff -dur old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
|
|
||||||
--- old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp 2015-06-29 22:04:40.000000000 +0200
|
|
||||||
+++ new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp 2015-11-01 13:41:09.503149772 +0100
|
|
||||||
@@ -1008,7 +1008,11 @@
|
|
||||||
qWarning() << __FUNCTION__ << ": Invalid CLSID: " << url.path();
|
|
||||||
return Q_NULLPTR;
|
|
||||||
}
|
|
||||||
+#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3)
|
|
||||||
+ ITEMIDLIST *idList;
|
|
||||||
+#else
|
|
||||||
PIDLIST_ABSOLUTE idList;
|
|
||||||
+#endif
|
|
||||||
HRESULT hr = QWindowsContext::shell32dll.sHGetKnownFolderIDList(uuid, 0, 0, &idList);
|
|
||||||
if (FAILED(hr)) {
|
|
||||||
qErrnoWarning("%s: SHGetKnownFolderIDList(%s)) failed", __FUNCTION__, qPrintable(url.toString()));
|
|
26
depends/patches/qt/xkb-default.patch
Normal file
26
depends/patches/qt/xkb-default.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
--- old/qtbase/src/gui/configure.pri 2018-06-06 17:28:10.000000000 -0400
|
||||||
|
+++ new/qtbase/src/gui/configure.pri 2018-08-17 18:43:01.589384567 -0400
|
||||||
|
@@ -43,18 +43,11 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
defineTest(qtConfTest_xkbConfigRoot) {
|
||||||
|
- qtConfTest_getPkgConfigVariable($${1}): return(true)
|
||||||
|
-
|
||||||
|
- for (dir, $$list("/usr/share/X11/xkb", "/usr/local/share/X11/xkb")) {
|
||||||
|
- exists($$dir) {
|
||||||
|
- $${1}.value = $$dir
|
||||||
|
- export($${1}.value)
|
||||||
|
- $${1}.cache += value
|
||||||
|
- export($${1}.cache)
|
||||||
|
- return(true)
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- return(false)
|
||||||
|
+ $${1}.value = "/usr/share/X11/xkb"
|
||||||
|
+ export($${1}.value)
|
||||||
|
+ $${1}.cache += value
|
||||||
|
+ export($${1}.cache)
|
||||||
|
+ return(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
defineTest(qtConfTest_qpaDefaultPlatform) {
|
|
@ -1,10 +0,0 @@
|
||||||
--- old/config.tests/unix/stl/stltest.cpp 2011-06-23 03:45:23.000000000 -0400
|
|
||||||
+++ new/config.tests/unix/stl/stltest.cpp 2014-08-28 00:54:04.154837604 -0400
|
|
||||||
@@ -49,6 +49,7 @@
|
|
||||||
#include <vector>
|
|
||||||
#include <algorithm>
|
|
||||||
#include <iostream>
|
|
||||||
+#include <cstddef>
|
|
||||||
|
|
||||||
// something mean to see if the compiler and C++ standard lib are good enough
|
|
||||||
template<class K, class T>
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
From 1a159c128c69a42d90819375c06a39994f3fbfc1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cory Fields <cory-nospam-@coryfields.com>
|
||||||
|
Date: Tue, 28 Nov 2017 20:33:25 -0500
|
||||||
|
Subject: [PATCH] fix build with older mingw64
|
||||||
|
|
||||||
|
---
|
||||||
|
src/windows.hpp | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/windows.hpp b/src/windows.hpp
|
||||||
|
index 99e889d..e69038e 100644
|
||||||
|
--- a/src/windows.hpp
|
||||||
|
+++ b/src/windows.hpp
|
||||||
|
@@ -55,6 +55,13 @@
|
||||||
|
#include <winsock2.h>
|
||||||
|
#include <windows.h>
|
||||||
|
#include <mswsock.h>
|
||||||
|
+
|
||||||
|
+#if defined __MINGW64_VERSION_MAJOR && __MINGW64_VERSION_MAJOR < 4
|
||||||
|
+// Workaround for mingw-w64 < v4.0 which did not include ws2ipdef.h in iphlpapi.h.
|
||||||
|
+// Fixed in mingw-w64 by 9bd8fe9148924840d315b4c915dd099955ea89d1.
|
||||||
|
+#include <ws2def.h>
|
||||||
|
+#include <ws2ipdef.h>
|
||||||
|
+#endif
|
||||||
|
#include <iphlpapi.h>
|
||||||
|
|
||||||
|
#if !defined __MINGW32__
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
From 6e6b47d5ab381c3df3b30bb0b0a6cf210dfb1eba Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cory Fields <cory-nospam-@coryfields.com>
|
||||||
|
Date: Mon, 5 Mar 2018 14:22:05 -0500
|
||||||
|
Subject: [PATCH] disable pthread_set_name_np
|
||||||
|
|
||||||
|
pthread_set_name_np adds a Glibc requirement on >= 2.12.
|
||||||
|
---
|
||||||
|
src/thread.cpp | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/thread.cpp b/src/thread.cpp
|
||||||
|
index 4fc59c3e..c3fdfd46 100644
|
||||||
|
--- a/src/thread.cpp
|
||||||
|
+++ b/src/thread.cpp
|
||||||
|
@@ -220,7 +220,7 @@ void zmq::thread_t::setThreadName(const char *name_)
|
||||||
|
*/
|
||||||
|
if (!name_)
|
||||||
|
return;
|
||||||
|
-
|
||||||
|
+#if 0
|
||||||
|
#if defined(ZMQ_HAVE_PTHREAD_SETNAME_1)
|
||||||
|
int rc = pthread_setname_np(name_);
|
||||||
|
if(rc) return;
|
||||||
|
@@ -233,6 +233,8 @@ void zmq::thread_t::setThreadName(const char *name_)
|
||||||
|
#elif defined(ZMQ_HAVE_PTHREAD_SET_NAME)
|
||||||
|
pthread_set_name_np(descriptor, name_);
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
+ return;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
--
|
||||||
|
2.11.1
|
||||||
|
|
10
packaging/.dockerignore
Normal file
10
packaging/.dockerignore
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.travis.yml
|
||||||
|
README.md
|
||||||
|
LICENSE
|
||||||
|
hooks
|
||||||
|
Dockerfile
|
||||||
|
Makefile
|
||||||
|
*.sh
|
||||||
|
*.patch
|
43
packaging/Dockerfile
Normal file
43
packaging/Dockerfile
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
|
ARG VCS_REF
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
|
LABEL maintainer="Brannon King" \
|
||||||
|
decription="build_lbrycrd" \
|
||||||
|
version="1.0" \
|
||||||
|
org.label-schema.name="build_lbrycrd" \
|
||||||
|
org.label-schema.description="Use this to generate a reproducible build of LBRYcrd" \
|
||||||
|
org.label-schema.build-date=$BUILD_DATE \
|
||||||
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
|
org.label-schema.vcs-url="https://github.com/lbryio/lbrycrd" \
|
||||||
|
org.label-schema.schema-version="1.0.0-rc1" \
|
||||||
|
org.label-schema.docker.cmd="docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t build_lbrycrd packaging"
|
||||||
|
|
||||||
|
RUN set -xe; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install --no-install-recommends -y build-essential libtool autotools-dev automake pkg-config git wget apt-utils \
|
||||||
|
librsvg2-bin libtiff-tools cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools xz-utils ccache g++-multilib \
|
||||||
|
g++-mingw-w64-i686 mingw-w64-i686-dev bsdmainutils curl ca-certificates g++-mingw-w64-x86-64 mingw-w64-x86-64-dev; \
|
||||||
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
|
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -; \
|
||||||
|
echo 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main' >> /etc/apt/sources.list; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install --no-install-recommends -y clang-8 lldb-8 lld-8 libc++-8-dev; \
|
||||||
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
|
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang-cpp-8 80; \
|
||||||
|
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 80; \
|
||||||
|
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 80; \
|
||||||
|
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 80; \
|
||||||
|
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix; \
|
||||||
|
update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix; \
|
||||||
|
/usr/sbin/update-ccache-symlinks; \
|
||||||
|
cd /usr/include/c++ && ln -s /usr/lib/llvm-8/include/c++/v1;
|
||||||
|
|
||||||
|
ENV PATH "/usr/lib/ccache:$PATH"
|
||||||
|
WORKDIR /home
|
||||||
|
CMD ["/bin/bash"]
|
47
packaging/build_darwin_64bit.sh
Executable file
47
packaging/build_darwin_64bit.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# NOTE: this requires that you get the MacOS SDK separately.
|
||||||
|
# To acquire it, you will need to log into the Apple dev portal.
|
||||||
|
# From there, you download an Xcode package. Recommended: 7.3.1
|
||||||
|
# You can extract the SDK from that using contrib/macdeploy/extract
|
||||||
|
# you will need a folder like this: depends/SDKs/MacOSOSX10.11.sdk
|
||||||
|
# and ensure that the darwin.mk file version correspondes to the SDK.
|
||||||
|
|
||||||
|
if which dpkg-query >/dev/null; then
|
||||||
|
if dpkg-query -W librsvg2-bin libtiff-tools cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools \
|
||||||
|
build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates; then
|
||||||
|
echo "All dependencies satisfied."
|
||||||
|
else
|
||||||
|
echo "Missing dependencies detected. Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e depends/SDKs/MacOSX10.11.sdk ]; then
|
||||||
|
echo "Missing depends/SDKs/MacOSX10.11.sdk"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache config:"
|
||||||
|
ccache -ps
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd depends
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN` HOST=x86_64-apple-darwin14 NO_QT=1 V=1
|
||||||
|
popd
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
DEPS_DIR=`pwd`/depends/x86_64-apple-darwin14
|
||||||
|
CONFIG_SITE=${DEPS_DIR}/share/config.site ./configure --enable-reduce-exports --without-gui --with-icu="${DEPS_DIR}" --enable-static --disable-shared
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN`
|
||||||
|
${DEPS_DIR}/native/bin/x86_64-apple-darwin14-strip src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache stats:"
|
||||||
|
ccache -s
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "OSX 64bit build is complete"
|
34
packaging/build_linux_64bit.sh
Executable file
34
packaging/build_linux_64bit.sh
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if which dpkg-query >/dev/null; then
|
||||||
|
if dpkg-query -W libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates; then
|
||||||
|
echo "All dependencies satisfied."
|
||||||
|
else
|
||||||
|
echo "Missing dependencies detected. Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache config:"
|
||||||
|
ccache -ps
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd depends
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN` HOST=x86_64-pc-linux-gnu NO_QT=1 V=1
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
DEPS_DIR=`pwd`/depends/x86_64-pc-linux-gnu
|
||||||
|
CONFIG_SITE=${DEPS_DIR}/share/config.site ./configure --enable-static --disable-shared --with-pic --without-gui
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN`
|
||||||
|
strip src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache stats:"
|
||||||
|
ccache -s
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Linux 64bit build is complete"
|
|
@ -1,64 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y --no-install-recommends \
|
|
||||||
g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 \
|
|
||||||
mingw-w64-x86-64-dev build-essential libtool autotools-dev automake pkg-config \
|
|
||||||
libssl-dev libevent-dev bsdmainutils curl ca-certificates
|
|
||||||
|
|
||||||
echo "1" | sudo update-alternatives --config x86_64-w64-mingw32-g++
|
|
||||||
echo "1" | sudo update-alternatives --config x86_64-w64-mingw32-gcc
|
|
||||||
|
|
||||||
|
|
||||||
#################################################################
|
|
||||||
# Build ICU for Linux first so that we can cross compile it below
|
|
||||||
# It's a strange ICU thing in that it requries a working
|
|
||||||
# Linux build of itself to be used as part of the cross-compile
|
|
||||||
#################################################################
|
|
||||||
icu_version=63.1
|
|
||||||
icu_release=icu4c-63_1-src.tgz
|
|
||||||
staging_dir=/tmp/icu_staging
|
|
||||||
icu_linux_dir=$staging_dir/build_icu_linux
|
|
||||||
mkdir -p $staging_dir
|
|
||||||
pushd $staging_dir
|
|
||||||
wget -c http://download.icu-project.org/files/icu4c/$icu_version/$icu_release
|
|
||||||
tar -xzf $icu_release
|
|
||||||
pushd icu/source
|
|
||||||
CC="gcc" CXX="g++" ./runConfigureICU Linux --prefix=$icu_linux_dir --enable-extras=no --enable-strict=no --enable-static --enable-shared=no --enable-tests=no --enable-samples=no --enable-dyload=no
|
|
||||||
make -j4
|
|
||||||
make install
|
|
||||||
popd
|
|
||||||
popd
|
|
||||||
|
|
||||||
export CXXFLAGS="-std=c++11"
|
|
||||||
|
|
||||||
pushd depends
|
|
||||||
# Remove the dir saying that dependencies are built (although ccache
|
|
||||||
# is still enabled).
|
|
||||||
rm -rf built
|
|
||||||
mkdir -p sources
|
|
||||||
cp "$staging_dir/$icu_release" sources/
|
|
||||||
|
|
||||||
# Build and install the cross compiled ICU package.
|
|
||||||
make -j4 HOST=x86_64-w64-mingw32 NO_QT=1 ICU_ONLY=1
|
|
||||||
|
|
||||||
# Then build the rest of the dependencies (now that it exists and we
|
|
||||||
# can determine the location for it).
|
|
||||||
icu_mingw_dir=$(find /tmp/icu_install -name x86_64-w64-mingw32 -type d)
|
|
||||||
|
|
||||||
make -j4 HOST=x86_64-w64-mingw32 NO_QT=1 ICU_DIR=$icu_mingw_dir V=1
|
|
||||||
popd
|
|
||||||
|
|
||||||
./autogen.sh
|
|
||||||
echo "Using --with-icu=$icu_mingw_dir"
|
|
||||||
PREFIX=`pwd`/depends/x86_64-w64-mingw32
|
|
||||||
CC="x86_64-w64-mingw32-gcc" CXX="x86_64-w64-mingw32-g++" ./configure --prefix=$PREFIX --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --without-gui --with-icu=$icu_mingw_dir --enable-static --disable-shared
|
|
||||||
./configure --prefix=$PREFIX --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --without-gui --with-icu=$icu_mingw_dir --enable-static --disable-shared
|
|
||||||
make -j4
|
|
||||||
|
|
||||||
rm -rf $staging_dir
|
|
||||||
# Remove hardcoded cross compiled ICU package path.
|
|
||||||
rm -rf /tmp/icu_install
|
|
||||||
echo "Windows build is complete"
|
|
38
packaging/build_windows_32bit.sh
Executable file
38
packaging/build_windows_32bit.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if which dpkg-query >/dev/null; then
|
||||||
|
if dpkg-query -W g++-mingw-w64-i686 mingw-w64-i686-dev \
|
||||||
|
build-essential libtool autotools-dev automake pkg-config \
|
||||||
|
bsdmainutils curl ca-certificates; then
|
||||||
|
echo "All dependencies satisfied."
|
||||||
|
else
|
||||||
|
echo "Missing dependencies detected. Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# sudo update-alternatives --config i686-w64-mingw32-g++ # you have to select posix
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache config:"
|
||||||
|
ccache -ps
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd depends
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN` HOST=i686-w64-mingw32 NO_QT=1 V=1
|
||||||
|
popd
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
DEPS_DIR=`pwd`/depends/i686-w64-mingw32
|
||||||
|
CONFIG_SITE=${DEPS_DIR}/share/config.site ./configure --prefix=/ --without-gui --with-icu="$DEPS_DIR" --enable-static --disable-shared
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN`
|
||||||
|
i686-w64-mingw32-strip src/lbrycrdd.exe src/lbrycrd-cli.exe src/lbrycrd-tx.exe
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache stats:"
|
||||||
|
ccache -s
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Windows 32bit build is complete"
|
37
packaging/build_windows_64bit.sh
Executable file
37
packaging/build_windows_64bit.sh
Executable file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if which dpkg-query >/dev/null; then
|
||||||
|
if dpkg-query -W g++-mingw-w64-x86-64 mingw-w64-x86-64-dev \
|
||||||
|
build-essential libtool autotools-dev automake pkg-config \
|
||||||
|
bsdmainutils curl ca-certificates; then
|
||||||
|
echo "All dependencies satisfied."
|
||||||
|
else
|
||||||
|
echo "Missing dependencies detected. Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
#sudo update-alternatives --config x86_64-w64-mingw32-g++ # you have to select posix
|
||||||
|
fi
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache config:"
|
||||||
|
ccache -ps
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd depends
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN` HOST=x86_64-w64-mingw32 NO_QT=1 V=1
|
||||||
|
popd
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
DEPS_DIR=`pwd`/depends/x86_64-w64-mingw32
|
||||||
|
CONFIG_SITE=${DEPS_DIR}/share/config.site ./configure --prefix=/ --without-gui --with-icu="$DEPS_DIR" --enable-static --disable-shared
|
||||||
|
make -j`getconf _NPROCESSORS_ONLN`
|
||||||
|
x86_64-w64-mingw32-strip src/lbrycrdd.exe src/lbrycrd-cli.exe src/lbrycrd-tx.exe
|
||||||
|
|
||||||
|
if which ccache >/dev/null; then
|
||||||
|
echo "ccache stats:"
|
||||||
|
ccache -s
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Windows 64bit build is complete"
|
|
@ -1,23 +0,0 @@
|
||||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
||||||
index a9f0a94..d71bfeb 100644
|
|
||||||
--- a/src/Makefile.am
|
|
||||||
+++ b/src/Makefile.am
|
|
||||||
@@ -64,12 +64,12 @@ if ENABLE_ZMQ
|
|
||||||
EXTRA_LIBRARIES += libbitcoin_zmq.a
|
|
||||||
endif
|
|
||||||
|
|
||||||
-if BUILD_BITCOIN_LIBS
|
|
||||||
-lib_LTLIBRARIES = libbitcoinconsensus.la
|
|
||||||
-LIBBITCOINCONSENSUS=libbitcoinconsensus.la
|
|
||||||
-else
|
|
||||||
-LIBBITCOINCONSENSUS=
|
|
||||||
-endif
|
|
||||||
+# if BUILD_BITCOIN_LIBS
|
|
||||||
+# lib_LTLIBRARIES = libbitcoinconsensus.la
|
|
||||||
+# LIBBITCOINCONSENSUS=libbitcoinconsensus.la
|
|
||||||
+# else
|
|
||||||
+# LIBBITCOINCONSENSUS=
|
|
||||||
+# endif
|
|
||||||
|
|
||||||
bin_PROGRAMS =
|
|
||||||
TESTS =
|
|
|
@ -1,451 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -euox pipefail
|
|
||||||
|
|
||||||
function HELP {
|
|
||||||
echo "Build lbrycrd"
|
|
||||||
echo "-----"
|
|
||||||
echo "When run without any arguments, this script expects the current directory"
|
|
||||||
echo "to be the lbrycrd repo and it builds what is in that directory"
|
|
||||||
echo
|
|
||||||
echo "This is a long build process so it can be split into two parts"
|
|
||||||
echo "Specify the -d flag to build only the dependencies"
|
|
||||||
echo "and the -l flag to build only lbrycrd. This will fail"
|
|
||||||
echo "if the dependencies weren't built earlier"
|
|
||||||
echo
|
|
||||||
echo "Optional arguments:"
|
|
||||||
echo
|
|
||||||
echo "-f: check formatting of committed code relative to master"
|
|
||||||
echo "-r: remove intermediate files."
|
|
||||||
echo "-l: build only lbrycrd"
|
|
||||||
echo "-d: build only the dependencies"
|
|
||||||
echo "-o: timeout build after 40 minutes"
|
|
||||||
echo "-t: turn trace on"
|
|
||||||
echo "-h: show help"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
CLEAN=false
|
|
||||||
CHECK_CODE_FORMAT=false
|
|
||||||
BUILD_DEPENDENCIES=true
|
|
||||||
BUILD_LBRYCRD=true
|
|
||||||
TIMEOUT=false
|
|
||||||
THREE_MB=3145728
|
|
||||||
# this flag gets set to False if
|
|
||||||
# the script exits due to a timeout
|
|
||||||
OUTPUT_LOG=true
|
|
||||||
|
|
||||||
while getopts :crfldoth:w:d: FLAG; do
|
|
||||||
case $FLAG in
|
|
||||||
r)
|
|
||||||
CLEAN=true
|
|
||||||
;;
|
|
||||||
f)
|
|
||||||
CHECK_CODE_FORMAT=true
|
|
||||||
;;
|
|
||||||
l)
|
|
||||||
BUILD_DEPENDENCIES=false
|
|
||||||
;;
|
|
||||||
d)
|
|
||||||
BUILD_LBRYCRD=false
|
|
||||||
;;
|
|
||||||
o)
|
|
||||||
TIMEOUT=true
|
|
||||||
;;
|
|
||||||
t)
|
|
||||||
set -o xtrace
|
|
||||||
;;
|
|
||||||
h)
|
|
||||||
HELP
|
|
||||||
;;
|
|
||||||
\?) #unrecognized option - show help
|
|
||||||
echo "Option -$OPTARG not allowed."
|
|
||||||
HELP
|
|
||||||
;;
|
|
||||||
:)
|
|
||||||
echo "Option -$OPTARG requires an argument."
|
|
||||||
HELP
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
shift $((OPTIND-1))
|
|
||||||
|
|
||||||
SUDO=''
|
|
||||||
if (( EUID != 0 )); then
|
|
||||||
SUDO='sudo'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$(basename "$PWD")" != "lbrycrd" ]; then
|
|
||||||
echo "Not currently in the lbrycrd directory. Cowardly refusing to go forward"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
SOURCE_DIR=$PWD
|
|
||||||
|
|
||||||
if [ -z "${TRAVIS_OS_NAME+x}" ]; then
|
|
||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
|
||||||
OS_NAME="osx"
|
|
||||||
else
|
|
||||||
OS_NAME="linux"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
OS_NAME="${TRAVIS_OS_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${TRAVIS_BUILD_DIR+x}" ]; then
|
|
||||||
START_TIME_FILE="$PWD/start_time"
|
|
||||||
else
|
|
||||||
# if we are on travis (the primary use case for setting a timeout)
|
|
||||||
# this file is created when the build starts
|
|
||||||
START_TIME_FILE="$TRAVIS_BUILD_DIR/start_time"
|
|
||||||
fi
|
|
||||||
rm -f ${START_TIME_FILE}
|
|
||||||
date +%s > ${START_TIME_FILE}
|
|
||||||
|
|
||||||
NEXT_TIME=60
|
|
||||||
function exit_at_60() {
|
|
||||||
if [ -f "${START_TIME_FILE}" ]; then
|
|
||||||
NOW=$(date +%s)
|
|
||||||
START=$(cat "${START_TIME_FILE}")
|
|
||||||
TIMEOUT_SECS=3600 # 60 * 60
|
|
||||||
TIME=$((NOW - START))
|
|
||||||
if (( TIME > NEXT_TIME )); then
|
|
||||||
echo "Build has taken $((TIME / 60)) minutes: $1"
|
|
||||||
NEXT_TIME=$((TIME + 60))
|
|
||||||
fi
|
|
||||||
if [ "$TIMEOUT" = true ] && (( TIME > TIMEOUT_SECS )); then
|
|
||||||
echo 'Exiting at 60 minutes to allow the cache to populate'
|
|
||||||
OUTPUT_LOG=false
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# two arguments
|
|
||||||
# - pid (probably from $!)
|
|
||||||
# - echo message
|
|
||||||
function wait_and_echo() {
|
|
||||||
PID=$1
|
|
||||||
TIME=0
|
|
||||||
SLEEP=3
|
|
||||||
# loop until the process is no longer running
|
|
||||||
# check every $SLEEP seconds, echoing a message every minute
|
|
||||||
while (ps -p "${PID}" > /dev/null); do
|
|
||||||
exit_at_60 "$2"
|
|
||||||
sleep "${SLEEP}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# run a command ($1) in the background
|
|
||||||
# logging its stdout and stderr to $2
|
|
||||||
# and wait until it completed
|
|
||||||
function background() {
|
|
||||||
eval $1 >> "$2" 2>&1 &
|
|
||||||
BACKGROUND_PID=$!
|
|
||||||
(
|
|
||||||
set +xe # do not echo each sleep call in trace mode
|
|
||||||
wait_and_echo $BACKGROUND_PID "$3"
|
|
||||||
)
|
|
||||||
wait $BACKGROUND_PID
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanup() {
|
|
||||||
rv=$?
|
|
||||||
if [ $rv -eq 0 ]; then
|
|
||||||
return $rv
|
|
||||||
fi
|
|
||||||
# cat the log file if it exists
|
|
||||||
if [ -f "$2" ] && [ "${OUTPUT_LOG}" = true ]; then
|
|
||||||
echo
|
|
||||||
echo "Output of log file $2"
|
|
||||||
echo
|
|
||||||
cat "$2"
|
|
||||||
# tail -n 200 "$2"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
# delete the build directory
|
|
||||||
rm -rf "$1"
|
|
||||||
echo "Build failed. Removing $1"
|
|
||||||
exit $rv
|
|
||||||
}
|
|
||||||
|
|
||||||
function cat_and_exit() {
|
|
||||||
rv=$?
|
|
||||||
# cat the log file if it exists
|
|
||||||
if [ -f "$1" ] && [ "${OUTPUT_LOG}" = true ]; then
|
|
||||||
echo
|
|
||||||
echo "Output of log file $1"
|
|
||||||
echo
|
|
||||||
# This used to be the last 3MB but outputing that
|
|
||||||
# caused problems on travis.
|
|
||||||
# Hopefully the last 1000 lines is enough
|
|
||||||
# to debug whatever went wrong
|
|
||||||
tail -n 1000 "$1"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
exit $rv
|
|
||||||
}
|
|
||||||
|
|
||||||
function brew_if_not_installed() {
|
|
||||||
if ! brew ls | grep $1 --quiet; then
|
|
||||||
brew install $1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_brew_packages() {
|
|
||||||
brew update > /dev/null
|
|
||||||
brew unlink python
|
|
||||||
brew_if_not_installed autoconf
|
|
||||||
brew_if_not_installed automake
|
|
||||||
# something weird happened where glibtoolize was failing to find
|
|
||||||
# sed, and reinstalling fixes it.
|
|
||||||
brew reinstall libtool
|
|
||||||
brew_if_not_installed pkg-config
|
|
||||||
brew_if_not_installed protobuf
|
|
||||||
brew_if_not_installed gmp
|
|
||||||
|
|
||||||
if [ "${CHECK_CODE_FORMAT}" = true ]; then
|
|
||||||
brew_if_not_installed clang-format
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_apt_packages() {
|
|
||||||
if [ -d "${OUTPUT_DIR}" ]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${TRAVIS+x}" ]; then
|
|
||||||
# if not on travis, its nice to see progress
|
|
||||||
QUIET=""
|
|
||||||
else
|
|
||||||
QUIET="-qq"
|
|
||||||
fi
|
|
||||||
# get the required OS packages
|
|
||||||
$SUDO apt-get ${QUIET} update
|
|
||||||
$SUDO apt-get ${QUIET} install -y --no-install-recommends \
|
|
||||||
build-essential python-dev libbz2-dev libtool \
|
|
||||||
autotools-dev autoconf git pkg-config wget \
|
|
||||||
ca-certificates automake bsdmainutils
|
|
||||||
|
|
||||||
if [ "${CHECK_CODE_FORMAT}" = true ]; then
|
|
||||||
$SUDO apt-get ${QUIET} install -y --no-install-recommends \
|
|
||||||
clang-format-3.9
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_dependencies() {
|
|
||||||
if [ "${OS_NAME}" = "osx" ]; then
|
|
||||||
PARALLEL="-j $(sysctl -n hw.ncpu)"
|
|
||||||
install_brew_packages
|
|
||||||
else
|
|
||||||
PARALLEL="-j $(grep -c processor /proc/cpuinfo)"
|
|
||||||
install_apt_packages
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$CLEAN" = true ]; then
|
|
||||||
rm -rf "${LBRYCRD_DEPENDENCIES}"
|
|
||||||
rm -rf "${OUTPUT_DIR}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${LBRYCRD_DEPENDENCIES}"
|
|
||||||
|
|
||||||
# Download required dependencies (if not already present)
|
|
||||||
pushd ${LBRYCRD_DEPENDENCIES} > /dev/null
|
|
||||||
if [ ! -f db-4.8.30.NC.zip ]; then
|
|
||||||
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.zip
|
|
||||||
unzip -o -q db-4.8.30.NC.zip
|
|
||||||
fi
|
|
||||||
if [ ! -f libevent-2.1.8-stable.tar.gz ]; then
|
|
||||||
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
|
|
||||||
tar -xzf libevent-2.1.8-stable.tar.gz
|
|
||||||
fi
|
|
||||||
if [ ! -f openssl-1.0.2r.tar.gz ]; then
|
|
||||||
wget https://www.openssl.org/source/openssl-1.0.2r.tar.gz
|
|
||||||
tar -xzf openssl-1.0.2r.tar.gz
|
|
||||||
fi
|
|
||||||
if [ ! -f icu4c-63_1-src.tgz ]; then
|
|
||||||
wget http://download.icu-project.org/files/icu4c/63.1/icu4c-63_1-src.tgz
|
|
||||||
tar -xzf icu4c-63_1-src.tgz
|
|
||||||
fi
|
|
||||||
if [ ! -f boost_1_64_0.tar.bz2 ]; then
|
|
||||||
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2
|
|
||||||
tar -xjf boost_1_64_0.tar.bz2
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${LOG_DIR}"
|
|
||||||
|
|
||||||
build_dependency "${OPENSSL_PREFIX}" "${LOG_DIR}/openssl_build.log" build_openssl
|
|
||||||
build_dependency "${ICU_PREFIX}" "${LOG_DIR}/icu_build.log" build_icu
|
|
||||||
build_dependency "${BDB_PREFIX}" "${LOG_DIR}/bdb_build.log" build_bdb
|
|
||||||
|
|
||||||
set +u
|
|
||||||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${OPENSSL_PREFIX}/lib/pkgconfig"
|
|
||||||
set -u
|
|
||||||
|
|
||||||
build_dependency "${BOOST_PREFIX}" "${LOG_DIR}/boost_build.log" build_boost
|
|
||||||
build_dependency "${LIBEVENT_PREFIX}" "${LOG_DIR}/libevent_build.log" build_libevent
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_bdb() {
|
|
||||||
BDB_LOG="$1"
|
|
||||||
if [ "${OS_NAME}" = "osx" ]; then
|
|
||||||
# TODO: make this handle already patched files
|
|
||||||
patch db-4.8.30.NC/dbinc/atomic.h < ../contrib/patches/atomic.patch
|
|
||||||
fi
|
|
||||||
cd db-4.8.30.NC/build_unix
|
|
||||||
echo "Building bdb. tail -f $BDB_LOG to see the details and monitor progress"
|
|
||||||
../dist/configure --prefix="${BDB_PREFIX}" --enable-cxx --disable-shared --with-pic > "${BDB_LOG}"
|
|
||||||
background "make ${PARALLEL}" "${BDB_LOG}" "Waiting for bdb to finish building"
|
|
||||||
make install >> "${BDB_LOG}" 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_openssl() {
|
|
||||||
OPENSSL_LOG="$1"
|
|
||||||
mkdir -p "${OPENSSL_PREFIX}/ssl"
|
|
||||||
cd openssl-1.0.2r
|
|
||||||
echo "Building openssl. tail -f $OPENSSL_LOG to see the details and monitor progress"
|
|
||||||
if [ "${OS_NAME}" = "osx" ]; then
|
|
||||||
./Configure --prefix="${OPENSSL_PREFIX}" --openssldir="${OPENSSL_PREFIX}/ssl" \
|
|
||||||
-fPIC darwin64-x86_64-cc \
|
|
||||||
no-shared no-dso no-engines > "${OPENSSL_LOG}"
|
|
||||||
make depend
|
|
||||||
else
|
|
||||||
[[ $(uname -m) = 'i686' ]] && OS_ARCH="linux-generic32" || OS_ARCH="linux-x86_64"
|
|
||||||
./Configure --prefix="${OPENSSL_PREFIX}" --openssldir="${OPENSSL_PREFIX}/ssl" \
|
|
||||||
${OS_ARCH} -fPIC -static no-shared no-dso > "${OPENSSL_LOG}"
|
|
||||||
fi
|
|
||||||
background "make ${PARALLEL}" "${OPENSSL_LOG}" "Waiting for openssl to finish building"
|
|
||||||
make install >> "${OPENSSL_LOG}" 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_boost() {
|
|
||||||
BOOST_LOG="$1"
|
|
||||||
cd boost_1_64_0
|
|
||||||
|
|
||||||
echo "int main() { return 0; }" > libs/regex/build/has_icu_test.cpp
|
|
||||||
echo "int main() { return 0; }" > libs/locale/build/has_icu_test.cpp
|
|
||||||
|
|
||||||
export BOOST_ICU_LIBS="-L${ICU_PREFIX}/lib -licui18n -licuuc -licudata -ldl"
|
|
||||||
export BOOST_LIBRARIES="chrono,filesystem,program_options,system,locale,regex,thread,test"
|
|
||||||
|
|
||||||
echo "Building Boost. tail -f ${BOOST_LOG} to see the details and monitor progress"
|
|
||||||
./bootstrap.sh --prefix="${BOOST_PREFIX}" --with-icu="${ICU_PREFIX}" --with-libraries=${BOOST_LIBRARIES} > "${BOOST_LOG}" 2>&1
|
|
||||||
b2cmd="./b2 --reconfigure ${PARALLEL} link=static cxxflags=\"-std=c++11 -fPIC\" install boost.locale.iconv=off boost.locale.posix=off -sICU_PATH=\"${ICU_PREFIX}\" -sICU_LINK=\"${BOOST_ICU_LIBS}\""
|
|
||||||
background "${b2cmd}" "${BOOST_LOG}" "Waiting for boost to finish building"
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_icu() {
|
|
||||||
ICU_LOG="$1"
|
|
||||||
mkdir -p "${ICU_PREFIX}/icu"
|
|
||||||
pushd icu/source > /dev/null
|
|
||||||
echo "Building icu. tail -f $ICU_LOG to see the details and monitor progress"
|
|
||||||
./configure --prefix="${ICU_PREFIX}" --enable-draft --enable-tools \
|
|
||||||
--disable-shared --enable-static --disable-extras --disable-icuio --disable-dyload \
|
|
||||||
--disable-layout --disable-layoutex --disable-tests --disable-samples CFLAGS=-fPIC CPPFLAGS=-fPIC > "${ICU_LOG}"
|
|
||||||
if [ ! -z ${TARGET+x} ]; then
|
|
||||||
TMP_TARGET="${TARGET}"
|
|
||||||
unset TARGET
|
|
||||||
fi
|
|
||||||
set +e
|
|
||||||
background "make ${PARALLEL} VERBOSE=1" "${ICU_LOG}" "Waiting for icu to finish building"
|
|
||||||
make install >> "${ICU_LOG}" 2>&1
|
|
||||||
if [ ! -z ${TARGET+x} ]; then
|
|
||||||
TARGET="${TMP_TARGET}"
|
|
||||||
fi
|
|
||||||
set -e
|
|
||||||
popd > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_libevent() {
|
|
||||||
LIBEVENT_LOG="$1"
|
|
||||||
cd libevent-2.1.8-stable
|
|
||||||
echo "Building libevent. tail -f ${LIBEVENT_LOG} to see the details and monitor progress"
|
|
||||||
./autogen.sh > "${LIBEVENT_LOG}" 2>&1
|
|
||||||
./configure --prefix="${LIBEVENT_PREFIX}" --enable-static --disable-shared --with-pic \
|
|
||||||
LDFLAGS="-L${OPENSSL_PREFIX}/lib" \
|
|
||||||
CPPFLAGS="-I${OPENSSL_PREFIX}/include" >> "${LIBEVENT_LOG}" 2>&1
|
|
||||||
background "make ${PARALLEL}" "${LIBEVENT_LOG}" "Waiting for libevent to finish building"
|
|
||||||
make install >> "${LIBEVENT_LOG}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_dependency() {
|
|
||||||
pushd .
|
|
||||||
PREFIX=$1
|
|
||||||
LOG=$2
|
|
||||||
BUILD=$3
|
|
||||||
cd "${LBRYCRD_DEPENDENCIES}"
|
|
||||||
mkdir -p "${PREFIX}"
|
|
||||||
trap 'cleanup "${PREFIX}" "${LOG}"' INT TERM EXIT
|
|
||||||
"${BUILD}" "${LOG}"
|
|
||||||
trap - INT TERM EXIT
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_lbrycrd() {
|
|
||||||
cd "${SOURCE_DIR}"
|
|
||||||
./autogen.sh > "${LBRYCRD_LOG}" 2>&1
|
|
||||||
LDFLAGS="-L${OPENSSL_PREFIX}/lib -L${BDB_PREFIX}/lib -L${LIBEVENT_PREFIX}/lib"
|
|
||||||
OPTIONS="--enable-cxx --enable-static --disable-shared --with-pic"
|
|
||||||
if [ "${OS_NAME}" = "osx" ]; then
|
|
||||||
CPPFLAGS="-I${OPENSSL_PREFIX}/include -I${BDB_PREFIX}/include -I${LIBEVENT_PREFIX}/include -I${ICU_PREFIX}/include"
|
|
||||||
else
|
|
||||||
CPPFLAGS="-I${OPENSSL_PREFIX}/include -I${BDB_PREFIX}/include -I${LIBEVENT_PREFIX}/include -I${ICU_PREFIX}/include -Wno-unused-local-typedefs -Wno-deprecated -Wno-implicit-fallthrough"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
||||||
./configure --without-gui ${OPTIONS} \
|
|
||||||
--with-boost="${BOOST_PREFIX}" \
|
|
||||||
--with-icu="${ICU_PREFIX}" >> "${LBRYCRD_LOG}" 2>&1
|
|
||||||
|
|
||||||
background "make ${PARALLEL}" "${LBRYCRD_LOG}" "Waiting for lbrycrd to finish building"
|
|
||||||
}
|
|
||||||
|
|
||||||
function clang_format_diff(){
|
|
||||||
# run a code formatting check on any commits not in master
|
|
||||||
# requires clang-format
|
|
||||||
git diff -U0 origin/master -- '*.h' '*.cpp' | ./contrib/devtools/clang-format-diff.py -p1
|
|
||||||
}
|
|
||||||
|
|
||||||
# these variables are needed in both functions
|
|
||||||
LBRYCRD_DEPENDENCIES="$(pwd)/lbrycrd-dependencies"
|
|
||||||
OUTPUT_DIR="$(pwd)/build"
|
|
||||||
LOG_DIR="$(pwd)/logs"
|
|
||||||
ICU_PREFIX="${OUTPUT_DIR}/icu"
|
|
||||||
BDB_PREFIX="${OUTPUT_DIR}/bdb"
|
|
||||||
OPENSSL_PREFIX="${OUTPUT_DIR}/openssl"
|
|
||||||
BOOST_PREFIX="${OUTPUT_DIR}/boost"
|
|
||||||
LIBEVENT_PREFIX="${OUTPUT_DIR}/libevent"
|
|
||||||
|
|
||||||
if [ "${BUILD_DEPENDENCIES}" = true ]; then
|
|
||||||
build_dependencies
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${CHECK_CODE_FORMAT}" = true ]; then
|
|
||||||
LINES_W_FORMAT_REQUIRED=$(clang_format_diff | wc -l)
|
|
||||||
if [ ${LINES_W_FORMAT_REQUIRED} -ne 0 ]; then
|
|
||||||
echo "Failed to pass clang format diff: See below for the diff"
|
|
||||||
clang_format_diff
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
set +u
|
|
||||||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${OPENSSL_PREFIX}/lib/pkgconfig:${LIBEVENT_PREFIX}/lib/pkgconfig:${ICU_PREFIX}/lib/pkgconfig"
|
|
||||||
set -u
|
|
||||||
|
|
||||||
if [ "${BUILD_LBRYCRD}" = true ]; then
|
|
||||||
LBRYCRD_LOG="${LOG_DIR}/lbrycrd_build.log"
|
|
||||||
echo "Building lbrycrd. tail -f ${LBRYCRD_LOG} to see the details and monitor progress"
|
|
||||||
trap 'cat_and_exit "${LBRYCRD_LOG}"' INT TERM EXIT
|
|
||||||
build_lbrycrd
|
|
||||||
trap - INT TERM EXIT
|
|
||||||
|
|
||||||
./src/test/test_lbrycrd
|
|
||||||
set +u
|
|
||||||
if [[ ! $CXXFLAGS =~ -g ]]; then
|
|
||||||
strip src/lbrycrdd
|
|
||||||
strip src/lbrycrd-cli
|
|
||||||
strip src/lbrycrd-tx
|
|
||||||
fi
|
|
||||||
fi
|
|
|
@ -19,7 +19,7 @@ else
|
||||||
LIBUNIVALUE = $(UNIVALUE_LIBS)
|
LIBUNIVALUE = $(UNIVALUE_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BITCOIN_INCLUDES=-I$(builddir) $(BDB_CPPFLAGS) $(ICU_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS)
|
BITCOIN_INCLUDES=-I$(builddir) $(BDB_CPPFLAGS) $(ICU_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) $(CRYPTO_CFLAGS) $(ICU_CFLAGS)
|
||||||
|
|
||||||
BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
|
BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include
|
||||||
BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
|
BITCOIN_INCLUDES += $(UNIVALUE_CFLAGS)
|
||||||
|
@ -217,7 +217,7 @@ obj/build.h: FORCE
|
||||||
"$(abs_top_srcdir)"
|
"$(abs_top_srcdir)"
|
||||||
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
|
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
|
||||||
|
|
||||||
# server: shared between bitcoind and bitcoin-qt
|
# server: shared between lbrycrdd and lbrycrd-qt
|
||||||
libbitcoin_server_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
|
libbitcoin_server_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
|
||||||
libbitcoin_server_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
libbitcoin_server_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
libbitcoin_server_a_SOURCES = \
|
libbitcoin_server_a_SOURCES = \
|
||||||
|
@ -283,7 +283,7 @@ libbitcoin_zmq_a_SOURCES = \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# wallet: shared between bitcoind and bitcoin-qt, but only linked
|
# wallet: shared between lbrycrdd and lbrycrd-qt, but only linked
|
||||||
# when wallet enabled
|
# when wallet enabled
|
||||||
libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
||||||
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
|
@ -383,7 +383,7 @@ libbitcoin_consensus_a_SOURCES = \
|
||||||
utilstrencodings.h \
|
utilstrencodings.h \
|
||||||
version.h
|
version.h
|
||||||
|
|
||||||
# common: shared between bitcoind, and bitcoin-qt and non-server tools
|
# common: shared between lbrycrdd, and lbrycrd-qt and non-server tools
|
||||||
libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
libbitcoin_common_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
||||||
libbitcoin_common_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
libbitcoin_common_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
libbitcoin_common_a_SOURCES = \
|
libbitcoin_common_a_SOURCES = \
|
||||||
|
@ -443,7 +443,7 @@ libbitcoin_util_a_SOURCES += compat/glibc_compat.cpp
|
||||||
AM_LDFLAGS += $(COMPAT_LDFLAGS)
|
AM_LDFLAGS += $(COMPAT_LDFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# cli: shared between lbrycrd-cli and bitcoin-qt
|
# cli: shared between lbrycrd-cli and lbrycrd-qt
|
||||||
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
||||||
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
libbitcoin_cli_a_SOURCES = \
|
libbitcoin_cli_a_SOURCES = \
|
||||||
|
|
|
@ -32,7 +32,7 @@ bench_bench_bitcoin_SOURCES = \
|
||||||
|
|
||||||
nodist_bench_bench_bitcoin_SOURCES = $(GENERATED_BENCH_FILES)
|
nodist_bench_bench_bitcoin_SOURCES = $(GENERATED_BENCH_FILES)
|
||||||
|
|
||||||
bench_bench_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CLFAGS) $(EVENT_PTHREADS_CFLAGS) -I$(builddir)/bench/
|
bench_bench_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CLFAGS) $(EVENT_PTHREADS_CFLAGS) $(BOOST_CPPFLAGS) -I$(builddir)/bench/
|
||||||
bench_bench_bitcoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
bench_bench_bitcoin_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
bench_bench_bitcoin_LDADD = \
|
bench_bench_bitcoin_LDADD = \
|
||||||
$(LIBBITCOIN_WALLET) \
|
$(LIBBITCOIN_WALLET) \
|
||||||
|
|
|
@ -13,54 +13,54 @@ void URITests::uriTests()
|
||||||
{
|
{
|
||||||
SendCoinsRecipient rv;
|
SendCoinsRecipient rv;
|
||||||
QUrl uri;
|
QUrl uri;
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?req-dontexist="));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?req-dontexist="));
|
||||||
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?dontexist="));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?dontexist="));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.label == QString());
|
QVERIFY(rv.label == QString());
|
||||||
QVERIFY(rv.amount == 0);
|
QVERIFY(rv.amount == 0);
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?label=Wikipedia Example Address"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?label=Wikipedia Example Address"));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.label == QString("Wikipedia Example Address"));
|
QVERIFY(rv.label == QString("Wikipedia Example Address"));
|
||||||
QVERIFY(rv.amount == 0);
|
QVERIFY(rv.amount == 0);
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=0.001"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=0.001"));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.label == QString());
|
QVERIFY(rv.label == QString());
|
||||||
QVERIFY(rv.amount == 100000);
|
QVERIFY(rv.amount == 100000);
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=1.001"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=1.001"));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.label == QString());
|
QVERIFY(rv.label == QString());
|
||||||
QVERIFY(rv.amount == 100100000);
|
QVERIFY(rv.amount == 100100000);
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=100&label=Wikipedia Example"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=100&label=Wikipedia Example"));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.amount == 10000000000LL);
|
QVERIFY(rv.amount == 10000000000LL);
|
||||||
QVERIFY(rv.label == QString("Wikipedia Example"));
|
QVERIFY(rv.label == QString("Wikipedia Example"));
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?message=Wikipedia Example Address"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?message=Wikipedia Example Address"));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.label == QString());
|
QVERIFY(rv.label == QString());
|
||||||
|
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?message=Wikipedia Example Address", &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?message=Wikipedia Example Address", &rv));
|
||||||
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
QVERIFY(rv.address == QString("175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W"));
|
||||||
QVERIFY(rv.label == QString());
|
QVERIFY(rv.label == QString());
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?req-message=Wikipedia Example Address"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?req-message=Wikipedia Example Address"));
|
||||||
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=1,000&label=Wikipedia Example"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=1,000&label=Wikipedia Example"));
|
||||||
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
|
|
||||||
uri.setUrl(QString("bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=1,000.0&label=Wikipedia Example"));
|
uri.setUrl(QString("lbry:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=1,000.0&label=Wikipedia Example"));
|
||||||
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
|
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue