From: Modestas Vainius Date: Fri, 1 May 2015 19:35:39 +0000 (+0000) Subject: set sane timestamps when generating header symlinks for non-existing headers X-Git-Tag: archive/raspbian/4%4.8.6+git64-g5dc8b2b+dfsg-3+deb8u2+rpi1~1^2~38 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c30f17852eea8993b13dd4040a3d81a0a533d85a;p=qt4-x11.git set sane timestamps when generating header symlinks for non-existing headers This is particularly important for QtCore/QtConfig symlink because typically qconfig.h does not exist when syncqt is run by ./configure. So instead of assigning a modification timestamp equal to the epoch (00:00 January 1, 1970 GMT.) for the symlink, just use current time(). Gbp-Pq: Name 02_syncqt_sane_timestamp_for_nonexisting_headers.diff --- diff --git a/bin/syncqt b/bin/syncqt index b13ee267c..c96203217 100755 --- a/bin/syncqt +++ b/bin/syncqt @@ -886,7 +886,7 @@ foreach my $lib (@modules_to_sync) { print "SYMBOL: $_\n"; } } else { - my $ts = (stat($iheader))[9]; + my $ts = (-e $iheader) ? (stat($iheader))[9] : time; #find out all the places it goes.. my @headers; if ($public_header) {