Skip to content

Commit

Permalink
ci: install flex to build libpq
Browse files Browse the repository at this point in the history
Required from PostgreSQL 17
  • Loading branch information
dvarrazzo committed Sep 29, 2024
1 parent 17e8d85 commit d0b1a3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tools/build/build_libpq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ source /etc/os-release
case "$ID" in
centos)
yum update -y
yum install -y zlib-devel krb5-devel pam-devel perl-IPC-Cmd
yum install -y flex krb5-devel pam-devel perl-IPC-Cmd zlib-devel
;;

alpine)
apk upgrade
apk add --no-cache zlib-dev krb5-dev linux-pam-dev openldap-dev openssl-dev
apk add --no-cache flex krb5-dev linux-pam-dev openldap-dev \
openssl-dev tzdata zlib-dev
;;

*)
Expand Down
4 changes: 1 addition & 3 deletions tools/build/wheel_linux_before_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ source /etc/os-release
case "$ID" in
alpine)
# tzdata is required for datetime tests.
apk update
apk add --no-cache tzdata
"${dir}/build_libpq.sh" > /dev/null
;;

Expand All @@ -33,7 +31,7 @@ case "$ID" in

apt-get update
apt-get -y upgrade
apt-get -y install libpq-dev
apt-get -y install libpq-dev flex
;;

centos)
Expand Down

0 comments on commit d0b1a3a

Please sign in to comment.