[Debian-astro-commits] [wcslib] 02/03: Explicitely add timestamps for `ar r` The `ar` program distributed with binutils does not include the time stamp of the object files by default. This causes several recompilations of the library. Since the time stamp is removed anyway by dh_strip_nondeterminism, we add the time stamp here.

Ole Streicher olebole at moszumanska.debian.org
Mon Jun 20 15:22:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository wcslib.

commit 20904a94e338d35fc356bfead5b91b675ff2d199
Author: Ole Streicher <olebole at debian.org>
Date:   Mon Jun 20 17:08:49 2016 +0200

    Explicitely add timestamps for `ar r`
    The `ar` program distributed with binutils does not include the time stamp
    of the object files by default. This causes several recompilations of the
    library. Since the time stamp is removed anyway by dh_strip_nondeterminism,
    we add the time stamp here.
---
 debian/patches/fix_ar_timestamp.patch | 88 +++++++++++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 89 insertions(+)

diff --git a/debian/patches/fix_ar_timestamp.patch b/debian/patches/fix_ar_timestamp.patch
new file mode 100644
index 0000000..ba6618f
--- /dev/null
+++ b/debian/patches/fix_ar_timestamp.patch
@@ -0,0 +1,88 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Explicitely add timestamps for `ar r`
+ The `ar` program distributed with binutils does not include the time stamp
+ of the object files by default. This causes several recompilations of the
+ library. Since the time stamp is removed anyway by dh_strip_nondeterminism,
+ we add the time stamp here.
+--- a/pgsbox/GNUmakefile
++++ b/pgsbox/GNUmakefile
+@@ -64,25 +64,25 @@
+ $(PGSBOXLIB)(%.o) : %.f
+ 	-@ echo ''
+ 	   $(FC) -I../Fortran $(FFLAGS) -c $<
+-	   $(AR) r $(PGSBOXLIB) $%
++	   $(AR) Ur $(PGSBOXLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(PGSBOXLIB)(%.o) : %.c
+ 	-@ echo ''
+ 	   $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+-	   $(AR) r $(PGSBOXLIB) $%
++	   $(AR) Ur $(PGSBOXLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(PICLIB)(%.o) : %.f
+ 	-@ echo ''
+ 	   $(FC) -I../Fortran $(FFLAGS) $(SHRFLAGS) -c $<
+-	   $(AR) r $(PICLIB) $%
++	   $(AR) Ur $(PICLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(PICLIB)(%.o) : %.c
+ 	-@ echo ''
+ 	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $<
+-	   $(AR) r $(PICLIB) $%
++	   $(AR) Ur $(PICLIB) $%
+ 	-@ $(RM) $%
+ 
+ %.i : %.c
+--- a/Fortran/GNUmakefile
++++ b/Fortran/GNUmakefile
+@@ -106,25 +106,25 @@
+ $(WCSLIB)(%.o) : %.c
+ 	-@ echo ''
+ 	   $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+-	   $(AR) r $(WCSLIB) $%
++	   $(AR) Ur $(WCSLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(WCSLIB)(%.o) : %.f
+ 	-@ echo ''
+ 	   $(FC) $(FFLAGS) -c $<
+-	   $(AR) r $(WCSLIB) $%
++	   $(AR) Ur $(WCSLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(PICLIB)(%.o) : %.c
+ 	-@ echo ''
+ 	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $<
+-	   $(AR) r $(PICLIB) $%
++	   $(AR) Ur $(PICLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(PICLIB)(%.o) : %.f
+ 	-@ echo ''
+ 	   $(FC) $(FFLAGS) $(SHRFLAGS) -c $<
+-	   $(AR) r $(PICLIB) $%
++	   $(AR) Ur $(PICLIB) $%
+ 	-@ $(RM) $%
+ 
+ %.i : %.c
+--- a/C/GNUmakefile
++++ b/C/GNUmakefile
+@@ -124,13 +124,13 @@
+ $(WCSLIB)(%.o) : %.c
+ 	-@ echo ''
+ 	   $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+-	   $(AR) r $(WCSLIB) $%
++	   $(AR) Ur $(WCSLIB) $%
+ 	-@ $(RM) $%
+ 
+ $(PICLIB)(%.o) : %.c
+ 	-@ echo ''
+ 	   $(CC) $(CPPFLAGS) $(CFLAGS) $(SHRFLAGS) -c $<
+-	   $(AR) r $(PICLIB) $%
++	   $(AR) Ur $(PICLIB) $%
+ 	-@ $(RM) $%
+ 
+ %.i : %.c
diff --git a/debian/patches/series b/debian/patches/series
index 8840233..72bbb72 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 dynlink.patch
+fix_ar_timestamp.patch
 increase_tspx_test_tol.patch
 disable_Ftspx_test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/wcslib.git



More information about the Debian-astro-commits mailing list