mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5634 from ethereum/staticPPA
Replace trusty PPA build by static PPA build.
This commit is contained in:
commit
e85c3428b4
@ -17,6 +17,9 @@ Compiler Features:
|
|||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
||||||
|
|
||||||
|
Build System:
|
||||||
|
* Replace the trusty PPA build by a static build on cosmic that is used for the trusty package instead.
|
||||||
|
|
||||||
### 0.5.1 (2018-12-03)
|
### 0.5.1 (2018-12-03)
|
||||||
|
|
||||||
Language Features:
|
Language Features:
|
||||||
|
@ -10,6 +10,7 @@ Checklist for making a release:
|
|||||||
- [ ] Thank voluntary contributors in the Github release page (use ``git shortlog -s -n -e origin/release..origin/develop``).
|
- [ ] Thank voluntary contributors in the Github release page (use ``git shortlog -s -n -e origin/release..origin/develop``).
|
||||||
- [ ] Wait for the CI runs on the tag itself (they should push artifacts onto the Github release page).
|
- [ ] Wait for the CI runs on the tag itself (they should push artifacts onto the Github release page).
|
||||||
- [ ] Run ``scripts/release_ppa.sh release`` to create the PPA release (you need the relevant openssl key).
|
- [ ] Run ``scripts/release_ppa.sh release`` to create the PPA release (you need the relevant openssl key).
|
||||||
|
- [ ] Once the ``~ethereum/ubuntu/ethereum-static`` PPA build is finished, copy the static package to the ``~ethereum/ubuntu/ethereum`` PPA for the destination series ``Trusty`` while selecting ``Copy existing binaries``.
|
||||||
- [ ] Check that the Docker release was pushed to Docker Hub (this still seems to have problems, run ``./scripts/docker_deploy_manual.sh release``).
|
- [ ] Check that the Docker release was pushed to Docker Hub (this still seems to have problems, run ``./scripts/docker_deploy_manual.sh release``).
|
||||||
- [ ] Update the homebrew realease in https://github.com/ethereum/homebrew-ethereum/blob/master/solidity.rb (version and hash)
|
- [ ] Update the homebrew realease in https://github.com/ethereum/homebrew-ethereum/blob/master/solidity.rb (version and hash)
|
||||||
- [ ] Update the default version on readthedocs.
|
- [ ] Update the default version on readthedocs.
|
||||||
|
@ -28,6 +28,12 @@
|
|||||||
## method = ftp
|
## method = ftp
|
||||||
## incoming = ~ethereum/ethereum
|
## incoming = ~ethereum/ethereum
|
||||||
## login = anonymous
|
## login = anonymous
|
||||||
|
##
|
||||||
|
## [ethereum-static]
|
||||||
|
## fqdn = ppa.launchpad.net
|
||||||
|
## method = ftp
|
||||||
|
## incoming = ~ethereum/ethereum-static
|
||||||
|
## login = anonymous
|
||||||
|
|
||||||
##
|
##
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -41,34 +47,36 @@ else
|
|||||||
branch=$1
|
branch=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$branch" = develop ]
|
|
||||||
then
|
|
||||||
pparepo=ethereum-dev
|
|
||||||
ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/ethereum-dev/+files
|
|
||||||
else
|
|
||||||
pparepo=ethereum
|
|
||||||
ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/ethereum/+files
|
|
||||||
fi
|
|
||||||
|
|
||||||
keyid=70D110489D66E2F6
|
keyid=70D110489D66E2F6
|
||||||
email=builds@ethereum.org
|
email=builds@ethereum.org
|
||||||
packagename=solc
|
packagename=solc
|
||||||
|
|
||||||
for distribution in trusty xenial bionic cosmic
|
static_build_distribution=cosmic
|
||||||
|
|
||||||
|
for distribution in xenial bionic cosmic STATIC
|
||||||
do
|
do
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
rm -rf $distribution
|
rm -rf $distribution
|
||||||
mkdir $distribution
|
mkdir $distribution
|
||||||
cd $distribution
|
cd $distribution
|
||||||
|
|
||||||
# Dependency
|
if [ $distribution = STATIC ]
|
||||||
if [ $distribution = trusty -o $distribution = vivid ]
|
|
||||||
then
|
then
|
||||||
|
pparepo=ethereum-static
|
||||||
Z3DEPENDENCY=""
|
Z3DEPENDENCY=""
|
||||||
|
CMAKE_OPTIONS="-DSOLC_LINK_STATIC=On"
|
||||||
else
|
else
|
||||||
|
if [ "$branch" = develop ]
|
||||||
|
then
|
||||||
|
pparepo=ethereum-dev
|
||||||
|
else
|
||||||
|
pparepo=ethereum
|
||||||
|
fi
|
||||||
Z3DEPENDENCY="libz3-dev,
|
Z3DEPENDENCY="libz3-dev,
|
||||||
"
|
"
|
||||||
|
CMAKE_OPTIONS=""
|
||||||
fi
|
fi
|
||||||
|
ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/${pparepo}/+files
|
||||||
|
|
||||||
# Fetch source
|
# Fetch source
|
||||||
git clone --depth 2 --recursive https://github.com/ethereum/solidity.git -b "$branch"
|
git clone --depth 2 --recursive https://github.com/ethereum/solidity.git -b "$branch"
|
||||||
@ -114,7 +122,7 @@ Priority: extra
|
|||||||
Maintainer: Christian (Buildserver key) <builds@ethereum.org>
|
Maintainer: Christian (Buildserver key) <builds@ethereum.org>
|
||||||
Build-Depends: ${Z3DEPENDENCY}debhelper (>= 9.0.0),
|
Build-Depends: ${Z3DEPENDENCY}debhelper (>= 9.0.0),
|
||||||
cmake,
|
cmake,
|
||||||
g++-8,
|
g++,
|
||||||
git,
|
git,
|
||||||
libgmp-dev,
|
libgmp-dev,
|
||||||
libboost-all-dev,
|
libboost-all-dev,
|
||||||
@ -168,7 +176,7 @@ override_dh_shlibdeps:
|
|||||||
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
|
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- -DINSTALL_LLLC=Off -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
|
dh_auto_configure -- -DINSTALL_LLLC=Off -DTESTS=OFF ${CMAKE_OPTIONS}
|
||||||
EOF
|
EOF
|
||||||
cat <<EOF > debian/copyright
|
cat <<EOF > debian/copyright
|
||||||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
@ -224,7 +232,12 @@ EMAIL="$email" dch -v 1:${debversion}-${versionsuffix} "git build of ${commithas
|
|||||||
debuild -S -d -sa -us -uc
|
debuild -S -d -sa -us -uc
|
||||||
|
|
||||||
# prepare .changes file for Launchpad
|
# prepare .changes file for Launchpad
|
||||||
sed -i -e s/UNRELEASED/${distribution}/ -e s/urgency=medium/urgency=low/ ../*.changes
|
if [ $distribution = STATIC ]
|
||||||
|
then
|
||||||
|
sed -i -e s/UNRELEASED/${static_build_distribution}/ -e s/urgency=medium/urgency=low/ ../*.changes
|
||||||
|
else
|
||||||
|
sed -i -e s/UNRELEASED/${distribution}/ -e s/urgency=medium/urgency=low/ ../*.changes
|
||||||
|
fi
|
||||||
|
|
||||||
# check if ubuntu already has the source tarball
|
# check if ubuntu already has the source tarball
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user