Thread: Re: [PORTS] QNX4 port

Re: [PORTS] QNX4 port

From
"Kardos, Dr. Andreas"
Date:
Bruce Momjian wrote:


>> 1. template/qnx must be renamed to template/QNX. Otherwise configure will
>> not find it. At the beginning I wanted to name it qnx4. But this would
>> require one more patch of configure because of QNX problems.
>
>I want it to be lowercase.  All the other OS's are lowercase.  How do
>they do it.  I recommend a change to template/.similar so QNX is
>automatically identified on startup.


I have tried this of course. I have inserted a line "i386-pc-qnx4=qnx4" into
template/.similar. But the line
    GUESS=`grep "^$host=" template/.similar | sed 's/^.*=//' | tail -1`
in configure returns only "nx4" but not "qnx4". This is because "tail -1"
fails on QNX. So you have the following choices:

1. Remove this " | tail -1" in configure[.in], insert the line
"i386-pc-qnx4=qnx4"  into "template/.similar" and name the file
"template/qnx4".
2. Name it "template/i386-pc-qnx4" (from $host).
3. Name it "template/QNX" (from "uname -s").
4. Insert the line "i386-pc-qnx4=qnx4"  into "template/.similar" and name it
"template/nx4"
5. Always force to use the --with-template option.

I would not recommend solution 4 since it relies on a bug which might be
fixed in other QNX releases.

Andreas Kardos




Re: [PORTS] QNX4 port

From
Bruce Momjian
Date:
OK, my fix is to modify configure.in to lowercase $host before
comparison.  Hopefully 'tr' works on QNX.


[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Bruce Momjian wrote:
>
>
> >> 1. template/qnx must be renamed to template/QNX. Otherwise configure will
> >> not find it. At the beginning I wanted to name it qnx4. But this would
> >> require one more patch of configure because of QNX problems.
> >
> >I want it to be lowercase.  All the other OS's are lowercase.  How do
> >they do it.  I recommend a change to template/.similar so QNX is
> >automatically identified on startup.
>
>
> I have tried this of course. I have inserted a line "i386-pc-qnx4=qnx4" into
> template/.similar. But the line
>     GUESS=`grep "^$host=" template/.similar | sed 's/^.*=//' | tail -1`
> in configure returns only "nx4" but not "qnx4". This is because "tail -1"
> fails on QNX. So you have the following choices:
>
> 1. Remove this " | tail -1" in configure[.in], insert the line
> "i386-pc-qnx4=qnx4"  into "template/.similar" and name the file
> "template/qnx4".
> 2. Name it "template/i386-pc-qnx4" (from $host).
> 3. Name it "template/QNX" (from "uname -s").
> 4. Insert the line "i386-pc-qnx4=qnx4"  into "template/.similar" and name it
> "template/nx4"
> 5. Always force to use the --with-template option.
>
> I would not recommend solution 4 since it relies on a bug which might be
> fixed in other QNX releases.
>
> Andreas Kardos
>
>
>
>


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026