Subject: Re: bug#6246: 24.0.50; Circular dependencies in lib-src/Makefile.in

From: Jan Djärv <[email-masked]>
Date: Sat, 22 May 2010 15:26:44 +0200

Eli Zaretskii skrev 2010-05-22 14.53:
>> Date: Sat, 22 May 2010 14:05:09 +0200
>> From: Jan Djärv<[email-masked]>
>> CC: [email-masked]
>>
>> I have checked in a fix.
>
> Thanks.  But the fix uses "cp -p", which I think is not portable.

No, cp -p was there before, those lines are unchanged:

bzr diff -r100411 Makefile.in
=== modified file 'lib-src/Makefile.in'
--- lib-src/Makefile.in	2010-05-15 01:05:11 +0000
+++ lib-src/Makefile.in	2010-05-22 13:12:23 +0000
...
-rcs2log: $(srcdir)/rcs2log
+stamp-rcs2log: $(srcdir)/rcs2log
  	-cp -p $(srcdir)/rcs2log rcs2log
+	touch $@

-rcs-checkin: $(srcdir)/rcs-checkin
+stamp-rcs-checkin: $(srcdir)/rcs-checkin
  	-cp -p $(srcdir)/rcs-checkin rcs-checkin
+	touch $@

-grep-changelog: $(srcdir)/grep-changelog
+stamp-grep-changelog: $(srcdir)/grep-changelog
  	-cp -p $(srcdir)/grep-changelog grep-changelog
+	touch $@

-vcdiff: $(srcdir)/vcdiff
+stamp-vcdiff: $(srcdir)/vcdiff
  	-cp -p $(srcdir)/vcdiff vcdiff
+	touch $@

cp -p was introduced in 2003:

2003-01-20  Richard M. Stallman  <[email-masked]>

         * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff):
         New targets.

	Jan D.

	Jan D.