public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin mount option -s is not supported
@ 2020-11-25 14:18 KAVALAGIOS Panagiotis (EEAS-EXT)
  2020-11-25 18:26 ` Vlado
  0 siblings, 1 reply; 5+ messages in thread
From: KAVALAGIOS Panagiotis (EEAS-EXT) @ 2020-11-25 14:18 UTC (permalink / raw)
  To: cygwin

Hello,

I am trying to make "config.sh" of Weblogic 12c Release 2 (v12.2.1.4.201001) working under Cygwin. After having fixed with dos2unix all the broken shell scripts that were full of MS-DOS CRLF, my attempt to create a Weblogic domain has failed again by running:

---------
$ ./oracle_common/common/bin/config.sh
mount: unknown option -- s
Try `mount --help' for more information.
Error: Could not find or load main class com.oracle.cie.wizard.WizardController
---------

The problem is located in the following script:

oracle_common/common/bin/commBaseEnv.sh:

---------
  if [ -n "`uname -s |grep -i cygwin_`" ]; then
  # If we are on an new version of Cygnus we need to turn <letter>:/ in
  # the path to /cygdrive/<letter>/
    CYGDRIVE=`mount -p | tail -1 | awk '{print $1}' | sed -e 's%/$%%'`
    WL_HOME_CYGWIN=`echo $WL_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
    ANT_HOME_CYGWIN=`echo $ANT_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
    PATCH_PATH_CYGWIN=`echo $PATCH_PATH | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
    JAVA_HOME_CYGWIN=`echo $JAVA_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
    JRE_HOME_CYGWIN=`echo $JRE_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
---------

From Linux mount:

---------
-s     Tolerate sloppy mount options rather than failing. This will ignore mount options not supported by a filesystem type. Not all filesystems support this option. This option exists for support of the  Linux  autofs-based automounter.
---------

But it seems that the "mount" command of Cygwin does not support that option. Was that option ever supported in previous versions? Is it going to be supported? Do they know something more in Oracle that have used it in their scripts?

I know that this is not an issue of Cygwin and it should be reported to Oracle support. I just want to check all the necessary information first. I think it was working in the past (previous versions of Weblogic and/or Cygwin). The mystery must be resolved.

Panos Kavalagios

Application Architect
CONSULIAT (under contract with the EEAS)
BA.BS.3.IS
_____________________________________
Office: EEAS B100 Floor 5 Area 048
Rue Belliard 100, 1000 Brussels
Phone: +32 2 584 6017


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cygwin mount option -s is not supported
  2020-11-25 14:18 Cygwin mount option -s is not supported KAVALAGIOS Panagiotis (EEAS-EXT)
@ 2020-11-25 18:26 ` Vlado
  2020-11-25 20:58   ` Brian Inglis
  0 siblings, 1 reply; 5+ messages in thread
From: Vlado @ 2020-11-25 18:26 UTC (permalink / raw)
  To: cygwin

On 25.11.2020 15:18, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> ---------
>    if [ -n "`uname -s |grep -i cygwin_`" ]; then
>    # If we are on an new version of Cygnus we need to turn <letter>:/ in
>    # the path to/cygdrive/<letter>/
>      CYGDRIVE=`mount -p | tail -1 | awk '{print $1}' | sed -e 's%/$%%'`
>      WL_HOME_CYGWIN=`echo $WL_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      ANT_HOME_CYGWIN=`echo $ANT_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      PATCH_PATH_CYGWIN=`echo $PATCH_PATH | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      JAVA_HOME_CYGWIN=`echo $JAVA_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>      JRE_HOME_CYGWIN=`echo $JRE_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
Hi.

Hard to say why Oracle's script is written this way. Standard Cygwin 
tool for file names conversion is cygpath. Instead of using sed, one can 
write
WL_HOME_CYGWIN=`cygpath -u $WL_HOME`
- simpler and the result will be more consistent. Example

$ WL_HOME='C:\some\dir\subdir'            # Windows path
$ echo "$WL_HOME" | sed "s#\([a-zA-Z]\):#/cygdrive/c/\1#g"
/cygdrive/c/C\some\dir\subdir             # mixed forward and back slashes
$ cygpath -u "$WL_HOME"
/cygdrive/c/some/dir/subdir               # pretty Cygwin path

Vlado



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cygwin mount option -s is not supported
  2020-11-25 18:26 ` Vlado
@ 2020-11-25 20:58   ` Brian Inglis
  2020-11-26 11:12     ` KAVALAGIOS Panagiotis (EEAS-EXT)
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Inglis @ 2020-11-25 20:58 UTC (permalink / raw)
  To: cygwin

On 2020-11-25 11:26, Vlado via Cygwin wrote:
> On 25.11.2020 15:18, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

Mount -s was removed in 2008:
https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=5f853b3fc5277da8cb5ba3ac7406447fe82e65de
three months after it was set to be ignored.

>>    if [ -n "`uname -s |grep -i cygwin_`" ]; then
>>    # If we are on an new version of Cygnus we need to turn <letter>:/ in
>>    # the path to/cygdrive/<letter>/

Use of 'Cygnus' refers to 20+ years ago when Cygwin was a product.

>>      CYGDRIVE=`mount -p | tail -1 | awk '{print $1}' | sed -e 's%/$%%'`
>>      WL_HOME_CYGWIN=`echo $WL_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>>      ANT_HOME_CYGWIN=`echo $ANT_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>>      PATCH_PATH_CYGWIN=`echo $PATCH_PATH | sed 
>> "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>>      JAVA_HOME_CYGWIN=`echo $JAVA_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`
>>      JRE_HOME_CYGWIN=`echo $JRE_HOME | sed "s#\([a-zA-Z]\):#${CYGDRIVE}/\1#g"`

> Hard to say why Oracle's script is written this way. Standard Cygwin tool for 
> file names conversion is cygpath. Instead of using sed, one can write
> WL_HOME_CYGWIN=`cygpath -u $WL_HOME`
> - simpler and the result will be more consistent. Example
> 
> $ WL_HOME='C:\some\dir\subdir'            # Windows path
> $ echo "$WL_HOME" | sed "s#\([a-zA-Z]\):#/cygdrive/c/\1#g"
> /cygdrive/c/C\some\dir\subdir             # mixed forward and back slashes
> $ cygpath -u "$WL_HOME"
> /cygdrive/c/some/dir/subdir               # pretty Cygwin path

Especially note the cygpath -U -> /proc/cygdrive/, -a -> /..., and -p path 
conversion options should be used as appropriate: try all three!

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Cygwin mount option -s is not supported
  2020-11-25 20:58   ` Brian Inglis
@ 2020-11-26 11:12     ` KAVALAGIOS Panagiotis (EEAS-EXT)
  2020-11-27 23:15       ` Brian Inglis
  0 siblings, 1 reply; 5+ messages in thread
From: KAVALAGIOS Panagiotis (EEAS-EXT) @ 2020-11-26 11:12 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: Cygwin <cygwin-bounces@cygwin.com> On Behalf Of Brian Inglis
> Sent: 25 November 2020 21:59
> 
> On 2020-11-25 11:26, Vlado via Cygwin wrote:
> > On 25.11.2020 15:18, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> 
> Mount -s was removed in 2008:
> https://sourceware.org/git/?p=newlib-
> cygwin.git;a=commitdiff;h=5f853b3fc5277da8cb5ba3ac7406447fe82e65de
> three months after it was set to be ignored.

That explains the mystery. Thanks!

> >>    if [ -n "`uname -s |grep -i cygwin_`" ]; then
> >>    # If we are on an new version of Cygnus we need to turn <letter>:/
> >> in
> >>    # the path to/cygdrive/<letter>/
> 
> Use of 'Cygnus' refers to 20+ years ago when Cygwin was a product.

So, it might have been working quite "recently" then :)

> > Hard to say why Oracle's script is written this way. Standard Cygwin
> > tool for file names conversion is cygpath. Instead of using sed, one
> > can write WL_HOME_CYGWIN=`cygpath -u $WL_HOME`
> > - simpler and the result will be more consistent. Example
> >
> > $ WL_HOME='C:\some\dir\subdir'            # Windows path $ echo
> > "$WL_HOME" | sed "s#\([a-zA-Z]\):#/cygdrive/c/\1#g"
> > /cygdrive/c/C\some\dir\subdir             # mixed forward and back
> > slashes $ cygpath -u "$WL_HOME"
> > /cygdrive/c/some/dir/subdir               # pretty Cygwin path
> 
> Especially note the cygpath -U -> /proc/cygdrive/, -a -> /..., and -p path
> conversion options should be used as appropriate: try all three!

Cygpath then is the correct approach to resolve this issue. I had no doubt about that. Anyway, this is not the only problem. They have messed the CLASSPATH as well and it needs to be updated to the correct libraries.

Panos

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cygwin mount option -s is not supported
  2020-11-26 11:12     ` KAVALAGIOS Panagiotis (EEAS-EXT)
@ 2020-11-27 23:15       ` Brian Inglis
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Inglis @ 2020-11-27 23:15 UTC (permalink / raw)
  To: cygwin

On 2020-11-26 04:12, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
>> -----Original Message-----
>> From: Cygwin <cygwin-bounces@cygwin.com> On Behalf Of Brian Inglis
>> Sent: 25 November 2020 21:59
>>
>> On 2020-11-25 11:26, Vlado via Cygwin wrote:
>>> On 25.11.2020 15:18, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
>>
>> Mount -s was removed in 2008:
>> https://sourceware.org/git/?p=newlib-
>> cygwin.git;a=commitdiff;h=5f853b3fc5277da8cb5ba3ac7406447fe82e65de
>> three months after it was set to be ignored.
> 
> That explains the mystery. Thanks!
> 
>>>>     if [ -n "`uname -s |grep -i cygwin_`" ]; then
>>>>     # If we are on an new version of Cygnus we need to turn <letter>:/
>>>> in
>>>>     # the path to/cygdrive/<letter>/
>>
>> Use of 'Cygnus' refers to 20+ years ago when Cygwin was a product.
> 
> So, it might have been working quite "recently" then :)
> 
>>> Hard to say why Oracle's script is written this way. Standard Cygwin
>>> tool for file names conversion is cygpath. Instead of using sed, one
>>> can write WL_HOME_CYGWIN=`cygpath -u $WL_HOME`
>>> - simpler and the result will be more consistent. Example
>>>
>>> $ WL_HOME='C:\some\dir\subdir'            # Windows path $ echo
>>> "$WL_HOME" | sed "s#\([a-zA-Z]\):#/cygdrive/c/\1#g"
>>> /cygdrive/c/C\some\dir\subdir             # mixed forward and back
>>> slashes $ cygpath -u "$WL_HOME"
>>> /cygdrive/c/some/dir/subdir               # pretty Cygwin path
>>
>> Especially note the cygpath -U -> /proc/cygdrive/, -a -> /..., and -p path
>> conversion options should be used as appropriate: try all three!
> 
> Cygpath then is the correct approach to resolve this issue. I had no doubt about that. Anyway, this is not the only problem. They have messed the CLASSPATH as well and it needs to be updated to the correct libraries.

If you have an Oracle support contract, please submit a TAR, and attach any 
patches you make, to upstream support, to avoid having to keep making changes 
every update.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-27 23:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 14:18 Cygwin mount option -s is not supported KAVALAGIOS Panagiotis (EEAS-EXT)
2020-11-25 18:26 ` Vlado
2020-11-25 20:58   ` Brian Inglis
2020-11-26 11:12     ` KAVALAGIOS Panagiotis (EEAS-EXT)
2020-11-27 23:15       ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).