Skip to content

Commit 614b006

Browse files
LeonidVasTotktonada
andcommitted
cd: enable tarantool repo for rpmbuild/debuild
There are distributions, where tarantool is in base repositories (such as Fedora 30-34 or Ubuntu Focal). There are ones, where it is in semi-official repos such as EPEL (CentOS 7/8). There are ones, where we have no tarantool package at all (or have only old tarantool-lts as in Ubuntu Bionic). It seems meaningful to enable the tarantool repository everywhere and don't depend on presence of a tarantool package in distribution base repositories. The repository is enabled using the installer.sh script: see [1] for details. Aside of just enabling the repo it configures a package manager (apt-get/yum/dnf) to prefer a package from our repository even when it has lower version. So we'll build against latest 1.10 on all distributions, it looks as the good side effect: unification. Worked around a problem with pinned tarantool package and unpinned tarantool-dev, see [2]. [1]: https://github.com/tarantool/installer.sh [2]: tarantool/installer.sh#10 Co-authored-by: Alexander Turenko <[email protected]>
1 parent 97325ab commit 614b006

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

debian/prebuild.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
curl -LsSf https://www.tarantool.io/release/1.10/installer.sh | sudo bash
2+
3+
# Workaround https://github.com/tarantool/installer.sh/issues/10
4+
printf '%s\n' 'Package: tarantool-dev' | sudo tee /etc/apt/preferences.d/tarantool-dev
5+
printf '%s\n' 'Pin: origin download.tarantool.org' | sudo tee -a /etc/apt/preferences.d/tarantool-dev
6+
printf '%s\n' 'Pin-Priority: 1001' | sudo tee -a /etc/apt/preferences.d/tarantool-dev

rpm/prebuild.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
curl -LsSf https://www.tarantool.io/release/1.10/installer.sh | sudo bash

0 commit comments

Comments
 (0)