Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Kamil Rytarowski <n54@gmx.com>,
	gdb@sourceware.org, Sergio Durigan Junior <sergiodj@sergiodj.net>
Subject: Re: gettext.m4 update
Date: Wed, 13 Sep 2017 13:15:00 -0000	[thread overview]
Message-ID: <9c14709c-0f65-b2c4-9b7e-a1cac8346f98@redhat.com> (raw)
In-Reply-To: <fef2835a-427f-8217-a357-9397410d96fc@gmx.com>


On 09/13/2017 12:42 PM, Kamil Rytarowski wrote:
> On 11.09.2017 15:36, Kamil Rytarowski wrote:
>> Hello,
>>
>> The current gettext.m4 bundled into GDB is too old for the NetBSD case.
>>
>> We mark GDB as BROKEN_GETTEXT_DETECTION and comment that it fails to add
>> -lintl to the linker command line.
>>
>> Could we please update it to a newer version?
>>
>> gettext.m4 is located in https://ftp.gnu.org/pub/gnu/gettext/
>>
> 
> I know what breaks the NetBSD buildbot [1].
> 
> The following rule (intl/Makefile.in) [2] breaks:
> 
> .c.o:
> 	$(COMPILE) $<
> 
> .y.c:
> 	$(YACC) $(YFLAGS) --output $@ $<
> 	rm -f $*.h
> 
> This means that if plural.y is newer than plural.c it will be regenerated.
> 
> There is required Bison < 3.0 (the last one used for regeneration was
> 1.35), which is already too old to keep it around.
> 
> Git does not track mtime in files, and this enforces regeneration of
> plural.c, at least in random checkouts. The NetBSD buildbot was
> unfortunate to get plural.y newer:
> 
> $ stat -f %Fm ./binutils-gdb-master/intl/plural.c
> 1477324070.931854837
> $ stat -f %Fm ./binutils-gdb-master/intl/plural.y
> 1477324070.931949821
> 
> 
> The cleanest and newfangled solution would be to upgrade to newer
> gettext and enforce regeneration always.
> 
> A kludge would be to insert touch(1) call before execution of intl/Makefile.
> 
> I don't know about any good solutions in the middle.

This date issue is likely to be an issue with any generated
file checked in, all over the tree.  Usually you won't notice
if you have the right tools that regen succeeds.

Maybe the bot should be doing a recursive touch(1) of all files
after checkout, forcing the same mtime on all checked-out files,
with 'touch -d ..' or 'touch -p ..' or
'touch -r .git/FETCH_HEAD' or something like that.

Thanks,
Pedro Alves


  reply	other threads:[~2017-09-13 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 13:34 Kamil Rytarowski
2017-09-13 11:53 ` Kamil Rytarowski
2017-09-13 13:15   ` Pedro Alves [this message]
2017-09-13 13:21     ` Andreas Schwab
2017-09-13 13:37       ` Kamil Rytarowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9c14709c-0f65-b2c4-9b7e-a1cac8346f98@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=n54@gmx.com \
    --cc=sergiodj@sergiodj.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox