Saurabh Misra wrote:
> Do you need to test just a package or two, or all of them from ON?
I think there will be couple of fixes (4-6 bugs fixes) and hence it may
have an impact on multiple SUNW* pkgs.
OK, depends on whether you really need to create a fully populated repo,
or just one with the updated packages so that someone can pkg install them.
If you need to test *exactly* how the packages will work out in
OpenSolaris, then you need to:
- build a WOS image from your packages using the normal Nevada WOS
tools.
- hg clone ssh://[email protected]/hg/pkg/gate pkg-gate
- cd pkg-gate/src; make packages (you might need to install some
dependencies, but they're pretty obvious from the build failures)
- cd util/distro-import
- modify the makefile to point at your WOS image rather than the
default one for 111.
- If you want, modify the hostname and port for your depot by
setting e.g. "export REPO=http://localhost". Otherwise, it'll
use http://localhost:10000
- make -e 111/redist_import
That's how OpenSolaris is built, and will give the most accurate image.
But, if you just need to publish the updated packages:
- in one window, start a depot: ~lianep/Work/src/protorepo/start_depot.py
- now do your work in another window, as the depot will print status and
errors to the previous window.
- identify the packages you're changing
- determine if the bugfixes included any changes to usr/src/pkgdefs.
- for each package
* determine the IPS package name by: pkg search -r <pkgname>
* for each IPS package name:
- pkg contents -r -m <IPS pkg> > <pkgname>.manifest
- if usr/src/pkgdefs had changed, you'll need to massage the
'manifest' you just created to reflect the SysV package changes.
- ~lianep/Work/src/protorepo/convert_manifest.py <manifest> >
<new_manifest>
- take that new manifest and:
~lianep/Work/src/protorepo/publish_manifest.py -r <proto area>
<new_manifest>
My scripts stand up a depot on http://localhost:12000.
Hopefully that works for you, but you're off in territory there isn't much
formal tooling for yet and pretty much no documentation for. I'm working
on it... and as such, can't promise that I won't break all the scripts in
my home directory by next week. :)
liane
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss