Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 286124

Summary: install unix2dos on build.eclipse.org
Product: Community Reporter: Kim Moir <kim.moir>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 247332    

Description Kim Moir CLA 2009-08-10 10:14:26 EDT
I'm testing our build on build.eclipse.org using hudson (bug 247332).

Our build uses the unix2dos utility to convert unix files to use windows delimiters to run our test scripts.  Could you please instead the unix2dos binaries on build.eclipse.org.  The dos2unix one is already installed.  Thanks !
Comment 1 Eclipse Webmaster CLA 2009-08-12 09:58:46 EDT
Ok, SLES no longer includes unix2dos(as of about SLES10) since they provide the 'recode' command.  I've grabbed and built the source tarball, and the binary is installed in /shared/common.

Let me know if there are any problems.

-M.
Comment 2 Kim Moir CLA 2009-08-12 10:23:15 EDT
Can you copy it to /usr/local/bin so it's automatically on the PATH of the hudson user.  Also, can you chmod o+rx it so it doesn't have to be invoked with ./unix2dos.  thanks :-)
Comment 3 Eclipse Webmaster CLA 2009-08-12 11:03:38 EDT
Done.

-M.
Comment 4 Kim Moir CLA 2009-08-12 12:09:06 EDT
Thanks Matt!
Comment 5 Kim Moir CLA 2009-08-18 15:08:24 EDT
The way that this binary is set up is that the one in /usr/local/bin is symlinked to the one in /usr/shared/common.

I don't think the hudson user can access this. See below for my build output.
When I tested this before I was running the build from my userid at the command line, not hudson.

+ WORKSPACE=/opt/users/hudsonbuild/.hudson/jobs/eclipse-equinox-test/workspace
+ which unix2dos
which: no unix2dos in (/shared/common/ibm-java-jdk-ppc-60/bin:/shared/common/ibm-java2-ppc-50/bin:/opt/ibm/ibm-java2-ppc-50/bin/:/usr/sbin:/bin:/usr/bin:/sbin:

Can you add /usr/local/bin to the default path of the hudson user? Or something similar so the user can access it with specifying the path.
Comment 6 Eclipse Webmaster CLA 2009-08-18 15:35:35 EDT
I've moved the link to /bin, and tested with the path you gave and the hudsonbuild user seems to be able to run unix2dos just fine.

-M.
Comment 7 Denis Roy CLA 2009-08-24 05:52:06 EDT
Closing as per previous comment.
Comment 8 Kim Moir CLA 2012-01-30 14:42:45 EST
This seems to be missing now.  Was running some test builds from cron on build.eclipse.org and they failed because of this error.

/opt/backup/build.shared/common/unix2dos
e4Build@build:~/kimtest> /opt/backup/build.shared/common/unix2dos
-bash: /opt/backup/build.shared/common/unix2dos: cannot execute binary file

Can you reinstall this binary so we can assemble our test features :-)
Comment 9 Eclipse Webmaster CLA 2012-01-31 10:46:11 EST
Ok, I've built version 4.1 and have installed it in /opt/public/common .

-M.