I wonder if you are getting the DOS "sort" command instead of Cygwin. Try giving the full Cygwin path to sort.

Eric

On 8/4/2015 4:44 AM, Jan-Marek Glogowski wrote:
Hi

I'm trying to build LibreOffice 5.0 32bit on Windows 7 64bit. The setup
was working for a long time, but failed to work after the last Cygwin
and Jenkins update from 1.596 => 1.619.

The general build is working, if I manually run it, but fails when
triggered using the Jenkins slave. I finally found the reason for the
failure, but I have no idea what causes it.

This is the output from my test Jenkins job, which is based on the
breaking configure code. The code itself is from 2014 and minimalized
for my test Jenkins job:

+ echo ' Test'
+ tr '\ ' '\n'
+ tr '\n' '\ '
+ hexdump -C
00000000  20 54 65 73 74 20                                 | Test |
00000006
+ echo

=> Ok

+ echo ' Test'
+ hexdump -C
00000000  20 54 65 73 74 0a                                 | Test.|
00000006
+ echo

=> Ok

+ echo ' Test'
+ tr '\ ' '\n'
+ hexdump -C
00000000  0a 54 65 73 74 0a                                 |.Test.|
00000006
+ echo

=> Ok

+ echo ' Test'
+ tr '\ ' '\n'
+ sort
+ hexdump -C
00000000  0d 0a 54 65 73 74 0d 0a                           |..Test..|
00000008
+ echo

=> Error

So "sort" somehow changes the newlines from Unix to Windows - WTF.

If I run the command via SSH login or from the local Cygwin terminal in
Windows, it is working correct!

I have attached a diff of the environment. When investigating, I added
an CYGWIN=binmode export, but this didn't change the output.

Any other ideas?

Jan-Marek


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55C0C498.9040705%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to