Source: vim-youcompleteme
Version: 0+20240827+gitb6e8c64+ds-7
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
vim-youcompleteme could not be built reproducibly.
This is because the testsuite changes the modification time of the
/usr/share/vim-youcompleteme/python/ycm/client/ directory, so if the tests
are skipped via nocheck, then then package contents differ.
Patch attached that always sets this to SOURCE_DATE_EPOCH to avoid
this issue.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-04-10 12:19:39.161334414 -0400
--- b/debian/rules 2026-04-10 12:23:06.069796473 -0400
@@ -12,6 +12,7 @@
# No need to install tests
$(RM) -rv
$(DEB_INSTALL_DIR)/usr/share/vim-youcompleteme/python/ycm/tests \
$(DEB_INSTALL_DIR)/usr/share/vim-youcompleteme/python/ycm/test_utils.py
+ touch -d@$(SOURCE_DATE_EPOCH)
$(DEB_INSTALL_DIR)/usr/share/vim-youcompleteme/python/ycm/client/
execute_before_dh_clean:
py3clean $(CURDIR)/python