You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Fredrik Jonson (JIRA)" <ji...@apache.org> on 2010/07/08 15:14:49 UTC

[jira] Created: (GERONIMO-5440) Dos line endings (^M) makes all unix shell scripts unexecutable

Dos line endings (^M) makes all unix shell scripts unexecutable
---------------------------------------------------------------

                 Key: GERONIMO-5440
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5440
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: commands
    Affects Versions: 2.1
         Environment: Ubuntu 10.04
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Geronimo 2.1.6 jetty6 javaee5 2.1.6
            Reporter: Fredrik Jonson
            Priority: Minor


All shell scripts in geronimo 2.1.6 jetty6 version 2.1.6 seems to have been encoded with dos line endings, which makes them unexecutable:

Download geronimo-jetty6-javaee5-2.1.6-bin.tar.gz

 tar xvf geronimo-jetty6-javaee5-2.1.6-bin.tar.gz
  cd geronimo-jetty6-javaee5-2.1.6
  bin/startup.sh 
  bash: bin/startup.sh: /bin/sh^M: bad interpreter: No such file or directory

The issue is easily fixable though, convert all dos line endings to unix line endings:

 perl -pi -e 's/\r\n/\n/g' bin/*.sh

PS. In geronimo's jira version 2.1.6 is not available in the  "Affects version/s" option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5440) Dos line endings (^M) makes all unix shell scripts unexecutable

Posted by "Kevan Miller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Miller updated GERONIMO-5440:
-----------------------------------

    Affects Version/s: 2.1.6
                           (was: 2.1)

Ugh. Thanks Frederik. 

Another work-around is to build from source.

We need to fix this issue going forward in future releases. I can think of several options:

1) build releases on non windows machines
2) use svn properties to set script/bat files to appropriate line endings
3) other build trickery (IIRC, we used to mess with line endings based on the distribution type .zip or .tar.gz)
4) ...

Any suggestions? Anybody willing to fix?

> Dos line endings (^M) makes all unix shell scripts unexecutable
> ---------------------------------------------------------------
>
>                 Key: GERONIMO-5440
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5440
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands
>    Affects Versions: 2.1.6
>         Environment: Ubuntu 10.04
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Geronimo 2.1.6 jetty6 javaee5 2.1.6
>            Reporter: Fredrik Jonson
>            Priority: Minor
>
> All shell scripts in geronimo 2.1.6 jetty6 version 2.1.6 seems to have been encoded with dos line endings, which makes them unexecutable:
> Download geronimo-jetty6-javaee5-2.1.6-bin.tar.gz
>  tar xvf geronimo-jetty6-javaee5-2.1.6-bin.tar.gz
>   cd geronimo-jetty6-javaee5-2.1.6
>   bin/startup.sh 
>   bash: bin/startup.sh: /bin/sh^M: bad interpreter: No such file or directory
> The issue is easily fixable though, convert all dos line endings to unix line endings:
>  perl -pi -e 's/\r\n/\n/g' bin/*.sh
> PS. In geronimo's jira version 2.1.6 is not available in the  "Affects version/s" option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.