From b6da504736866bae655e2b4025729345e1ea19b7 Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Sat, 2 Nov 2019 13:13:01 +0100 Subject: [PATCH 1/3] doc: Add warning on the '--source' build option when linking statically. * doc/guix.texi (Additional Build Options): Add warning. --- doc/guix.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index da2423b422..30b69d8869 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -8328,6 +8328,12 @@ The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages}). +Note that for statically linked packages, @command{guix build -S} will +@emph{not} return the complete and corresponding sources since these +would include the sources of statically linked dependencies. In this +case, when distributing sources for license compliance, you may want to +play it safe and use the following @code{--sources} option instead. + @item --sources Fetch and return the source of @var{package-or-derivation} and all their dependencies, recursively. This is a handy way to obtain a local copy -- 2.23.0