Permalink
Browse files

This repo has been deprecated please use https://github.com/postgres-…

  • Loading branch information...
1 parent 5789927 commit 0cf1cdb554e7a6a2bf79649cb3141282a295180e @jconway committed Nov 22, 2016
Showing with 0 additions and 10,666 deletions.
  1. +0 −27 .travis.yml
  2. +0 −95 Makefile
  3. +0 −174 compilingplr.md
  4. +0 −5 doc/pg_doc
  5. +0 −1,807 doc/plr.sgml
  6. +0 −57 doc/stylesheet.css
  7. +0 −1,428 expected/plr.out
  8. +0 −462 pg_backend_support.c
  9. +0 −2,014 pg_conversion.c
  10. +0 −830 pg_rsupport.c
  11. +0 −561 pg_userfuncs.c
  12. +0 −100 plr--8.3.0.16.sql
  13. +0 −23 plr--unpackaged--8.3.0.16.sql
  14. +0 −1,895 plr.c
  15. +0 −5 plr.control
  16. +0 −559 plr.h
  17. +0 −57 plr.spec
  18. +0 −100 plr.sql.in
  19. +0 −467 sql/plr.sql
View
@@ -1,27 +0,0 @@
-os:
- - linux
-
-language: c
-sudo : required
-
-before_script:
- - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main 9.5" >> /etc/apt/sources.list.d/postgresql.list'
- - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- - sudo apt-get update -qq
- - sudo apt-get install -qq r-base
- - sudo apt-get install -qq r-base-dev
- - sudo /etc/init.d/postgresql stop
- - sudo apt-get remove postgresql
- - sudo apt-get install postgresql-9.5
- - sudo apt-get install postgresql-server-dev-9.5
-
-script:
- - sudo pg_lsclusters
- - export USE_PGXS=1
- - export PGPORT=5433
- - sudo -u postgres sh -c '/usr/lib/postgresql/9.5/bin/createuser -s -d -w travis -U postgres'
- - make
- - sudo make install
- - /usr/lib/postgresql/9.5/bin/pg_config
- - psql --version
- - /usr/lib/postgresql/9.5/lib/pgxs/src/makefiles/../../src/test/regress/pg_regress --inputdir=./ --bindir='/usr/lib/postgresql/9.5/bin/' --dbname=contrib_regression plr
View
@@ -1,95 +0,0 @@
-# location of R library
-
-ifdef R_HOME
-r_libdir1x = ${R_HOME}/bin
-r_libdir2x = ${R_HOME}/lib
-# location of R includes
-r_includespec = -I${R_HOME}/include
-rhomedef = ${R_HOME}
-else
-R_HOME := $(shell pkg-config --variable=rhome libR)
-r_libdir1x := $(shell pkg-config --variable=rlibdir libR)
-r_libdir2x := $(shell pkg-config --variable=rlibdir libR)
-r_includespec := $(shell pkg-config --cflags-only-I libR)
-rhomedef := $(shell pkg-config --variable=rhome libR)
-endif
-
-ifneq (,${R_HOME})
-
-EXTENSION = plr
-MODULE_big = plr
-PG_CPPFLAGS += $(r_includespec)
-SRCS += plr.c pg_conversion.c pg_backend_support.c pg_userfuncs.c pg_rsupport.c
-OBJS := $(SRCS:.c=.o)
-SHLIB_LINK += -L$(r_libdir1x) -L$(r_libdir2x) -lR
-DATA_built = plr.sql
-DATA = plr--8.3.0.16.sql plr--unpackaged--8.3.0.16.sql
-DOCS = README.plr
-REGRESS = plr
-EXTRA_CLEAN = doc/html/* doc/plr-US.aux doc/plr-*.log doc/plr-*.out doc/plr-*.pdf doc/plr-*.tex-pdf
-
-ifdef USE_PGXS
-ifndef PG_CONFIG
-PG_CONFIG := pg_config
-endif
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-else
-subdir = contrib/plr
-top_builddir = ../..
-include $(top_builddir)/src/Makefile.global
-include $(top_srcdir)/contrib/contrib-global.mk
-endif
-
-ifeq ($(PORTNAME), darwin)
- DYSUFFIX = dylib
- DLPREFIX = libR
-else
- ifeq ($(PORTNAME), win32)
- DLPREFIX = R
- else
- DLPREFIX = libR
- endif
-endif
-
-# we can only build PL/R if libR is available
-# Since there is no official way to determine this,
-# we see if there is a file that is named like a shared library.
-ifneq ($(PORTNAME), darwin)
- ifneq (,$(wildcard $(r_libdir1x)/$(DLPREFIX)*$(DLSUFFIX)*)$(wildcard $(r_libdir2x)/$(DLPREFIX)*$(DLSUFFIX)*))
- shared_libr = yes;
- endif
-else
- ifneq (,$(wildcard $(r_libdir1x)/$(DLPREFIX)*$(DYSUFFIX)*)$(wildcard $(r_libdir2x)/$(DLPREFIX)*$(DYSUFFIX)*))
- shared_libr = yes
- endif
-endif
-
-# If we don't have a shared library and the platform doesn't allow it
-# to work without, we have to skip it.
-ifneq (,$(findstring yes, $(shared_libr)$(allow_nonpic_in_shlib)))
-
-override CPPFLAGS := -I"$(srcdir)" -I"$(r_includespec)" $(CPPFLAGS)
-override CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\" -DDLSUFFIX=\"$(DLSUFFIX)\"
-override CPPFLAGS += -DR_HOME_DEFAULT=\"$(rhomedef)\"
-
-else # can't build
-
-all:
- @echo ""; \
- echo "*** Cannot build PL/R because libR is not a shared library." ; \
- echo "*** You might have to rebuild your R installation. Refer to"; \
- echo "*** the documentation for details."; \
- echo ""
-
-endif # can't build - cannot find libR
-
-else # can't build - no R_HOME
-
-all:
- @echo ""; \
- echo "*** Cannot build PL/R because R_HOME cannot be found." ; \
- echo "*** Refer to the documentation for details."; \
- echo ""
-
-endif
View
@@ -1,174 +0,0 @@
-I successfully did the following recently in order to build 64 bit PL/R
-on Windows 7:
-
-----------------
-dumpbin /exports R.dll > R.dump.csv
-
-Note that I used the csv extension so OpenOffice would import the file
-into a spreadsheet conveniently.
-
-Edit R.dump.csv to produce a one column file of symbols called R.def.
-
-cat R.dump.csv | tr -s ' ' | cut -d ' ' -f 5 > R.def
-
-Add the following two lines to the top of the file:
- LIBRARY R
- EXPORTS
-
-Then run the following using R.def
-
- lib /def:R.def /out:R.lib
-
-
-cd ../../../contrib/plr
-"../../Release/pg_regress/pg_regress" --psqldir="../../Release/psql" --dbname=contrib_regression plr
-
-
-msvc.diff
-
-```diff
-diff -cNr msvc.orig/config.pl msvc/config.pl
-*** msvc.orig/config.pl 1969-12-31 16:00:00.000000000 -0800
---- msvc/config.pl 2011-08-26 09:24:56.734375000 -0700
-***************
-*** 0 ****
---- 1,27 ----
-+ # Configuration arguments for vcbuild.
-+ use strict;
-+ use warnings;
-+
-+ our $config = {
-+ asserts=>0, # --enable-cassert
-+ # integer_datetimes=>1, # --enable-integer-datetimes - on is now default
-+ # float4byval=>1, # --disable-float4-byval, on by default
-+ # float8byval=>0, # --disable-float8-byval, off by default
-+ # blocksize => 8, # --with-blocksize, 8kB by default
-+ # wal_blocksize => 8, # --with-wal-blocksize, 8kb by default
-+ # wal_segsize => 16, # --with-wal-segsize, 16MB by default
-+ ldap=>1, # --with-ldap
-+ nls=>undef, # --enable-nls=<path>
-+ tcl=>undef, # --with-tls=<path>
-+ perl=>undef, # --with-perl
-+ python=>undef, # --with-python=<path>
-+ krb5=>undef, # --with-krb5=<path>
-+ openssl=>undef, # --with-ssl=<path>
-+ uuid=>undef, # --with-ossp-uuid
-+ xml=>undef, # --with-libxml=<path>
-+ xslt=>undef, # --with-libxslt=<path>
-+ iconv=>undef, # (not in configure, path to iconv)
-+ zlib=>undef # --with-zlib=<path>
-+ };
-+
-+ 1;
-diff -cNr msvc.orig/Mkvcbuild.pm msvc/Mkvcbuild.pm
-*** msvc.orig/Mkvcbuild.pm 2010-07-02 16:25:27.000000000 -0700
---- msvc/Mkvcbuild.pm 2011-08-26 13:08:41.796875000 -0700
-***************
-*** 35,41 ****
- 'cube' => ['cubescan.l','cubeparse.y'],
- 'seg' => ['segscan.l','segparse.y']
- };
-! my @contrib_excludes = ('pgcrypto','intagg','sepgsql');
-
- sub mkvcbuild
- {
---- 35,41 ----
- 'cube' => ['cubescan.l','cubeparse.y'],
- 'seg' => ['segscan.l','segparse.y']
- };
-! my @contrib_excludes = ('pgcrypto','intagg','sepgsql','plr');
-
- sub mkvcbuild
- {
-***************
-*** 377,382 ****
---- 377,392 ----
- my $mf = Project::read_file('contrib/pgcrypto/Makefile');
- GenerateContribSqlFiles('pgcrypto', $mf);
-
-+ my $plr = $solution->AddProject('plr','dll','plr');
-+ $plr->AddFiles(
-+ 'contrib\plr','plr.c','pg_conversion.c','pg_backend_support.c','pg_userfuncs.c','pg_rsupport.c'
-+ );
-+ $plr->AddReference($postgres);
-+ $plr->AddLibrary('C:\R\R-2.13.1\bin\R.lib');
-+ $plr->AddIncludeDir('C:\R\R-2.13.1\include');
-+ my $mfplr = Project::read_file('contrib/plr/Makefile');
-+ GenerateContribSqlFiles('plr', $mfplr);
-+
- my $D;
- opendir($D, 'contrib') || croak "Could not opendir on contrib!\n";
- while (my $d = readdir($D))
-***************
-*** 596,601 ****
---- 606,619 ----
- }
- }
- }
-+ else
-+ {
-+ print "GenerateContribSqlFiles skipping $n\n";
-+ if ($n eq 'plr')
-+ {
-+ print "mf: $mf\n";
-+ }
-+ }
- }
-
- sub AdjustContribProj
-diff -cNr msvc.orig/Solution.pm msvc/Solution.pm
-*** msvc.orig/Solution.pm 2010-04-09 06:05:58.000000000 -0700
---- msvc/Solution.pm 2010-10-04 10:54:52.507549000 -0700
-***************
-*** 443,448 ****
---- 443,449 ----
- $proj->AddIncludeDir($self->{options}->{xslt} . '\include');
- $proj->AddLibrary($self->{options}->{xslt} . '\lib\libxslt.lib');
- }
-+ $proj->AddIncludeDir('C:\Program Files\Microsoft Platform SDK\Include');
- return $proj;
- }
-
-diff -cNr msvc.orig/vcregress.pl msvc/vcregress.pl
-*** msvc.orig/vcreg }
- }
- }
-+ else
-+ {
-+ print "ress.pl 2010-04-09 06:05:58.000000000 -0700
---- msvc/vcregress.pl 2011-08-26 13:32:32.593750000 -0700
-***************
-*** 184,190 ****
- {
- chdir "../../../contrib";
- my $mstat = 0;
-! foreach my $module (glob("*"))
- {
- next if ($module eq 'xml2' && !$config->{xml});
- next
---- 184,190 ----
- {
- chdir "../../../contrib";
- my $mstat = 0;
-! foreach my $module (glob("plr"))
- {
- next if ($module eq 'xml2' && !$config->{xml});
- next
-***************
-*** 201,206 ****
---- 201,207 ----
- "--psqldir=../../$Config/psql",
- "--dbname=contrib_regression",@opts,@tests
- );
-+ print join(" ", @args) . "\n";
- system(@args);
- my $status = $? >> 8;
- $mstat ||= }
- }
- }
-+ else
-+ {
-+ print " $status;
-```
-
-
View
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-jade -c ${DOCBOOKSTYLE}/catalog -d ${PGSRCROOT}/doc/src/sgml/stylesheet.dsl -i output-html -t sgml $1
-openjade -D . -c ${DOCBOOKSTYLE}/catalog -d ${PGSRCROOT}/doc/src/sgml/stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -V '%paper-type%'=USletter -o plr-US.tex-pdf $1
-pdfjadetex plr-US.tex-pdf
Oops, something went wrong.

0 comments on commit 0cf1cdb

Please sign in to comment.