File tree 18 files changed +62
-11
lines changed 18 files changed +62
-11
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ RUN set -ex \
48
48
&& apk add --no-cache --virtual .build-deps \
49
49
bison \
50
50
coreutils \
51
+ dpkg-dev dpkg \
51
52
flex \
52
53
gcc \
53
54
# krb5-dev \
@@ -79,7 +80,12 @@ RUN set -ex \
79
80
&& rm uuid.tar.gz \
80
81
&& ( \
81
82
cd /usr/src/ossp-uuid \
83
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
84
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
85
+ && wget -O config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
86
+ && wget -O config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
82
87
&& ./configure \
88
+ --build="$gnuArch" \
83
89
--prefix=/usr/local \
84
90
&& make -j "$(nproc)" \
85
91
&& make install \
@@ -92,9 +98,14 @@ RUN set -ex \
92
98
&& awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\" /tmp\" " { $3 = "\" /var/run/postgresql\" "; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new \
93
99
&& grep '/var/run/postgresql' src/include/pg_config_manual.h.new \
94
100
&& mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h \
101
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
102
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
103
+ && wget -O config/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
104
+ && wget -O config/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
95
105
# configure options taken from:
96
106
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
97
107
&& ./configure \
108
+ --build="$gnuArch" \
98
109
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
99
110
# --enable-nls \
100
111
--enable-integer-datetimes \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ RUN set -ex \
48
48
&& apk add --no-cache --virtual .build-deps \
49
49
bison \
50
50
coreutils \
51
+ dpkg-dev dpkg \
51
52
flex \
52
53
gcc \
53
54
# krb5-dev \
@@ -79,7 +80,12 @@ RUN set -ex \
79
80
&& rm uuid.tar.gz \
80
81
&& ( \
81
82
cd /usr/src/ossp-uuid \
83
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
84
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
85
+ && wget -O config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
86
+ && wget -O config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
82
87
&& ./configure \
88
+ --build="$gnuArch" \
83
89
--prefix=/usr/local \
84
90
&& make -j "$(nproc)" \
85
91
&& make install \
@@ -92,9 +98,14 @@ RUN set -ex \
92
98
&& awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\" /tmp\" " { $3 = "\" /var/run/postgresql\" "; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new \
93
99
&& grep '/var/run/postgresql' src/include/pg_config_manual.h.new \
94
100
&& mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h \
101
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
102
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
103
+ && wget -O config/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
104
+ && wget -O config/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
95
105
# configure options taken from:
96
106
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
97
107
&& ./configure \
108
+ --build="$gnuArch" \
98
109
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
99
110
# --enable-nls \
100
111
--enable-integer-datetimes \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ RUN set -ex \
45
45
&& apk add --no-cache --virtual .build-deps \
46
46
bison \
47
47
coreutils \
48
+ dpkg-dev dpkg \
48
49
flex \
49
50
gcc \
50
51
# krb5-dev \
@@ -69,9 +70,14 @@ RUN set -ex \
69
70
&& awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\" /tmp\" " { $3 = "\" /var/run/postgresql\" "; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new \
70
71
&& grep '/var/run/postgresql' src/include/pg_config_manual.h.new \
71
72
&& mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h \
73
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
74
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
75
+ && wget -O config/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
76
+ && wget -O config/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
72
77
# configure options taken from:
73
78
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
74
79
&& ./configure \
80
+ --build="$gnuArch" \
75
81
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
76
82
# --enable-nls \
77
83
--enable-integer-datetimes \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ RUN set -ex \
45
45
&& apk add --no-cache --virtual .build-deps \
46
46
bison \
47
47
coreutils \
48
+ dpkg-dev dpkg \
48
49
flex \
49
50
gcc \
50
51
# krb5-dev \
@@ -69,9 +70,14 @@ RUN set -ex \
69
70
&& awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\" /tmp\" " { $3 = "\" /var/run/postgresql\" "; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new \
70
71
&& grep '/var/run/postgresql' src/include/pg_config_manual.h.new \
71
72
&& mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h \
73
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
74
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
75
+ && wget -O config/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
76
+ && wget -O config/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
72
77
# configure options taken from:
73
78
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
74
79
&& ./configure \
80
+ --build="$gnuArch" \
75
81
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
76
82
# --enable-nls \
77
83
--enable-integer-datetimes \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ RUN set -ex \
45
45
&& apk add --no-cache --virtual .build-deps \
46
46
bison \
47
47
coreutils \
48
+ dpkg-dev dpkg \
48
49
flex \
49
50
gcc \
50
51
# krb5-dev \
@@ -69,9 +70,14 @@ RUN set -ex \
69
70
&& awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\" /tmp\" " { $3 = "\" /var/run/postgresql\" "; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new \
70
71
&& grep '/var/run/postgresql' src/include/pg_config_manual.h.new \
71
72
&& mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h \
73
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
74
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
75
+ && wget -O config/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
76
+ && wget -O config/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
72
77
# configure options taken from:
73
78
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
74
79
&& ./configure \
80
+ --build="$gnuArch" \
75
81
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
76
82
# --enable-nls \
77
83
--enable-integer-datetimes \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ RUN set -ex \
46
46
&& apk add --no-cache --virtual .build-deps \
47
47
bison \
48
48
coreutils \
49
+ dpkg-dev dpkg \
49
50
flex \
50
51
gcc \
51
52
# krb5-dev \
@@ -71,9 +72,14 @@ RUN set -ex \
71
72
&& awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\" /tmp\" " { $3 = "\" /var/run/postgresql\" "; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new \
72
73
&& grep '/var/run/postgresql' src/include/pg_config_manual.h.new \
73
74
&& mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h \
75
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
76
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
77
+ && wget -O config/config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
78
+ && wget -O config/config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
74
79
# configure options taken from:
75
80
# https://anonscm.debian.org/cgit/pkg-postgresql/postgresql.git/tree/debian/rules?h=9.5
76
81
&& ./configure \
82
+ --build="$gnuArch" \
77
83
# "/usr/src/postgresql/src/backend/access/common/tupconvert.c:105: undefined reference to `libintl_gettext'"
78
84
# --enable-nls \
79
85
--enable-integer-datetimes \
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if [ "$1" = 'postgres' ]; then
91
91
echo " host all all all $authMethod "
92
92
} >> " $PGDATA /pg_hba.conf"
93
93
94
- # internal start of server in order to allow set-up using psql-client
94
+ # internal start of server in order to allow set-up using psql-client
95
95
# does not listen on external TCP/IP and waits until start finishes
96
96
PGUSER=" ${PGUSER:- postgres} " \
97
97
pg_ctl -D " $PGDATA " \
Original file line number Diff line number Diff line change 11
11
&& rm uuid.tar.gz \
12
12
&& ( \
13
13
cd /usr/src/ossp-uuid \
14
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
15
+ # explicitly update autoconf config.guess and config.sub so they support more arches/libcs
16
+ && wget -O config.guess "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" \
17
+ && wget -O config.sub "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" \
14
18
&& ./configure \
19
+ --build="$gnuArch" \
15
20
--prefix=/usr/local \
16
21
&& make -j "$(nproc)" \
17
22
&& make install \
You can’t perform that action at this time.
0 commit comments