setup-apt-repo: Remove PPA and packagecloud repository.

We no longer use tsearch_extras, and the camo patch is irrelevant on
systemd systems (Xenial and newer).  So we no longer need to
provide/install a PPA at all.

Closes #13027.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-08-28 14:13:59 -07:00 committed by Tim Abbott
parent 6701c4463c
commit db44d61aab
6 changed files with 3 additions and 115 deletions

View File

@ -113,12 +113,6 @@ few places:
install other dependencies, and (2) because that list is shared install other dependencies, and (2) because that list is shared
between development and production. between development and production.
We maintain a [PPA (personal package archive)][ppa] with some packages
unique to Zulip (e.g the `tsearch_extras` postgres extension) and
backported versions of other dependencies (e.g. `camo`, to fix a buggy
`init` script). Our goal is to shrink or eliminate this PPA where
possible by getting issues addressed in the upstream distributions.
We also rely on the `pgroonga` PPA for the `pgroonga` postgres We also rely on the `pgroonga` PPA for the `pgroonga` postgres
extension, used by our [full-text search](full-text-search.html). extension, used by our [full-text search](full-text-search.html).
@ -358,6 +352,5 @@ usually one needs to think about making changes in 3 places:
[virtualenv-clone]: https://github.com/edwardgeorge/virtualenv-clone/ [virtualenv-clone]: https://github.com/edwardgeorge/virtualenv-clone/
[yarn]: https://yarnpkg.com/ [yarn]: https://yarnpkg.com/
[npm]: https://npmjs.com/ [npm]: https://npmjs.com/
[ppa]: https://launchpad.net/~tabbott/+archive/ubuntu/zulip
[iamcal]: https://github.com/iamcal/emoji-data [iamcal]: https://github.com/iamcal/emoji-data
[pygments]: http://pygments.org/ [pygments]: http://pygments.org/

View File

@ -36,18 +36,7 @@ apt-get -y install "${pre_setup_deps[@]}"
SCRIPTS_PATH="$(dirname "$(dirname "$0")")" SCRIPTS_PATH="$(dirname "$(dirname "$0")")"
release=$(lsb_release -sc) release=$(lsb_release -sc)
if [ "$release" = "xenial" ] || [ "$release" = "bionic" ]; then if [ "$release" = "xenial" ] || [ "$release" = "bionic" ] || [ "$release" = "cosmic" ] || [ "$release" = "disco" ]; then
apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc
apt-key add "$SCRIPTS_PATH"/setup/zulip-ppa.asc
cat >$SOURCES_FILE <<EOF
deb http://ppa.launchpad.net/groonga/ppa/ubuntu $release main
deb http://ppa.launchpad.net/tabbott/zulip/ubuntu $release main
deb-src http://ppa.launchpad.net/groonga/ppa/ubuntu $release main
deb-src http://ppa.launchpad.net/tabbott/zulip/ubuntu $release main
EOF
elif [ "$release" = "cosmic" ] || [ "$release" = "disco" ]; then
# This case will eventually merge with the above, if/when we add
# tsearch_extras packages to the Zulip PPA.
apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc
cat >$SOURCES_FILE <<EOF cat >$SOURCES_FILE <<EOF
deb http://ppa.launchpad.net/groonga/ppa/ubuntu $release main deb http://ppa.launchpad.net/groonga/ppa/ubuntu $release main
@ -55,10 +44,8 @@ deb-src http://ppa.launchpad.net/groonga/ppa/ubuntu $release main
EOF EOF
elif [ "$release" = "stretch" ] || [ "$release" = "buster" ]; then elif [ "$release" = "stretch" ] || [ "$release" = "buster" ]; then
apt-get install -y debian-archive-keyring apt-get install -y debian-archive-keyring
apt-key add "$SCRIPTS_PATH"/setup/packagecloud.asc
apt-key add "$SCRIPTS_PATH"/setup/pgroonga-debian.asc apt-key add "$SCRIPTS_PATH"/setup/pgroonga-debian.asc
cat >$SOURCES_FILE <<EOF cat >$SOURCES_FILE <<EOF
deb https://packagecloud.io/zulip/server/debian/ $release main
deb https://packages.groonga.org/debian/ $release main deb https://packages.groonga.org/debian/ $release main
deb-src https://packages.groonga.org/debian/ $release main deb-src https://packages.groonga.org/debian/ $release main
EOF EOF

View File

@ -1,64 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQINBFrqAQUBEADSLWlc4AOt0GMo7jtscNn3Ww3HRqeO+Xjq1UKBsLKzBofKbDga
JRTQ3Sblfmkj3bCxG9RLypcM/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QJv1yl2/AINajY9mf0znT/j2YI0hEiM34wtM3Wda+wZtZrLPOdeqC/lrg==
=t8gH
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -99,8 +99,7 @@ else:
logging.critical("Only x86 is supported;" logging.critical("Only x86 is supported;"
" ask on chat.zulip.org if you want another architecture.") " ask on chat.zulip.org if you want another architecture.")
# Note: It's probably actually not hard to add additional # Note: It's probably actually not hard to add additional
# architectures; the main problem is that we may not have # architectures.
# tsearch_extras binaries compiled (and some testing is required).
sys.exit(1) sys.exit(1)
# Ideally we wouldn't need to install a dependency here, before we # Ideally we wouldn't need to install a dependency here, before we

View File

@ -26,4 +26,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/03/01/zulip-2-0-relea
# historical commits sharing the same major version, in which case a # historical commits sharing the same major version, in which case a
# minor version bump suffices. # minor version bump suffices.
PROVISION_VERSION = '52.0' PROVISION_VERSION = '53.0'