On Mon, Nov 04, 2002, David Brownlee wrote:
> Sorry for the long reply, I was trying to document a reproducible setup and 
> started to ramble.  The summary is I now suspect my environment.  When you 
> initially setup your dev hosts, did you start with a Solaris "user" or 
> "developer" install?
> 
We start with 'developer', because as far as I remember only this or a
superset preset (OEM) includes the standard development tools (such as
/usr/ccs/bin/as, ld, make, ar, nm ... /usr/lib/libc.a and /usr/include/*).
Sure you could start from scratch and add the packages by hand, but it will
problably take much longer and be harder to maintain.

I believe that a screen follows the installation preset choice. You are able
to 'subtract' packages from the installation. We do this, because we don't
need a PCMCIA card reader device, old Netscape, CDE libraries, and so on.

Whichever way you install, you should definitely be able to build pdflib
without OpenPKG. The same tarball wrapped into the OpenPKG package you've been
trying to install is found at:

  http://www.pdflib.com/pdflib/download/pdflib-4.0.3.tar.gz

There is no magic in this particular OpenPKG package, as it just does a basic
'configure --prefix=[yourdir] --disable-shared;make'. Although you had luck
with the other packages, it seems clear now that your environment is not
totally set up for development. As soon as you get to the point that you can
build pdflib manually, you can then do 'rpm --rebuild
ftp://ftp.openpkg.org/blahblah' and you'll be surprised at the results (I
hope). If you don't do this you might expect that more than just pdflib and
samba fail.

> Building as a normal user (at least as myself) gives the following results:
>
> Installing ftp://ftp.openpkg.org/release/1.1/SRC/pdflib-4.0.3-1.1.0.src.rpm
> error: cannot create sourcedir /opt/openpkg/RPM/SRC/pdflib
>
Put a '.rpmmacros' file in your $HOME directory, and you'll be able to
influence OpenPKG package builds that way. You can specify any path you want
to for the files OpenPKG produces.

---- $HOME/.rpmmacros ----
#   source areas
%_sourcedir    %(echo $HOME)/somedir/dst/%{name}
%_specdir      %(echo $HOME)/somedir/src/%{name}

#   temporary areas
%_builddir     %(echo $TMP)/anotherdir/
%_tmppath      %(echo $TMP)/anotherdir/

#   target areas
%_rpmdir       %(echo $HOME)/pkgdir/bin
%_srcrpmdir    %(echo $HOME)/pkgdir/src
---- $HOME/.rpmmacros ----

Good luck,
Michael

--
[EMAIL PROTECTED]
Development Team, Application Services
Cable & Wireless Deutschland GmbH

Attachment: msg00177/pgp00000.pgp
Description: PGP signature

Reply via email to