Re: Issues around packaging CoreOS' rocket for fedora

2015-03-30 Thread Jason L Tibbitts III
 LM == Lokesh Mandvekar l...@fedoraproject.org writes:

LM There seem to be a few issues with it currently though, the major
LM one being using a non-distro-provided systemd (systemd v215):

Just a note that in my opinion there is essentially no chance that the
packaging committee would approve a bundling exception allowing anything
to bundle systemd.

 - J
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: Issues around packaging CoreOS' rocket for fedora

2015-03-30 Thread Jason L Tibbitts III
 ML == Mark Lamourine markll...@redhat.com writes:

ML Is there a recommended way to retrieve, extract and track the files
ML so that they can be compiled into the gzipped tarball which can then
ML be included in a package?

I cannot think of anything in existing Fedora policy which would permit
that.

You can, of course, depend upon all of those packages and build what you
need at runtime.  I believe some of the guestfs stuff works that way.

 - J
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: Issues around packaging CoreOS' rocket for fedora

2015-03-30 Thread Jason L Tibbitts III
 ML == Mark Lamourine markll...@redhat.com writes:

ML build at runtime?

Generate the tarball or whatever image you need at runtime.  When it's
needed.  Not as part of the package build, because I can't see a way
that such a thing would be permitted under current Fedora policies.  You
have runtime dependencies on all of the packages from which you need to
pull files, and you build whatever magic tarball you need directly from
the packages which are installed on the system.

 - J
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: Issues around packaging CoreOS' rocket for fedora

2015-03-30 Thread Richard W.M. Jones
On Mon, Mar 30, 2015 at 03:46:13PM -0500, Jason L Tibbitts III wrote:
  ML == Mark Lamourine markll...@redhat.com writes:
 
 ML Is there a recommended way to retrieve, extract and track the files
 ML so that they can be compiled into the gzipped tarball which can then
 ML be included in a package?
 
 I cannot think of anything in existing Fedora policy which would permit
 that.
 
 You can, of course, depend upon all of those packages and build what you
 need at runtime.  I believe some of the guestfs stuff works that way.

Correct, libguestfs builds an appliance at runtime.  It caches the
appliance per-user to avoid this build cost.

Actually you (the original poster) can try this quite easily since the
tools for doing it are already in Fedora.  To prepare an appliance
containing systemd plus dependencies:

  $ supermin --prepare systemd -o /tmp/supermin.d
  $ supermin --build /tmp/supermin.d -o /tmp/appliance.d -f chroot   # [1]

Examining /tmp/supermin.d and /tmp/appliance.d may be enlightening at
this point.

Note that the '--prepare' step would normally be done when building
the RPM (ie. in the spec file), and the '--build' step would normally
be done on the end-user's machine.

Rich.

[1] Ignore any permission denied errors you see in the second step:
https://fedorahosted.org/fpc/ticket/467

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct