From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mI6MELKN/GCPZgEAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 00:01:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QAgkDLKN/GD0eAAA1q6Kng (envelope-from ) for ; Sat, 24 Jul 2021 22:01:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 01E6414CD for ; Sun, 25 Jul 2021 00:01:21 +0200 (CEST) Received: from localhost ([::1]:55886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7Phv-0002EJ-OK for larch@yhetil.org; Sat, 24 Jul 2021 18:01:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7PZN-0000n4-1P for help-guix@gnu.org; Sat, 24 Jul 2021 17:52:29 -0400 Received: from out0.migadu.com ([2001:41d0:2:267::]:51337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7PZJ-00071x-Ra for help-guix@gnu.org; Sat, 24 Jul 2021 17:52:28 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1627163541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=6ZV9EzDcDhb60nYLaleEBFzXdJGhhBGjRI7iaXRwdh8=; b=Jfq6CA5Xf0aBC2wnU2HJ9iTg9S9XITxV8xiEPFcfBkRwV90qvuVBG54eYLogfeQ7Cy7DvR MQrD2Knd65O1UxQ76Tj3G5TlMEwkIrhdXeSpvkKQCml07SqEALh4fujMJKtt/x8LElZb3j pq3J3ZXGVaNmKaYq32rdeKxH7aRp4+w= From: Sarah Morgensen To: phodina Subject: Re: File not found during package build Date: Sat, 24 Jul 2021 14:52:18 -0700 In-Reply-To: phodina@protonmail.com's message of "Sat, 24 Jul 2021 18:32:29 +0000" Message-ID: <86v94zpegd.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: iskarian@mgsn.dev Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=iskarian@mgsn.dev; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Jul 2021 18:00:38 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "help-guix@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627164082; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6ZV9EzDcDhb60nYLaleEBFzXdJGhhBGjRI7iaXRwdh8=; b=I5HWUbqxTaEWqQDQbJExpkPLwk8SgRZm67G2xz/Z11W7rNslMNuMkuVWijz4NcyetTrY/W ooVbM4b5nlW4Txvrvz3ASFF8tTaV1eHyqda+YF1RW/pe03gujAhUKGYDBf8oX08/qvuPwi ykvdavWzhkr9AMUyqKHNVSqEfXY3kebVTb/AFGVXe4B82ik/1I+UFe02v7N3fvjiRor8cx jMBYfl7vyG4puVqmkypdMtGq+MzpEdS3zfx2HvgjDird8cgcNXPkNAGGMjBxXU2pe6XJXJ kOe4SEnv7RsEVoY9YXGZjjmKLOFJ/uu3HUAI6UeUO3cWcZ1kFek43Jq249lyHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627164082; a=rsa-sha256; cv=none; b=BADvVsln8fGM3NYsWA2ixpPxhXIuNy/xLXEpnQQdrV/WQ+UgRAw2ioGSdG95sYjtL1LzoD pRNGOErbFSGi0/VRDMwZ0Pp356lVyfyNZyWRIhohn1NVDdmX0X6Rr2fjl7K115wrPFuyB+ F9Ijn5mlCeWqeNt8rK8RTxsSOdMPUjFoSIscfd9/omZhzf4W1iuZxbrBqRJl+fYqPfyzAu 3JTOMHOKKn/EirGtgPxfsvJzvIEcCPecEEN36qrcJszsVC5N09wO0J90GSGXgc6g67kr1D duA/8OW9VfutjuRfAdcn7jinVk91+g1xR+RgPAtbsOEXdAhUKVcff7aH2hrP6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mgsn.dev header.s=key1 header.b=Jfq6CA5X; dmarc=pass (policy=none) header.from=mgsn.dev; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mgsn.dev header.s=key1 header.b=Jfq6CA5X; dmarc=pass (policy=none) header.from=mgsn.dev; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 01E6414CD X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: IVcaTFF7Le4u Hello, phodina writes: > Hi All, > > during package build in the phase `check` I get a strange error regarding file not found. > > The file in question is an executable script within the directory. > > It must be present there as the chmod operation succeeds. > However, invocation of make then fails as it can't find the script. > > phase `build' succeeded after 0.1 seconds > starting phase `check' > make: Entering directory '/tmp/guix-build-novaboot-20210126a.drv-0/source/tests' > ./wvtool runall ./novaboot.wv ./parser.wv ./expect.wv ./server.wv ./uboot.wv > make: ./wvtool: No such file or directory > make: *** [Makefile:6: all] Error 127 The issue here is that wvtool begins with the shebang #!/usr/bin/env python3 so you'll need python in native-inputs. > > --- > (define-public novaboot > (package > (name "novaboot") > (version "20210126a") > (source (origin > (method git-fetch) > (uri > (git-reference > (url "https://github.com/wentasah/novaboot") > (commit version))) > (sha256 > (base32 > "1xwgxpngjp345fg4xmacyxm21wqvx4h6n6b51wnvivvzjj9vga4z")))) > (build-system gnu-build-system) > (inputs `(("perl" ,perl) ("perl-expect" ,perl-expect))) > (arguments > '(#:phases (modify-phases %standard-phases > (delete 'configure) > (add-before 'build 'set-prefix-in-makefile > (lambda* (#:key outputs #:allow-other-keys) > (let ((out (assoc-ref outputs "out"))) > (substitute* "Makefile" > (("PREFIX=.*") > (string-append "PREFIX=" > "\n"))) > (substitute* "Makefile" > (("DESTDIR=.*") > (string-append "DESTDIR=" out "\n")))) > )) > (replace 'check > (lambda* (#:key outputs #:allow-other-keys) > (chdir "tests") > (chmod "wvtool" #o555) > (invoke "make")))))) Also, the main Makefile has a 'test' target so you can just use #:test-target "test" in arguments rather than replacing the check phase. > (synopsis "A tool that automates booting of operating systems on target hardware or in qemu") > (description "Novaboot is a tool that automates booting of operating systems on target hardware (typically embedded boards) or in Qemu. Initially, it was developed to boot NOVA Microhypervisor (hence the name), but nowadays is well suited for booting Linux (and perhaps other OSes) too.") > (home-page "https://github.com/wentasah/novaboot") > (license license:gpl2))) Hope that helps, Sarah