Skip to content

Commit 1946490

Browse files
committed
Fix build for Focal, cleanup build .deb files before saving new
1 parent b28af30 commit 1946490

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo "PGX Version: ${PGXVERSION}"
3535
mkdir -p ${LOGDIR}
3636
mkdir -p ${ARTIFACTDIR}
3737

38-
for image in `ls docker/ | grep jammy` ; do
38+
for image in `ls docker/ | grep focal` ; do
3939

4040
OS_DIST=$(echo ${image}|cut -f2 -d-)
4141
OS_VER=$(echo ${image}|cut -f3 -d-)

build/docker/pgdd-ubuntu-focal/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ ARG DEBIAN_FRONTEND=noninteractive
1414
RUN apt-get update && apt-get upgrade -y && apt-get install -y make wget curl gnupg git
1515
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" >> /etc/apt/sources.list.d/pgdg.list \
1616
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
17-
RUN apt-get update && apt-get upgrade -y
18-
RUN apt-get install -y \
17+
RUN apt-get update && apt-get upgrade -y --fix-missing
18+
RUN apt-get install -y --fix-missing \
1919
clang-12 llvm-12 clang libz-dev strace pkg-config \
2020
libxml2 libxml2-dev libreadline8 libreadline-gplv2-dev \
2121
flex bison libbison-dev build-essential \

build/package.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ find ./ -name "*.so" -exec strip {} \;
5858
#
5959
OUTNAME=pgdd_${VERSION}_${OSNAME}_${PG_VER}_amd64
6060
if [ "${PKG_FORMAT}" == "deb" ]; then
61+
rm ${OUTNAME}.deb || true
62+
6163
fpm \
6264
-s dir \
6365
-t deb \

0 commit comments

Comments
 (0)