From e1a42dfb7912831eb273d0356822b3870f5fdb7a Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Mon, 22 Oct 2018 14:21:17 +0200 Subject: dev-db/oracle-instantclient: fix precomp install With credits to Stefan Gast in bug#597520, tweak paths in demo_proc_ic.mk and pcscfg.cfg, move the latter to /etc/oracle/, and do not install the Pro*COBOL precompiler, but Pro*C only. Also, use relative paths for symlinks. Closes https://bugs.gentoo.org/597520 Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Michael Haubenwallner --- .../files/18.3.0.0-makefile.patch | 2 +- .../files/18.3.0.0-proc-makefile.patch | 27 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 dev-db/oracle-instantclient/files/18.3.0.0-proc-makefile.patch (limited to 'dev-db/oracle-instantclient/files') diff --git a/dev-db/oracle-instantclient/files/18.3.0.0-makefile.patch b/dev-db/oracle-instantclient/files/18.3.0.0-makefile.patch index eb6fc025d78b..bc4445fe354e 100644 --- a/dev-db/oracle-instantclient/files/18.3.0.0-makefile.patch +++ b/dev-db/oracle-instantclient/files/18.3.0.0-makefile.patch @@ -14,7 +14,7 @@ This provides absolute paths for headers and libraries. +else +LIBDIR=lib +endif -+ICINCHOME=$(ORACLE_HOME)/sdk/include ++ICINCHOME=$(ORACLE_HOME)/include +ICLIBHOME=$(ORACLE_HOME)/$(LIBDIR) ICLIBPATH=-L$(ICLIBHOME) THREADLIBS=-lthread diff --git a/dev-db/oracle-instantclient/files/18.3.0.0-proc-makefile.patch b/dev-db/oracle-instantclient/files/18.3.0.0-proc-makefile.patch new file mode 100644 index 000000000000..a197c2c7236f --- /dev/null +++ b/dev-db/oracle-instantclient/files/18.3.0.0-proc-makefile.patch @@ -0,0 +1,27 @@ +--- instantclient_18_3/sdk/demo/demo_proc_ic.mk.orig 2018-10-22 13:34:44.302293002 +0200 ++++ instantclient_18_3/sdk/demo/demo_proc_ic.mk 2018-10-22 13:38:55.015321571 +0200 +@@ -37,8 +37,13 @@ + cc=/usr/bin/gcc + + # InstantClient Directories. +-ICSDKHOME=../ +-ICLIBHOME=../../ ++ifeq ($(BUILD32),T) ++LIBDIR=lib32 ++else ++LIBDIR=lib ++endif ++ICSDKHOME=$(ORACLE_HOME)/ ++ICLIBHOME=$(ORACLE_HOME)/$(LIBDIR) + + MKLINK=ln + REMOVE=rm -rf +@@ -48,7 +53,7 @@ + MAKEFILE=demo_proc_ic.mk + PROCDEMO=procdemo + +-PROC=$(ICSDKHOME)proc ++PROC=$(ICSDKHOME)bin/proc + SO_EXT=.so + I_SYM=-I + -- cgit v1.2.3-65-gdbad