coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils 8.30 "bootstap"


From: Bernhard Voelker
Subject: Re: coreutils 8.30 "bootstap"
Date: Wed, 12 Dec 2018 23:01:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

[re-adding the list: there's no reason to stay in private communication,
 so I'm moving the discussion to the mailing list again.]

On 12/7/18 8:22 AM, Gabor Z. Papp wrote:> Hello Bernhard!
>
> Will these patches applied to the next release of coreutils?

Hello Gabor,

sorry for the late reply and for reminding me.

In general, I'd like to reproduce it myself - AFAIR you cross-compiled on x86_64
for i586, right?  What's your ./configure line?

Another nits below:

> Greetings, Gabor
>
> * "Gabor Z. Papp" <address@hidden>:
>
> | Attaching the new version of patches. Please submit.
> | diff -urN archive/8.30/configure.ac src/8.30/configure.ac
> | --- archive/8.30/configure.ac       2018-05-14 06:20:24.000000000 +0200
> | +++ src/8.30/configure.ac   2018-08-17 12:38:31.289457659 +0200
> | @@ -617,7 +617,15 @@
> |
> |  AC_SUBST([built_programs], [$optional_bin_progs])
> |
> | -AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes])
> | +AC_MSG_CHECKING([whether built binary fails to run on this host 
> (cross-compiling?)])
> | +AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
> | +[cu_cross_compiling=no],
> | +[# Assume we are cross-compiling if this trivial program fails.
> | +cu_cross_compiling=yes],
> | +[cu_cross_compiling=yes])
> | +AM_CONDITIONAL([CROSS_COMPILING],
> | +  [test "$cross_compiling" = yes || test "$cu_cross_compiling" = yes])
> | +AC_MSG_RESULT([$cu_cross_compiling])
> |
> |  
> ############################################################################
> |
> | diff -urN archive/8.30/man/local.mk src/8.30/man/local.mk
> | --- archive/8.30/man/local.mk       2018-05-14 06:20:24.000000000 +0200
> | +++ src/8.30/man/local.mk   2018-08-20 12:04:32.008426334 +0200
> | @@ -181,6 +181,11 @@
> |          test) prog='['; argv='[';;                                 \
> |             *) prog=$$name; argv=$$prog;;                           \
> |     esac;                                                           \
> | +## Double-check whether the built binaries are executable on the build host
> | +## as the above CROSS_COMPILING condition might have been wrong in some 
> cases.
> | +   run_help2man="$(run_help2man)";                                 \
> | +   $(abs_top_builddir)/src/df$(EXEEXT) 2>/dev/null               \
> | +   || run_help2man="$(srcdir)/man/dummy-man";                    \
> |  ## Note the use of $$t/$*, rather than just '$*' as in other packages.
> |  ## That is necessary to avoid failures for programs that are also shell
> |  ## built-in functions like echo, false, printf, pwd.

df is maybe not a good choice as it might fail with some remote file system
not being available (e.g. NFS hang).  Therefore, I'd prefer to use something
more innocent ... maybe like printf?  While at it, the standard output of
that command should be redirected to /dev/null as well.  And the indentation
of '|| run_help2man="..."' is odd.
Finally, the patch will need a nice commit message, and - as the change is
visible to the (build) user - warrants a NEWS entry.

I would all do this for you, but as mentioned above I really need to reproduce
the old and new behavior here.

Have a nice day,
Berny




reply via email to

[Prev in Thread] Current Thread [Next in Thread]