From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "21789@debbugs.gnu.org" <21789@debbugs.gnu.org>
Subject: bug#21789: 25.0.50; Can' build Emacs (my first build since GIT migration)
Date: Sat, 31 Oct 2015 14:26:41 +0100 [thread overview]
Message-ID: <DUB109-W64929631B2C6661FCACC16842E0@phx.gbl> (raw)
In-Reply-To: <83lhakyu71.fsf@gnu.org>
Dear Eli,
----------------------------------------
> Date: Fri, 30 Oct 2015 22:31:30 +0200
> From: eliz@gnu.org
> Subject: Re: bug#21789: 25.0.50; Can' build Emacs (my first build since GIT migration)
> To: vincent.b.1@hotmail.fr
> CC: 21789@debbugs.gnu.org
>
>> From: Vincent Belaïche <vincent.b.1@hotmail.fr>
>> CC: "21789@debbugs.gnu.org" <21789@debbugs.gnu.org>
>> Date: Fri, 30 Oct 2015 19:17:28 +0100
>>
>> Thank you for your kind help. After some checking, it proved out that
>> file configure.ac contained CRLF EOL's.
>
> Ah, that's another gotcha: you should configure Git to checkout "as
> is". See the instructions in nt/INSTALL, near its beginning.
>
Well, I must admit that I hadn't read this file, I just used my same
usual script where I had replaced bzr instruction by equivalent git
instruction. And, as a matter of fact, I had:
$ git config --system --get core.autocrlf
-| true
>> After doing some dos2unix on configure.ac, the ./autogen.sh runs
>> normally and I get a configure script --- which I have not yet used.
>
> If you run dos2unix or a similar program on these files, Git will
> think they are modified. So this is a bad idea.
That was just a test, I re-checked-it-out just after doing this.
> Instead, remove the Git repository, re-install Git as instructed in
> nt/INSTALL, then re-clone the repository again.
Ok, I will do that. It surprises me that you need to tamper with the git
system setting that affect all the projects using git, just for the sake
of one project. I am using git also for fmtcount and I have some changes
pending, so I think that I will have to restore the original system
settings when I come back to fmtcount. That is not a very practical
solution.
I am quite novice with git, but just wondering whether it isn't possible
to get the same effect with affecting emacs only by writing in the local
config file (emacs/.git/config) some setting that would supersede the
global and system settings, e.g. you would have
[core]
autocrlf =
in the local config.
Another idea would be to set the eol attribute explicitly in the local
.gitattributes, which should not be too difficult using a wildcard.
VBR,
Vincent Belaïche
next prev parent reply other threads:[~2015-10-31 13:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 11:53 bug#21789: 25.0.50; Can' build Emacs (my first build since GIT migration) Vincent Belaïche
2015-10-30 13:49 ` Eli Zaretskii
2015-10-30 18:17 ` Vincent Belaïche
2015-10-30 20:31 ` Eli Zaretskii
2015-10-31 13:26 ` Vincent Belaïche [this message]
2015-10-31 13:42 ` Eli Zaretskii
2015-10-31 17:57 ` Vincent Belaïche
2015-10-31 18:21 ` Eli Zaretskii
2015-10-30 18:42 ` Glenn Morris
2015-10-30 20:33 ` Eli Zaretskii
2015-10-30 20:41 ` Vincent Belaïche
2015-10-30 22:27 ` Vincent Belaïche
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=DUB109-W64929631B2C6661FCACC16842E0@phx.gbl \
--to=vincent.b.1@hotmail.fr \
--cc=21789@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.