Skip to content

Commit a40b61b

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 acae0b9 commit a40b61b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

debian/prebuild.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -exu # Strict shell (w/o -o pipefail)
4+
5+
if [[ $DIST == "impish" ]] || [[ $DIST == "jammy" ]]; then
6+
curl -LsSfk https://www.tarantool.io/release/2/installer.sh | sudo bash
7+
else
8+
curl -LsSfk https://www.tarantool.io/release/1.10/installer.sh | sudo bash
9+
fi

rpm/prebuild.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
set -exu # Strict shell (w/o -o pipefail)
4+
5+
curl -LsSf https://www.tarantool.io/release/1.10/installer.sh | sudo bash

0 commit comments

Comments
 (0)