all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: guix-devel@gnu.org
Subject: Trivial build system
Date: Sun, 11 Jan 2015 16:12:47 +0100	[thread overview]
Message-ID: <20150111151247.GA23839@debian> (raw)

Hello,

in my work on texlive, I am trying to build a package by simply applying
the 'unpack and 'patch-source-shebangs phases of gnu-build-system. A working
approach is to delete all other phases from gnu-build-system, but that would
break the package whenever gnu-build-system is augmented. So I tried to
start from trivial-build-system. But the following code fails:

   (arguments
    `(#:modules ((guix build gnu-build-system)
                 (guix build utils))
      #:builder (begin
                  (use-modules (guix build utils)
                               (guix build gnu-build-system))
                  (let ((out %output)
                        (source (assoc-ref %build-inputs "source"))
                        (unpack (assoc-ref %standard-phases 'unpack)))
                    (format #t "XXX ~a XXX\n" source)
                    (apply unpack (list #:source source))
                    (mkdir-p out)
                    (zero? (system* "mv" "tlpkg" out))
                    ))))

The error message is
In execvp of tar: No such file or directory
In execvp of mv: No such file or directory
XXX /gnu/store/xrm2iibfw8x38b9jjkwbidgw96b6aa6i-texlive-20140525-extra.tar.xz XXX
builder for `/gnu/store/q5w5qp1nh6i1275xkggidpy65fsyifvi-texlive-texmf-2014.drv' failed with exit code 1

I printed the value of SOURCE which contains indeed the source to unpack.
What is my mistake here?

Andreas

             reply	other threads:[~2015-01-11 15:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11 15:12 Andreas Enge [this message]
2015-01-11 15:25 ` Trivial build system Andreas Enge
2015-01-12  9:31   ` Build system phases Ludovic Courtès
2015-01-11 15:33 ` Trivial build system David Thompson
2015-01-11 16:44   ` Andreas Enge
2015-01-11 15:38 ` Andreas Enge
2015-01-12  9:25   ` Ludovic Courtès

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=20150111151247.GA23839@debian \
    --to=andreas@enge.fr \
    --cc=guix-devel@gnu.org \
    /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.