I've tried bumping my own build tool up to pkgtool 1.3.98, which is the latest
available and which has pretty decent IPS support. There seems to be a
problem, though, either in the manifest files it generates, or in pkg(1) as
shipped with OSOL 2008.11 when it comes to packages that use multiple sources.
Consider a spec file with
SOURCE0: tarball.tar.gz
SOURCE1: additional-tarball.tar.gz
SOURCE2: build-scripts.tar.gz
this yields a manifest with
set name=info.source_url value=tarball.tar.gz
set name=info.source_url value=additional-tarball.tar.gz
set name=info.source_url value=build-scripts.tar.gz
and this seems to make pkg(1) blow up with
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 161,
inevaluate
raise RuntimeError, ["Duplicate actions", ddups]
RuntimeError: ['Duplicate actions', [(('set', 'info.source_url'),
set([<pkg.actions.attribute.AttributeAction object at 0x12ffb36c>,
<pkg.actions.attribute.AttributeAction object at 0x12ffb30c>,
<pkg.actions.attribute.AttributeAction object at 0x12ffb3cc>]))]]
it *publishes* just fine .. but installation fails.
You can find the manifest for two versions of a very simple package (it just
creates directories under /opt/foss) at
http://pkg.bionicmutton.org:10000/manifest/0/FOSShier at
1.0,5.11-5:20090318T003334Z
http://pkg.bionicmutton.org:10000/manifest/0/FOSShier at
1.0,5.11-4:20090128T201314Z
the former is what pkgtool --ips does, the latter is what I did by hand six
weeks ago.
--
Adriaan de Groot - KDE Quality Team, KDE-Solaris
- http://www.englishbreakfastnetwork.org/
- http://solaris.kde.org/