#1150609 numix-gtk-theme: FTBFS randomly because of a race condition in the Makefile

#1150609#5
Date:
2026-10-11 11:02:14 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

The failure happens randomly, approximately 50% of the time on machines with 2 CPUs.

Full build log is available here:

https://people.debian.org/~sanvila/build-logs/202610/

The problem is a race condition in the Makefile. Target "all" depends
on both "clean" and "gresource", like this:

all: clean gresource

but this does not specify any order, so they can run in parallel, which makes
"clean things" to be run at the same time as "build and/or install things".

There is not, in fact, any need to run the clean target here. Debian packages
already run the clean target before starting the build.

The attached patch might fix this, it also uses mkdir -p so that creating
directories is idempotent.

Thanks.
--------------------------------------------------------------------------------
[...]
    dh_auto_install --destdir=debian/numix-gtk-theme/
	make -j2 install DESTDIR=/<<BUILDDIR>>/numix-gtk-theme-2.6.7\+git20210608.ad4b345/debian/numix-gtk-theme AM_UPDATE_INFO_DIR=no INSTALL="install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf src/gtk-3.0/dist
mkdir src/gtk-3.0/dist
mkdir: cannot create directory ‘src/gtk-3.0/dist’: File exists
make[1]: *** [Makefile:17: css] Error 1
make[1]: *** Waiting for unfinished jobs....
rm -f src/gtk-3.0/gtk.gresource
rm -rf src/gtk-3.20/dist
rm -f src/gtk-3.20/gtk.gresource
rm -rf /dist
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_install: error: make -j2 install DESTDIR=/<<BUILDDIR>>/numix-gtk-theme-2.6.7\+git20210608.ad4b345/debian/numix-gtk-theme AM_UPDATE_INFO_DIR=no INSTALL="install --strip-program=true" returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1150609#10
Date:
2026-10-12 19:19:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
numix-gtk-theme, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150609@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
James Lu <jlu@debian.org> (supplier of updated numix-gtk-theme package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 12 Oct 2026 11:58:02 -0700
Source: numix-gtk-theme
Architecture: source
Version: 2.6.7+git20210608.ad4b345-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Desktop Theme Team <numix-gtk-theme@packages.debian.org>
Changed-By: James Lu <jlu@debian.org>
Closes: 1150609
Changes:
 numix-gtk-theme (2.6.7+git20210608.ad4b345-2) unstable; urgency=medium
 .
   * Team upload.
   * Add patch to fix race condition in make install. (Closes: #1150609)
     Thanks to Santiago Vila for the patch
   * d/patches: remove obsolete note about Ubuntu patch series
Checksums-Sha1:
 174252b3913351c953d5668ab3b9f2698c598ea9 2336 numix-gtk-theme_2.6.7+git20210608.ad4b345-2.dsc
 fd7ce6f0baf26b2fec38b7b5f56d2ccb1ee23898 3856 numix-gtk-theme_2.6.7+git20210608.ad4b345-2.debian.tar.xz
 37d18ed9be8d0233e33bed8bae770721c92f0fc8 9701 numix-gtk-theme_2.6.7+git20210608.ad4b345-2_source.buildinfo
Checksums-Sha256:
 9d603fd65bf6594fa5e2a7810423b768a3c0b797500dc0d14793d5eb9627eecd 2336 numix-gtk-theme_2.6.7+git20210608.ad4b345-2.dsc
 52e116a6f48b902f7e10de1396f7cf6e191205542eea896f215ada20895a9616 3856 numix-gtk-theme_2.6.7+git20210608.ad4b345-2.debian.tar.xz
 aa53dc02bcef932c6b1873d45363552c7e0551192b05b2074eadb8eddfc6241d 9701 numix-gtk-theme_2.6.7+git20210608.ad4b345-2_source.buildinfo
Files:
 80f2eed833937381e7df06cd095d330d 2336 x11 optional numix-gtk-theme_2.6.7+git20210608.ad4b345-2.dsc
 929fde227e56ffce8b2ee1cffe1411a1 3856 x11 optional numix-gtk-theme_2.6.7+git20210608.ad4b345-2.debian.tar.xz
 cec1f1a7db19aa636fd8aa653c854067 9701 x11 optional numix-gtk-theme_2.6.7+git20210608.ad4b345-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEE1dVostNKsyozeUTSLsP2DeccC50FAmrNL1wPHGpsdUBkZWJp
YW4ub3JnAAoJEC7D9g3nHAud5w4P/ij30mqDY1V+fIJ19AjcSG4DksLGdxBJmW7Y
sOQbiNHIIdUsdq7Z38fnrl4pESLz8H0kbxGJ0ib3rbWh4Fc1b9mgKZKu60jsCBIg
nWj4ZsCjrlhCfZyLPvtLIolNvaU0RIvYUhTsZ7iTh3WLPbn7Eodqym/bQZMhCzbO
Frw/JEhjvRagb9sPG9Ru8lB2bPrb13Qvm+EttHocyu2N6sWKabZv1SoisVEhPFad
FdmQYj+PHM1YtvKCdH1HyebWkztm26/gSaQT4qmp3HYRM94kziT75dTXTubJQSxP
5vH+Xuc1BMJn/Ao2Nkxrikwz6pmQSweTIZqVsjiVcZYokIHJHuOmYdGk9ytX5zeN
SDPmwlRCzMi4xJY/bxkvuC1AW+kMTU9zU8/U1DrVMfDSUjN1UqGvY0krzeiA/So2
cPvLsMpTp1YWm4kLRqbosQgq+LJigS4pommB4Tt7hlNaDAsWt2RwHgMlw85bSPB+
HIle14GWMkXnYcvQL5V2FAQTc969uXvK9/zDkDF3GnnfwJXHGn0S9a/r20Fj2jrO
Z+IQNezy3EKRRhw7wTz57SJyjE/88OyurTgKtSnVuNHrApFauQIsV9Iqn35o1Zm1
pJmkH1FLSjjcgkRgTOm8oAerVvUHgWOKjHD7idGfp+h9AXtIlzr9n4E7y2jGVyPY
t/Yfge4F
=73RZ
-----END PGP SIGNATURE-----