Skip to content

Commit 6cb3696

Browse files
committed
Try to make it run again
1 parent ed7a11f commit 6cb3696

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

ci/before_install.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,15 @@ freebsd_install() {
4242
}
4343

4444
openbsd_install() {
45-
sudo pkg_add bzip2
46-
sudo pkg_add cmake
47-
sudo pkg_add gmake
48-
sudo pkg_add gettext-tools
49-
sudo pkg_add gnupg-2.1.15p2
50-
sudo pkg_add wget
51-
sudo pkg_add libiconv
5245
if [ "$(id -u)" -ne 0 ]; then
5346
echo "need to run as root"
5447
exit 1
5548
fi
5649

5750
export PKG_PATH="https://cloudflare.cdn.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -m)"
5851

59-
# CI script dependencies
60-
for pkg in bash git wget; do
52+
# CI script and build dependencies
53+
for pkg in bash git wget bzip2 cmake gmake gettext-tools libiconv; do
6154
pkg_info | grep -q "${pkg}" && \
6255
continue
6356

@@ -66,7 +59,7 @@ openbsd_install() {
6659

6760
rm -f /bin/bash
6861
ln -s /usr/local/bin/bash /bin/bash
69-
grep -q "^/bin/bash" || \
62+
grep -q "^/bin/bash" /etc/shells || \
7063
echo "/bin/bash" >> /etc/shells
7164

7265
for pkg in automake gnupg; do
@@ -79,6 +72,7 @@ openbsd_install() {
7972
pkg_add -I "${pkg_ver}"
8073
done
8174

75+
# Create link to expected gpg binary name and location
8276
rm -f ${GPG21_INSTALL}/bin/gpg
8377
ln /usr/local/bin/gpg2 ${GPG21_INSTALL}/bin/gpg
8478

ci/env-openbsd.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export BUILD_MODE=normal
1111
export CLANG_FORMAT_DIFF="clang-format-diff-4.0"
1212
export CC=gcc
1313
export MAKE=gmake
14+
15+
# TODO: make these read from pkg_info
1416
export AUTOCONF_VERSION=2.69
1517
export AUTOMAKE_VERSION=1.15
18+
19+
# TODO: use this environment variable in test scripts
1620
export GPG=gpg2

0 commit comments

Comments
 (0)