From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Trivial build system Date: Sun, 11 Jan 2015 16:12:47 +0100 Message-ID: <20150111151247.GA23839@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAKCI-00015f-Uq for guix-devel@gnu.org; Sun, 11 Jan 2015 10:12:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAKCD-0001O5-Ca for guix-devel@gnu.org; Sun, 11 Jan 2015 10:12:58 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:54279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAKCD-0001IK-38 for guix-devel@gnu.org; Sun, 11 Jan 2015 10:12:53 -0500 Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org 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