Skip to content

Commit a33fcb6

Browse files
committed
Fix wheezy variants (older "dpkg-architecture", no "--query")
1 parent cd1f11a commit a33fcb6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

2.7/wheezy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& rm python.tar.xz \
3636
\
3737
&& cd /usr/src/python \
38-
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
38+
&& gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" \
3939
&& ./configure \
4040
--build="$gnuArch" \
4141
--enable-shared \

3.3/wheezy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN set -ex \
4141
&& rm python.tar.xz \
4242
\
4343
&& cd /usr/src/python \
44-
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
44+
&& gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" \
4545
&& ./configure \
4646
--build="$gnuArch" \
4747
--enable-loadable-sqlite-extensions \

3.4/wheezy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN set -ex \
4141
&& rm python.tar.xz \
4242
\
4343
&& cd /usr/src/python \
44-
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
44+
&& gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" \
4545
&& ./configure \
4646
--build="$gnuArch" \
4747
--enable-loadable-sqlite-extensions \

update.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ for version in "${versions[@]}"; do
9494
done
9595
if [ -d "$version/wheezy" ]; then
9696
cp "$version/Dockerfile" "$version/wheezy/Dockerfile"
97-
sed -ri 's/:jessie/:wheezy/g' "$version/wheezy/Dockerfile"
97+
# wheezy-only: dpkg-architecture: unknown option `--query'
98+
sed -ri \
99+
-e 's/:jessie/:wheezy/g' \
100+
-e 's/dpkg-architecture --query /dpkg-architecture -q/g' \
101+
"$version/wheezy/Dockerfile"
98102
fi
99103
fi
100104
(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy