Обсуждение: Re: [PORTS] QNX4 port

Поиск
Список
Период
Сортировка

Re: [PORTS] QNX4 port

От
"Kardos, Dr. Andreas"
Дата:
Bruce Momjian wrote:
>Applied.  I have changed @if to -@if and removed the QNX-specific code.
>This should allow QNX to compile in the current source tree.


Thanks, but there are still some little problems remaining:

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.

2. backend/port/qnx must be renamed to backend/port/qnx4. Otherwise gmake
fails.
It makes sense to name it qnx4 because there are two main versions of QNX in
use, QNX2 and QNX4. QNX2 is not compatible at all. QNX4 claims POSIX
compatibility. This port works for QNX4 only.

3. Since configure is part of the source tree it probably should be patched
too (not only configure.in).

4. Unfortunately backend/bootstrap/Makefile must be a little more
complicated (new version in patch).

5. In regress.sh the line
echo "diff ${DIFFOPT} -C3 ..."
can be removed (new version in patch).

6. Before "gmake install" the directory /usr/local/pgsql[/lib] must be
created manually because
mkdir /usr/local/pgsql/lib fails if /usr/local/pgsql does not exist yet.
This is obviously a general problem. "mkdir -p"?

An updated version of README.qnx4 is in the patch too. PATCH.qnx4 is for a
problem in a g++ header.

The new files and a diff file will be sent to pgsql-patches.

Please let we know when the test/regress/expected/*.out have been updated.
So that I can try the regression tests.

Andreas Kardos



Re: [PORTS] QNX4 port

От
Bruce Momjian
Дата:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Bruce Momjian wrote:
> >Applied.  I have changed @if to -@if and removed the QNX-specific code.
> >This should allow QNX to compile in the current source tree.
>
>
> Thanks, but there are still some little problems remaining:
>
> 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.


>
> 2. backend/port/qnx must be renamed to backend/port/qnx4. Otherwise gmake
> fails.
> It makes sense to name it qnx4 because there are two main versions of QNX in
> use, QNX2 and QNX4. QNX2 is not compatible at all. QNX4 claims POSIX
> compatibility. This port works for QNX4 only.

Done.

>
> 3. Since configure is part of the source tree it probably should be patched
> too (not only configure.in).

Done.  Forgot.

>
> 4. Unfortunately backend/bootstrap/Makefile must be a little more
> complicated (new version in patch).

Done.

>
> 5. In regress.sh the line
> echo "diff ${DIFFOPT} -C3 ..."
> can be removed (new version in patch).

Done.

>
> 6. Before "gmake install" the directory /usr/local/pgsql[/lib] must be
> created manually because
> mkdir /usr/local/pgsql/lib fails if /usr/local/pgsql does not exist yet.
> This is obviously a general problem. "mkdir -p"?

Not sure.

>
> An updated version of README.qnx4 is in the patch too. PATCH.qnx4 is for a
> problem in a g++ header.

I put the patch at the end of the readme.


--
  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