summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2018-03-30 23:28:48 +0100
committerThomas Preud'homme <robotux@celest.fr>2018-03-31 20:26:13 +0100
commit4a600310ccddd29ac36e2e2963ce1ceefdea3ac3 (patch)
tree808267a47e19269d50fd8595a608f6d63f9a0828 /debian/rules
parent1809dbc9980dc89d02d126bef3d6bbec8dd9abc5 (diff)
Ensure rcc produce reproducible output
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index da20b2d..03e5852 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,12 @@ override_dh_auto_configure:
lrelease ultracopier.pro
lrelease plugins/CopyEngine/Ultracopier/CopyEngine.pro
lrelease plugins/Themes/Oxygen/interface.pro
+ # Ensure QM file timestamps are stable over time because they get
+ # picked up by rcc in files generated from QRC resource file when they
+ # themselves refer to a QM file (ie. qrc_ultracopier-resources
+ # generated from resources/ultracopier-resources.qrc gets the timestamp
+ # from resources/Languages/en/translation.qm
+ find -name \*.qm -exec touch -d@0 {} \;
dh_auto_configure --buildsystem=qmake -- \
QMAKE_CXXFLAGS_RELEASE="$(CXXFLAGS) $(CPPFLAGS)" \
QMAKE_CXXFLAGS_DEBUG="$(CXXFLAGS) $(CPPFLAGS)" \