Received: from mail4.zotnet.com (216-99-218-131.dsl.aracnet.com [216.99.218.131]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6HIQ0a00796 for ; Tue, 17 Jul 2001 14:26:00 -0400 (EDT) (envelope-from zot@zotconsulting.com) Received: from zotconsulting.com (216-99-218-134.dsl.aracnet.com [216.99.218.134]) by mail4.zotnet.com (Postfix) with ESMTP id 0B639135BC for ; Tue, 17 Jul 2001 11:20:47 -0700 (PDT) Message-ID: <3B548332.8879CAD8@zotconsulting.com> Date: Tue, 17 Jul 2001 11:25:54 -0700 From: "Zot O'Connor" X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: "pgsql-sql@postgresql.org" Subject: Building RPMS with plperl (solution) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200107/229 X-Sequence-Number: 4025 This is not the right mail list, but I wanted to get it into google/archives (I will forget what I did in 15 minutes, and I could find little documentation on this process). To build the redhat 7.1 plperl rpm, you merely need to rpm -Uvh postgresql-7.1.2-4PGDG.src.rpm then there should be a command along the lines of rpm -bb /usr/src/redhat/SPECS/postgresql.spec --define 'forceplperl 1' But that failed. So I hand changed %{?forceplperl:%define plperl %{expand:forceplperl}} %{!?forceplperl:%define forceplperl 0} %{!?plperl:%define plperl 0} to %{!?pltcl:%define pltcl 1} %{!?forceplperl:%define forceplperl 1} %{!?plperl:%define plperl 1} And it built. Then I loaded it: rpm -Uvh /usr/src/redhat/RPMS/i386/postgresql-plperl-7.1.2-4PGDG.i386.rpm Now to test it :) -- Zot O'Connor http://www.ZotConsulting.com http://www.WhiteKnightHackers.com