unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* "Cross"-Building for foreign ditros
@ 2020-04-09  9:07 Hartmut Goebel
  2020-04-10  9:36 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Goebel @ 2020-04-09  9:07 UTC (permalink / raw)
  To: guix-devel

Hallo,

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.

Did anybody already work in this areas or has any ideas?

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "Cross"-Building for foreign ditros
  2020-04-09  9:07 "Cross"-Building for foreign ditros Hartmut Goebel
@ 2020-04-10  9:36 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-04-10  9:36 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

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’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-10  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09  9:07 "Cross"-Building for foreign ditros Hartmut Goebel
2020-04-10  9:36 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).