[patch] build: random timestamps have multilib conflicts (PR other/43480)

Jakub Jelinek jakub@redhat.com
Mon Mar 22 16:46:00 GMT 2010


On Mon, Mar 22, 2010 at 05:27:14PM +0100, Jan Kratochvil wrote:
> the problem I am trying to solve is:
> 
> Transaction Check Error:
>   file /usr/share/man/man1/gcj-dbtool.1.gz conflicts between attempted installs
> of libgcj-4.4.3-8.fc13.x86_64 and libgcj-4.4.3-8.fc13.i686
>   file /usr/share/man/man1/gij.1.gz conflicts between attempted installs of
> libgcj-4.4.3-8.fc13.x86_64 and libgcj-4.4.3-8.fc13.i686
>   file /usr/share/man/man1/grmic.1.gz conflicts between attempted installs of
> libgcj-4.4.3-8.fc13.x86_64 and libgcj-4.4.3-8.fc13.i686
>   file /usr/share/man/man1/jv-convert.1.gz conflicts between attempted installs
> of libgcj-4.4.3-8.fc13.x86_64 and libgcj-4.4.3-8.fc13.i686
> 
> It is due to:

I've been using:

2007-10-21  Jakub Jelinek  <jakub@redhat.com>

	* doc/Makefile.am (POD2MAN): Set date from cp-tools.texinfo
	timestamp rather than from current date.
	* doc/Makefile.in: Regenerated.

--- libjava/classpath/doc/Makefile.am.jj	2007-12-07 17:55:00.000000000 +0100
+++ libjava/classpath/doc/Makefile.am	2007-12-07 18:55:28.000000000 +0100
@@ -31,7 +31,7 @@ TOOLS_MANFILES = \
 	gtnameserv.1 \
 	gjdoc.1
 
-POD2MAN = pod2man --center="GNU" --release="$(VERSION)"
+POD2MAN = pod2man --center="GNU" --release="$(VERSION)" --date="$(shell ls --time-style=+%F -l $(srcdir)/cp-tools.texinfo | awk '{print $$6}')"
 TEXI2POD = perl $(srcdir)/texi2pod.pl
 STAMP = echo timestamp >
 
--- libjava/classpath/doc/Makefile.in.jj	2007-12-07 17:55:00.000000000 +0100
+++ libjava/classpath/doc/Makefile.in	2007-12-07 18:55:43.000000000 +0100
@@ -382,7 +382,7 @@ TOOLS_MANFILES = \
 	gtnameserv.1 \
 	gjdoc.1
 
-POD2MAN = pod2man --center="GNU" --release="$(VERSION)"
+POD2MAN = pod2man --center="GNU" --release="$(VERSION)" --date="$(shell ls --time-style=+%F -l $(srcdir)/cp-tools.texinfo | awk '{print $$6}')"
 TEXI2POD = perl $(srcdir)/texi2pod.pl
 STAMP = echo timestamp >
 @GENINSRC_FALSE@STAMP_GENINSRC = 

for this, but it didn't cover gcc/Makefile.in generated man pages.
ls --time-style isn't portable though :(.

	Jakub



More information about the Gcc-patches mailing list