Re: BUG #5250: Tutorial examples(pre-compiled) not present with precompiled binary version of PostgreSQL.

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Ashish Anand <Ashish(dot)The(dot)Dev(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5250: Tutorial examples(pre-compiled) not present with precompiled binary version of PostgreSQL.
Date: 2009-12-22 19:34:21
Message-ID: 20091222193421.GB3949@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane escribió:

> # Have to hack makefile to put correct path into tutorial scripts
> sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
> make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
> rm -f src/tutorial/GNUmakefile
>
> install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
> cp src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
>
> It looks to me like the unmodified Makefile builds the .sql files
> on the assumption they will be used *in the source tree*. So basically
> no installer could use that as-is anyway.

Sounds like something that should be fixed upstream, if someone is
sufficiently interested.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-12-22 19:53:19 Re: BUG #5250: Tutorial examples(pre-compiled) not present with precompiled binary version of PostgreSQL.
Previous Message Ashish Anand 2009-12-22 19:24:09 Re: BUG #5250: Tutorial examples(pre-compiled) not present with precompiled binary version of PostgreSQL.