All,
since I had some issues with pkgadd'ing FOSS* packages for x86 (as
downloaded from bionicmutton, and as reported in another thread), I tried
following Adriaan's advice:
<[ade]> you had better use pkgtool --install-pkgs to add those
packages instead of pkgadd
(the correct syntax in fact turns out be "pkgtool install-pkgs", because
it's not an option but a command - but I guess that was Adriaan's way of
saying "finding out the correct syntax is left as an exercise to the
reader" ;-)
The machine I'm trying to do this on is "clean" as far as KBE/KCE/KDE is
concerned (I actually installed it fresh with OpenSolaris 2008.05 and 'pkg
image-update'd it to NV 93 to make sure of that); so I had to install
KBEpkgbuild to get pkgtool, which is fine.
I have the FOSS* pkgs as well as FOSS*.spec files on an NFS-exported
directory on a different machine, so I created ~/packages/PKGS and
Dude/SPECS and copied/soft-linked the stuff to the right places. I then
also sources the env.sh file I had created on another machine, this worked
without (apparent ;-) issues.
Running 'pkgtool install-pkgs FOSS*.spec' worked fine, with the following
exceptions:
I) FOSSlibiconv and FOSSgettext complain about "files already installed and
in use by another package", here's a few examples (wrapping added by me):
$ grep /opt/foss/bin/amd64/iconv /var/sadm/install/contents
/opt/foss/bin/amd64/iconv f none 0755 root bin 35856 15740 1215521494
FOSSlibiconvwo
$ grep /opt/foss/share/locale/rm/LC_MESSAGES/libiconv.mo \
/var/sadm/install/contents
/opt/foss/share/locale/rm/LC_MESSAGES/libiconv.mo f none 0644 root bin 1151
20874 1215521496 FOSSlibiconvwo
$ grep /opt/foss/share/locale/locale.alias /var/sadm/install/contents
/opt/foss/share/locale/locale.alias f none 0644 root bin 2660 12576
1215521253 FOSSgettextwo
so it appears that for these two packages, some files are installed by
${package} and ${package}wo - I assume the powers that be (ade, luc^,
steleman) know about this, but what can I do to get a successful installation?
II)
> INFO: Installing package FOSScups
> ERROR:
> ERROR: pkgadd: The following files are already installed on the system and
> are being
> used by another package:
> * /etc/dbus-1/system.d/cups.conf <attribute change only>
> * /var/cache <attribute change only>
> * /var/cache/cups <attribute change only>
> * /var/log/cups <attribute change only>
> * /var/spool/cups <attribute change only>
> * /var/spool/cups/tmp <attribute change only>
>
> * - conflict with a file which does not belong to any package.
>
> Installation of <FOSScups> was suspended (administration).
> No changes were made to the system.
can I override this kind of error or should I just exclude FOSScups on this
system?
III) while preparing for the above, I found out that installing eg.
FOSSlibiconvwo.spec does not install its' only requirement, FOSShier - can
I force requirements to be installed transparently?
IIIa) related question: what's the minimal set of FOSS* packages I would
have to pass to pkgtool to get all FOSS* packages installed via the
requirements?
IV) in the SPECS directory I have 38 FOSS*.spec files, whereas I have 138
FOSS* packages. The gap of precisely 100 is probably incidental ... but how
do I install the FOSS* packages that don't have a .spec file associated
with them?
TIA
Michael
--
Michael Schuster http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'