#993762 dh-exec - Uses racy debian/tmp

Package:
dh-exec
Source:
dh-exec
Description:
Scripts to help with executable debhelper files
Submitter:
Bastian Blank
Date:
2021-09-06 08:09:06 UTC
Severity:
important
#993762#5
Date:
2021-09-06 07:58:09 UTC
From:
To:
Package: dh-exec
Version: 0.23.4
Severity: important

dh-exec and dh_prep are racy together in it's usage of the global source
directory "debian/tmp".

dh-exec-install-rename uses "debian/tmp" to create it's files.  But at
the same time dh_prep also removes this global directory.  So every
concurrent use of dh-exec leads to race conditions.

This leads to errors like this[1]:
| Error in tempdir() using debian/tmp/dh-exec.XXXXXXXX: Parent directory (debian/tmp) does not exist at /usr/share/dh-exec/dh-exec-install-rename line 18.
| BEGIN failed--compilation aborted at
| /usr/share/dh-exec/dh-exec-install-rename line 25.

Bastian

[1]: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64el&ver=5.14-1%7Eexp2&stamp=1630872170&raw=1