Request 309 was acted upon.
_________________________________________________________________________
URL: https://rt.openpkg.org/id/309
Ticket: [OpenPKG #309]
Subject: perl-dbi now broken on Solaris due to recent change
Requestors: [EMAIL PROTECTED]
Queue: openpkg
Owner: Nobody
Status: open
Transaction: Correspondence added by [EMAIL PROTECTED]
Time: Tue Jan 13 19:58:02 2004
________________________________________________________________________
Hi Ralf,
Thanks for the explanation. I now understand the rationale, but...
> That it worked before for you (and also for us) is because
> the DBD::Oracle was different in the past and because you
> certainly used a full-featured Oracle installation (where
> demo_rdbms32.mk existed).
...The DBD::Oracle I am using is the one from the 2003/11/29 package, which
is the same as the one in the 20040108 package: v1.14. And the
oracle-barebone that I built and used did not install demo_rdbms32.mk. Yet,
DBD::Oracle works fine for me on Solaris when it was built using
demo_rdbms.mk.
> Under Solaris I was unable to get all those files by doing a
> plain Oracle 9i Client Installation, including a "Custom"
> one. For getting the remaining files (including
> demo_rdbms32.mk) I had to (believe it or not) install the
> Oracle database server. The reason is that the Oracle Call
> Interfaces (OCI) are part of the database server instead of
> the client. Interestingly, the same Oracle version has OCI
> part of the client under Linux! Just under Solaris the OCI
> stuff is part of the database server.
Actually, in my case I found the OCI stuff under Oracle Client for both the
Linux and Solaris installations. Upon taking a closer look, I now realize
that I have been installing "Oracle9i Database Release 2 Enterprise/Standard
Edition for Sun SPARC Solaris (32-bit)", rather than "Oracle9i Database
Release 2 Enterprise Edition for Sun SPARC Solaris (64-bit)" as instructed
by the oracle-barebone documentation.
Since you want to use the 32-bit libraries anyway, wouldn't it be easier to
use the 32-bit download? Solaris 8 and 9 support it, and then there would be
no need to install the entire database server nor a need for the spec file
patch that forces the use of demo_rdbms32.mk.
In my case the resulting oracle-barebone file sizes are:
-rw-rw-r-- 1 psr psr 24650873 Jan 7 17:14
oracle-barebone-9.2.0.1.ix86-linux.cpio.bz2
-rw-rw-r-- 1 psr psr 27713659 Jan 8 11:35
oracle-barebone-9.2.0.1.sparc64-solaris.cpio.bz2
Note how much smaller my Solaris file is compared to yours.
Dennis
> -----Original Message-----
> From: Ralf S. Engelschall via RT [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 13, 2004 3:10 AM
> To: [EMAIL PROTECTED]
> Subject: [OpenPKG #309] perl-dbi now broken on Solaris due to
> recent change
>
>
> Request 309 was acted upon.
> ______________________________________________________________
> ___________
>
> URL: https://rt.openpkg.org/id/309
> Ticket: [OpenPKG #309]
> Subject: perl-dbi now broken on Solaris due to recent change
> Requestors: [EMAIL PROTECTED]
> Queue: openpkg
> Owner: Nobody
> Status: open
> Transaction: Correspondence added by rse
> Time: Tue Jan 13 09:10:16 2004
> ______________________________________________________________
> ___________
>
> On Mon, Jan 12, 2004, Dennis McRitchie via RT wrote:
>
> > Using perl-dbi-20031129-20031129.src.rpm, I was able to build
> > DBD::Oracle on Solaris 9. However, using
> > perl-dbi-20040108-20040108.src.rpm, the build blew up. The
> problem is
> > due to these recently added lines to the spec file:
> >
> > case "%{l_platform -t}" in
> > i?86-linux* )
> > ;;
> > sun*-sunos* )
> > # OpenPKG builds with gcc in 32-bit mode by default
> > %{l_shtool} subst \
> > -e 's;demo_rdbms\.mk;demo_rdbms32.mk;g' \
> > Makefile.PL
> > ;;
> > * )
> > echo "Platform \"%{l_platform -t}\" not
> supported" 1>&2
> > exit 1
> > ;;
> > esac
> >
> > So the DBD:Oracle makefile is now looking for
> demo_rdbms32.mk rather
> > than demo_rdbms.mk on Solaris. The problem is that when I build the
> > oracle-barebone package using Oracle 9.2.0.1, demo_rdbms.mk is
> > present, but not demo_rdbms32.mk. Hence this spec file
> works on Linux,
> > and older perl-dbi packages work on Solaris, but the new
> spec file now
> > breaks on Solaris.
> >
> > I searched the cvs repository for perl-dbi so I could try to figure
> > out the reason for this change, and I could not find this change.
> > Also, there are problems with the perl-dbi checkins since
> 2003/11/29:
> > [...] So why was this change made?
>
> Because our OpenPKG gcc produces by default (unless you use
> -m64) 32 bit binaries under Solaris. Hence we have to link in
> the 32-bit Oracle libraries, too.
>
> That it worked before for you (and also for us) is because
> the DBD::Oracle was different in the past and because you
> certainly used a full-featured Oracle installation (where
> demo_rdbms32.mk existed).
>
> Under Solaris I was unable to get all those files by doing a
> plain Oracle 9i Client Installation, including a "Custom"
> one. For getting the remaining files (including
> demo_rdbms32.mk) I had to (believe it or not) install the
> Oracle database server. The reason is that the Oracle Call
> Interfaces (OCI) are part of the database server instead of
> the client. Interestingly, the same Oracle version has OCI
> part of the client under Linux! Just under Solaris the OCI
> stuff is part of the database server. I think this is a bug
> in Oracle 9i installer. So, the problem is that (as
> DBD::Oracle's README says such nice) "you have to install
> enough Oracle", although it is unclear what "enough" really means ;-)
>
> For your reference, I include you information about my local
> resulting oracle-barebone*.cpio.bz2 files I created here and
> in the attachment:
>
> -rw-rw-r-- 1 openpkg-team openpkg-team 23757702 Jan 5
> 16:24 oracle-barebone-9.2.0.1.ix86-linux.cpio.bz2
> -rw-rw-r-- 1 openpkg-team openpkg-team 65202703 Jan 5
> 16:59 oracle-barebone-9.2.0.1.sparc64-solaris.cpio.bz2
>
> Ralf S. Engelschall
> [EMAIL PROTECTED]
> www.engelschall.com
>
>
>
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Bug Database Interface www.openpkg.org/bugdb
Bug Database List [EMAIL PROTECTED]