all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: "Cross"-Building for foreign ditros
Date: Fri, 10 Apr 2020 11:36:33 +0200	[thread overview]
Message-ID: <87eesvy95q.fsf@gnu.org> (raw)
In-Reply-To: <7b69172b-32a1-3d92-b2fa-1a236413ed9b@crazy-compilers.com> (Hartmut Goebel's message of "Thu, 9 Apr 2020 11:07:58 +0200")

Hi Hartmut,

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> I would like to use Guix to set up a reproducible build environment for
> building packages for a foreign distribution. Of course, this would not
> use the guix build systems, but the foreign distro*s tools - which
> itself should come from Guix.
>
> For example: Using /gnu/store/…/bin/gcc and /gnu/store/…/bin/rpm for
> building RPM packages for Fedora.

To build RPM packages for Fedora, you really need to build within Fedora
so that the package you build is known to work with the Fedora packages
it depends on.

Nixpkgs has tools to do that:

  https://github.com/NixOS/nixpkgs/tree/master/pkgs/build-support/vm

Essentially you would boot a VM of that distro, but using our own kernel
and initrd; the initrd would spawn something like marionette to
instrument the system.  From there, you would run the package build
code, but attempting to use, for instance, their GCC and libraries
instead of ours.

HTH!

Ludo’.

      reply	other threads:[~2020-04-10  9:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-09  9:07 "Cross"-Building for foreign ditros Hartmut Goebel
2020-04-10  9:36 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eesvy95q.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=h.goebel@crazy-compilers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.