aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-12-12 16:40:23 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-12-13 00:05:59 +0800
commit60d7cc6049a7c5559ee3e48a0b25cfe94cf7e919 (patch)
treee53cedfcf83d77066fff3298c44f5249d1fa6db9
parent85291bcb2d0e92c8d515887a00174d46f974500d (diff)
downloaddexon-solidity-60d7cc6049a7c5559ee3e48a0b25cfe94cf7e919.tar.gz
dexon-solidity-60d7cc6049a7c5559ee3e48a0b25cfe94cf7e919.tar.zst
dexon-solidity-60d7cc6049a7c5559ee3e48a0b25cfe94cf7e919.zip
Replace trusty PPA build by static PPA build.
-rwxr-xr-xscripts/release_ppa.sh43
1 files changed, 28 insertions, 15 deletions
diff --git a/scripts/release_ppa.sh b/scripts/release_ppa.sh
index e842bd53..4ba0e644 100755
--- a/scripts/release_ppa.sh
+++ b/scripts/release_ppa.sh
@@ -28,6 +28,12 @@
## method = ftp
## incoming = ~ethereum/ethereum
## login = anonymous
+##
+## [ethereum-static]
+## fqdn = ppa.launchpad.net
+## method = ftp
+## incoming = ~ethereum/ethereum-static
+## login = anonymous
##
##############################################################################
@@ -41,34 +47,36 @@ else
branch=$1
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
email=builds@ethereum.org
packagename=solc
-for distribution in trusty xenial bionic cosmic
+static_build_distribution=cosmic
+
+for distribution in xenial bionic cosmic STATIC
do
cd /tmp/
rm -rf $distribution
mkdir $distribution
cd $distribution
-# Dependency
-if [ $distribution = trusty -o $distribution = vivid ]
+if [ $distribution = STATIC ]
then
+ pparepo=ethereum-static
Z3DEPENDENCY=""
+ CMAKE_OPTIONS="-DSOLC_LINK_STATIC=On"
else
+ if [ "$branch" = develop ]
+ then
+ pparepo=ethereum-dev
+ else
+ pparepo=ethereum
+ fi
Z3DEPENDENCY="libz3-dev,
"
+ CMAKE_OPTIONS=""
fi
+ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/${pparepo}/+files
# Fetch source
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>
Build-Depends: ${Z3DEPENDENCY}debhelper (>= 9.0.0),
cmake,
- g++-8,
+ g++,
git,
libgmp-dev,
libboost-all-dev,
@@ -168,7 +176,7 @@ override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
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
cat <<EOF > debian/copyright
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
# 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
(