coreutils
[Top][All Lists]
Advanced

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

Re: Hack on one of the coreutils programs


From: Pádraig Brady
Subject: Re: Hack on one of the coreutils programs
Date: Sun, 07 Jun 2015 15:01:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 07/06/15 13:17, Tomas Nordin wrote:
> On Sun, May 31, 2015 at 11:00:28PM +0100, Pádraig Brady wrote:
>> On 31/05/15 22:12, Tomas Nordin wrote:
>>>> Off the top of my head:
>>>>
>>>>  git clone --depth=1 git://git.sv.gnu.org/coreutils.git
>>>>  cd coreutils
>>>>  ./bootstrap && ./configure --quiet && make -j$(nproc)
>>>>  git checkout -b my-branch
>>>>  vim src/ls.c
>>>>  make
>>>>  # make install # to install to /usr/local/... by default
>>>>  # (which is adjustable with ./configure options).
> 
> I ran the bootstrap, configure and make one at the time successfully.
> Just wanted to report that after the make step I get one file generated
> that becomes reported as untracked by git:
> 
> $ git status
> # On branch study
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #   lib/stddef.h
> nothing added to commit but untracked files present (use "git add" to
> track)
> 
> Is that supposed to happen?

Well spotted. We probably should add something like this
as a syntax check:

  { sed -n '/^\/lib\/.*\.h$/{p;p}' .gitignore;
    find lib -name '*.in*' ! -name '*~' ! -name 'sys_*' |
      sed 's|^|/|; s|_\(.*in\.h\)|/\1|; s/\.in//'; } |
  sort | uniq -u

Which currently suggests adding these to .gitignore:

/lib/arpa/inet.h
/lib/errno.h
/lib/float.h
/lib/fnmatch.h
/lib/netinet/in.h
/lib/pthread.h
/lib/sched.h
/lib/se-context.h
/lib/se-selinux.h
/lib/stdarg.h
/lib/stdbool.h
/lib/stddef.h
/lib/stdint.h

cheers,
Pádraig.



reply via email to

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