On 2023-07-21 13:08:11 -0400, Boyuan Yang wrote:
> BTW: Is grep 3.11-1 using Debian-packaged gnulib anywere? I did not
> see a build-dependency in
> https://sources.debian.org/src/grep/3.11-1/debian/control/ .
> 
> * If grep is indeed using it, please include the build-dep explicitly.
> 
> * If not, your current grep issue is unrelated to Debian-packaged gnulib and
> you will need further debugging.

Indeed, it's a bundled gnulib. I was surprised because there is
no "gnulib" directory. Actually these are just files under the m4
directory. The bug is in "m4/dirfd.m4". I can see

  if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
    HAVE_DIRFD=0
  else
    HAVE_DIRFD=1
    dnl Replace only if the system declares dirfd already.
    if test $ac_cv_have_decl_dirfd = yes; then
      REPLACE_DIRFD=1
    fi

where the last 4 lines

    dnl Replace only if the system declares dirfd already.
    if test $ac_cv_have_decl_dirfd = yes; then
      REPLACE_DIRFD=1
    fi

need to be removed to match the upstream gnulib fix.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to