Skip to content

Commit f3fc4d5

Browse files
Clemens Buchacherthresheek
authored andcommitted
downgrade to gnupg1
The build sometimes fails to remove the `S.gpg-agent.extra` unix domain socket when it deletes the temporary GNUPGHOME directory after running gpg commands. rm: can't remove '/tmp/tmp.hBDCKF/S.gpg-agent.extra': No such file or directory The previous gpg --recv-keys command starts the gpg-agent. The gpg-agent connects to the following sockets and does not terminate on its own. / # netstat -x -a -p Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 8627378 17/dirmngr /root/.gnupg/S.dirmngr unix 2 [ ACC ] STREAM LISTENING 8625135 21/gpg-agent /root/.gnupg/S.gpg-agent unix 2 [ ACC ] STREAM LISTENING 8625136 21/gpg-agent /root/.gnupg/S.gpg-agent.extra unix 2 [ ACC ] STREAM LISTENING 8625137 21/gpg-agent /root/.gnupg/S.gpg-agent.browser unix 2 [ ACC ] STREAM LISTENING 8625138 21/gpg-agent /root/.gnupg/S.gpg-agent.ssh If one of the sockets is removed, then the agent terminates and removes the other sockets as well. This causes a race condition between `rm -rf $GNUPGHOME` and gpg-agent. If gpg-agent manages to remove the sockets first, then `rm` fails while trying to remove the same socket. Move to gnupg1 in alpine just like we do for stretch. Gnupg version 1 does not launch a GPG agent. It is not possible to disable gpg-agent in gnupg version 2. (cherry picked from commit 684e1c6) Signed-off-by: Konstantin Pavlov <[email protected]>
1 parent 3b108b5 commit f3fc4d5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

mainline/alpine-perl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
6262
zlib-dev \
6363
linux-headers \
6464
curl \
65-
gnupg \
65+
gnupg1 \
6666
libxslt-dev \
6767
gd-dev \
6868
geoip-dev \

mainline/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
6161
zlib-dev \
6262
linux-headers \
6363
curl \
64-
gnupg \
64+
gnupg1 \
6565
libxslt-dev \
6666
gd-dev \
6767
geoip-dev \

stable/alpine-perl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
6262
zlib-dev \
6363
linux-headers \
6464
curl \
65-
gnupg \
65+
gnupg1 \
6666
libxslt-dev \
6767
gd-dev \
6868
geoip-dev \

stable/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
6161
zlib-dev \
6262
linux-headers \
6363
curl \
64-
gnupg \
64+
gnupg1 \
6565
libxslt-dev \
6666
gd-dev \
6767
geoip-dev \

0 commit comments

Comments
 (0)