Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 70921

Summary: Add Support for the PL/PGSQL Language to dev-db/postgresql Ebuild
Product: Gentoo Linux Reporter: Charles Tassell <Telamon2>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: 2004.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Charles Tassell 2004-11-11 22:57:09 UTC
Here is the patch to add support for the PL/PGSQL language to the 7.4.6 ebuild.  It adds the use flag pg-plpgsql

*** postgresql-7.4.6.ebuild     Wed Nov 10 18:41:14 2004
--- postgresql-7.4.6-r1.ebuild  Wed Nov 10 18:41:34 2004
***************
*** 14,22 ****

  LICENSE="POSTGRESQL"
  SLOT="0"
  KEYWORDS="x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
! IUSE="ssl nls java python tcltk perl libg++ pam readline zlib doc pg-hier pg-vacuumdelay pg-intdatetime threads"

  DEPEND="virtual/libc
        sys-devel/autoconf
        >=sys-libs/ncurses-5.2
--- 14,22 ----

  LICENSE="POSTGRESQL"
  SLOT="0"
  KEYWORDS="x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
! IUSE="ssl nls java python tcltk perl libg++ pam readline zlib doc pg-hier pg-vacuumdelay pg-intdatetime pg-plpgsql threads"

  DEPEND="virtual/libc
        sys-devel/autoconf
        >=sys-libs/ncurses-5.2
***************
*** 130,137 ****
--- 130,144 ----

        make || die
        cd contrib
        make || die
+       if use pg-plpgsql; then
+               einfo "Building PL/SQL language module"
+               cd ../src/pl
+               make || die
+               cd ../../contrib
+       fi
+
  }

  src_install() {
        if use perl; then
***************
*** 146,153 ****
--- 153,166 ----
        make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal LIBDIR=${D}/usr/lib install || die
        make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal install-all-headers || die
        cd ${S}/contrib
        make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
+       if use pg-pgplsql; then
+               einfo "Installing PL/SQL language module"
+               cd ${S}/src/pl
+               make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
+       fi
+
        cd ${S}
        if use pg-hier; then
                dodoc ${WORKDIR}/README-${P_HIERPG}.html || die
        fi
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2004-11-16 03:53:27 UTC
I tried the patch.
But installed files were same as ones without the patch.
Can you check the patch?
Comment 2 Charles Tassell 2004-11-17 13:11:08 UTC
Hmm, you're right, it's building the language lib either way.  Now why the heck wouldn't it let me load the language when I built 7.4.6 the first time...  Oh well, something to look at on my end I guess.