Hi,

On Sat, 2007-07-07 at 10:12 +0530, S h i v wrote:

> I observed that the pkgbuild/pkgtool related queries being posted here
> and hence posting my related queries to this list.

Yes, this is the right place.

> I have 2 questions:
> 
> 1. Is there a way to skip earlier stages of package creation that have
> successfully completed in the pkgtool options?
> For ex: I know that "Preparation, Compilation & Installation to temp
> dir" has happened successfully but the package creation has failed due
> to incorrect paths in the spec file. I need to modify the spec file
> and retry the packaging part *only* via pkgtool. Is there such an
> option. The pkgtool documentation/help doesn't hint at any such
> option.
> Skipping earlier steps saves time while creating spec files.

Yes, you can do this:

Do the compilation phase only (i.e. don't remove the build tree
and don't do %prep, only %build):

        pkgbuild --short-circuit -bc foo.spec

Do the installation phase only (i.e. don't remove the build tree,
don't do %prep, don't do %build, only %install):

        pkgbuild --short-circuit -bi foo.spec

Do the packaging phase only (i.e. don't do any of the above steps,
only create the packages and then run %clean)
Note: $RPM_BUILD_ROOT must be already populated:

        pkgbuild --short-circuit -ba foo.spec

Unfortunately there is no short option for --short-circuit.
This option mirrors rpmbuild's --short-circuit option, except that
rpmbuild doesn't allow to use it with -ba ('cause it's cheating ;)
but pkgbuild does ('cause it's convenient).

> 2. Incase any .spec file is to be contributed, where to post the
> information. pkgbuild's sourceforge site provides only Laca's IRC id
> but no email_id or mailing list or discussion forum.

I thought I had a pointer to desktop-discuss.  Anyway, you have 2
choices:

- my preferred choice is pkgbase, see
  http://opensolaris.org/os/project/pkgbase/ which is where nicely
  written, maintained and carefully reviewed spec files should live.
  Unfortunately it's currently empty, but that shouldn't discourage
  you (;  I've been planning to add some for quite a while...
  See the process at the pkgbase project pages.  Basically, you will
  need to post the spec file to pkgbase-dev at opensolaris dot org for
  review first.

- if you don't want to commit to maintain the spec file, you can
  always add it to spec-files-extra (aka SFE).  Anyone can get
  write access there, just let me know you sourceforge user name.

Thanks,
Laca


Reply via email to