Build in separate directory fails: funky path contatenation

Поиск
Список
Период
Сортировка
От Eric Buddington
Тема Build in separate directory fails: funky path contatenation
Дата
Msg-id Pine.LNX.4.05.9904302325250.21190-100000@qurasp15.vgernet.net
обсуждение исходный текст
Список pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        :    Eric Buddington
Your email address    :    ebuddington@wesleyn.edu


System Configuration
---------------------
  Architecture (example: Intel Pentium)      : AMD K-6

  Operating System (example: Linux 2.0.26 ELF)     : Linux 2.2.5-ac6

  PostgreSQL version (example: PostgreSQL-6.4.2)  :   PostgreSQL-6.4.2

  Compiler used (example:  gcc 2.8.0)        : gcc 2.7.2.3


Please enter a FULL description of your problem:
------------------------------------------------

Trying to script the entire compile process (untar to install), I found
that configure barfs if you try to build outside the source dir.

It complains:

--
configure: error: can not find install-sh or install.sh in
/src/build/postgresql-6.4.2
/src/build-src/postgresql-6.4.2/postgresql-6.4.2/src//src/build/postgresql-6.4.2
--

That second path is clearly bogus. Explained somewhat below.

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------

/src/build-src/postgresql-6.4.2/postgresql-6.4.2/src/configure
--prefix=/packages/postgresql/6.4.2/any
--exec-prefix=/packages/postgresql/6.4.2
--srcdir=/src/build-src/postgresql-6.4.2/postgresql-6.4.2/src


If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

The problem is visible at src/configure:563:

---
for ac_dir in `pwd` $srcdir/`pwd`; do
---

This is probably where it calculates that inexcusable path. If it tried
just '$srcdir', I believe it would have found the install-sh script.

I know that configure is automatically generated, so this is a bug higher
up in the food chain (possible in autoconf itself?)

- Eric


В списке pgsql-ports по дате отправления:

Предыдущее
От: Unprivileged user
Дата:
Сообщение: Port Bug Report: Regexp does not allow alternation in CHECK clause
Следующее
От: Rick Dole
Дата:
Сообщение: ...