Subject: bug#26044: coreutils-8.27 fails to build

From: Paul Eggert <[email-masked]>
Date: Thu, 9 Mar 2017 23:33:06 -0800

Pádraig Brady wrote:

> Drats. It looks like the coreutils source repo will need something like:
>
> diff --git a/bootstrap.conf b/bootstrap.conf
> index 7def1f9..30ce621 100644
> --- a/bootstrap.conf
> +++ b/bootstrap.conf
> @@ -202,6 +202,7 @@ gnulib_modules="
>    regex
>    remove
>    rename
> +  renameat
>    rmdir
>    root-dev-ino
>    rpmatch

Yes, that looks like the right fix. Sorry about that.

>> diff src/force-link.c src/force-link.c.OEM
>> 86,93d85
>> < /* see: https://www.freebsd.org/cgi/man.cgi?query=rename&sektion=2  */
>> < static int
>> < renameat(int fromfd,const char *from,int tofd,const char *to)
>> < {
>> < 	return rename(from,to);
>> < }
>
> I've not analysed whether that will work (in all cases).

It should be an adequate workaround for coreutils. I'd rather fix it the right 
way, though, as the module is intended for more-general use.