summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2015-11-12 13:25:40 +0100
committerJan Synacek <jsynacek@redhat.com>2015-11-12 13:28:20 +0100
commit0a1694c958522245f7318abb14158f532c2df59a (patch)
tree63c1d8c7a480c4a6a048b5a485e4cf05067fb7b6
parentd5dab05685591484a04bac25233db27a15b0b5a9 (diff)
downloadguile-0a1694c958522245f7318abb14158f532c2df59a.tar.gz
guile-0a1694c958522245f7318abb14158f532c2df59a.tar.xz
guile-0a1694c958522245f7318abb14158f532c2df59a.zip
unify mtime on *.scm and *.go files (#1208760)
Resolves: #1208760
-rw-r--r--guile.spec16
1 files changed, 15 insertions, 1 deletions
diff --git a/guile.spec b/guile.spec
index 895f6c2..600b98e 100644
--- a/guile.spec
+++ b/guile.spec
@@ -2,7 +2,7 @@ Summary: A GNU implementation of Scheme for application extensibility
Name: guile
%define mver 2.0
Version: 2.0.11
-Release: 6%{?dist}
+Release: 7%{?dist}
Epoch: 5
Source: ftp://ftp.gnu.org/pub/gnu/guile/guile-%{version}.tar.xz
URL: http://www.gnu.org/software/guile/
@@ -78,6 +78,17 @@ touch $RPM_BUILD_ROOT%{_datadir}/guile/site/%{mver}/slibcat
ln -s guile $RPM_BUILD_ROOT%{_bindir}/guile2
ln -s guile-tools $RPM_BUILD_ROOT%{_bindir}/guile2-tools
+# Adjust mtimes so they are all identical on all architectures.
+# When guile.x86_64 and guile.i686 are installed at the same time on an x86_64 system,
+# the *.scm files' timestamps change, as they normally reside in /usr/share/guile/.
+# Their corresponding compiled *.go file go to /usr/lib64/, or /usr/lib/, depending on the arch.
+# The mismatch in timestamps between *.scm and *.go files makes guile to compile itself
+# everytime it's run. The following code adjusts the files so that their timestamps are the same
+# for every file, but unique between builds.
+# See https://bugzilla.redhat.com/show_bug.cgi?id=1208760.
+find $RPM_BUILD_ROOT%{_datadir} -name '*.scm' -exec touch -r "%{_specdir}/guile.spec" '{}' \;
+find $RPM_BUILD_ROOT%{_libdir} -name '*.go' -exec touch -r "%{_specdir}/guile.spec" '{}' \;
+
%check
make %{?_smp_mflags} check
@@ -168,6 +179,9 @@ fi
%{_includedir}/guile
%changelog
+* Thu Nov 12 2015 Jan Synáček <jsynacek@redhat.com> - 5:2.0.11-7
+- unify mtime on *.scm and *.go files (#1208760)
+
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5:2.0.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild