This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygport autogen.sh gives DOS line ending errors


Here's a strange one.  When I check out cygport and try to run its
autogen.sh, I get a bunch of errors about DOS line endings:

/tmp> git clone
git://cygwin-ports.git.sourceforge.net/gitroot/cygwin-ports/cygport
Cloning into 'cygport'...
remote: Counting objects: 9806, done.
remote: Compressing objects: 100% (5420/5420), done.
remote: Total 9806 (delta 7577), reused 5556 (delta 4376)
Receiving objects: 100% (9806/9806), 1.37 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (7577/7577), done.
Checking connectivity... done.

/tmp> cd cygport

/tmp/cygport> git submodule update --init
Submodule 'data/gnuconfig' (git://git.sv.gnu.org/config.git) registered for
path 'data/gnuconfig'
Cloning into 'data/gnuconfig'...
remote: Counting objects: 3644, done.
remote: Compressing objects: 100% (1678/1678), done.
remote: Total 3644 (delta 1933), reused 3629 (delta 1925)
Receiving objects: 100% (3644/3644), 591.90 KiB | 971.00 KiB/s, done.
Resolving deltas: 100% (1933/1933), done.
Checking connectivity... done.
Submodule path 'data/gnuconfig': checked out
'5049811e672698aa2337bb27ede94e54c9174154'

/tmp/cygport> ./autogen.sh
./autogen.sh: line 2: $'\r': command not found
: invalid optionne 3: set: -
set: usage: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
./autogen.sh: line 4: $'\r': command not found
./autogen.sh: line 7: $'\r': command not found
head: cannot open '.\r/configure.ac' for reading: No such file or directory
./autogen.sh: line 9: $'\r': command not found
./autogen.sh: line 10: syntax error near unexpected token `$'{\r''
'/autogen.sh: line 10: `verbose() {

What's strange about this is that I've run these same steps many times
before, and autogen.sh always ran fine, with no line ending errors.  But
since a week or two ago, I always get this error, on all of my cygwin
hosts.  

git shows that autogen.sh hasn't changed in years, so it seems that
something about my cygwin installation has.  What am I doing wrong?

If I run 'dos2unix autogen.sh', then autogen.sh runs fine and I can
continue with make; make install.  But then I start to run into more errors
about DOS line endings in other files.

Output of cygcheck -svr is attached.

Andrew

Attachment: cygcheck-svr.out
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]