File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,15 @@ freebsd_install() {
42
42
}
43
43
44
44
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
52
45
if [ " $( id -u) " -ne 0 ]; then
53
46
echo " need to run as root"
54
47
exit 1
55
48
fi
56
49
57
50
export PKG_PATH=" https://cloudflare.cdn.openbsd.org/pub/OpenBSD/$( uname -r) /packages/$( uname -m) "
58
51
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
61
54
pkg_info | grep -q " ${pkg} " && \
62
55
continue
63
56
@@ -66,7 +59,7 @@ openbsd_install() {
66
59
67
60
rm -f /bin/bash
68
61
ln -s /usr/local/bin/bash /bin/bash
69
- grep -q " ^/bin/bash" || \
62
+ grep -q " ^/bin/bash" /etc/shells || \
70
63
echo " /bin/bash" >> /etc/shells
71
64
72
65
for pkg in automake gnupg; do
@@ -79,6 +72,7 @@ openbsd_install() {
79
72
pkg_add -I " ${pkg_ver} "
80
73
done
81
74
75
+ # Create link to expected gpg binary name and location
82
76
rm -f ${GPG21_INSTALL} /bin/gpg
83
77
ln /usr/local/bin/gpg2 ${GPG21_INSTALL} /bin/gpg
84
78
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ export BUILD_MODE=normal
11
11
export CLANG_FORMAT_DIFF=" clang-format-diff-4.0"
12
12
export CC=gcc
13
13
export MAKE=gmake
14
+
15
+ # TODO: make these read from pkg_info
14
16
export AUTOCONF_VERSION=2.69
15
17
export AUTOMAKE_VERSION=1.15
18
+
19
+ # TODO: use this environment variable in test scripts
16
20
export GPG=gpg2
You can’t perform that action at this time.
0 commit comments