From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gK7PCzwtgWCHswAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 10:01:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AjiaBzwtgWAVAwAA1q6Kng (envelope-from ) for ; Thu, 22 Apr 2021 08:01:00 +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 472ED113BE for ; Thu, 22 Apr 2021 10:00:59 +0200 (CEST) Received: from localhost ([::1]:45222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZUGf-0001EI-Ax for larch@yhetil.org; Thu, 22 Apr 2021 04:00:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZUEo-0008Pb-Au for bug-guix@gnu.org; Thu, 22 Apr 2021 03:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZUEo-00054s-2Y for bug-guix@gnu.org; Thu, 22 Apr 2021 03:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZUEo-0008Cb-18 for bug-guix@gnu.org; Thu, 22 Apr 2021 03:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#46297: nix-service-configuration is missing the default /bin/sh Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 22 Apr 2021 07:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46297 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov Received: via spool by 46297-submit@debbugs.gnu.org id=B46297.161907833631516 (code B ref 46297); Thu, 22 Apr 2021 07:59:01 +0000 Received: (at 46297) by debbugs.gnu.org; 22 Apr 2021 07:58:56 +0000 Received: from localhost ([127.0.0.1]:60636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZUEh-0008CG-MZ for submit@debbugs.gnu.org; Thu, 22 Apr 2021 03:58:55 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZUEd-0008Bz-96 for 46297@debbugs.gnu.org; Thu, 22 Apr 2021 03:58:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AECFC240100 for <46297@debbugs.gnu.org>; Thu, 22 Apr 2021 09:58:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619078324; bh=P9GzVF3bKgUbPEWLSBLLk5KtRudV18QECmM2bDZZCDM=; h=From:To:Cc:Subject:Date:From; b=kS00k0c+AVdOuMNqYabil0tQ0vtIGqD/RxqHwMSd6dXzdouPrRnq1Jajt4jb5dsVO aFBXZHhcGeO02+ry8beQZCvmksMIWC3HSS1KLVHlMjuVD+xZtGsiHzgwps/lWawV/m RBOhYtNDP8kXjOczI06Labc3EsUiVBJmwzDda1yiw3JviI3t+dJggo7dG1kcfkjEFd ngz0AjwPIMARJLcfoRAGrwXkacIvQC654GCuI6axBZJ5pwjPvbbdY/zBUk7HKhM1G/ 3L6wP9cZcYCFn2sx+cyCEyBjfaiZETciEeStcXaBG3ZFzqInufcD9rsN+eEBC4xRY3 mtwhiD/RxrXag== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FQqYb5tdnz9rxV; Thu, 22 Apr 2021 09:58:43 +0200 (CEST) References: <5112f89b-ac41-45bd-931c-bd8a9bde4836@Johns-iPhone> <87im77pssd.fsf@asu.edu> <864kfzir0q.fsf@posteo.net> <874kfy7qkf.fsf@gmail.com> From: pukkamustard Date: Thu, 22 Apr 2021 07:30:58 +0000 In-reply-to: <874kfy7qkf.fsf@gmail.com> Message-ID: <8635viiwcs.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Soo , 46297@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619078459; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=O621SIeZv0/Zp044NJ2Hf0u5XsEZNZM5mG09heWf5a0=; b=sRQId3SARrZ/D/LbaRRvTTiTy4etdUyb8dKEe/CwdguDE+McRiwNatjnvL7SY2W+Lf9a7N DriaF7Xw46zViyBMrt8lpMkYrnmneK8aNerqjeWrVuZB80ChIUfw2ZTyKgrP91QF5h/WCP 6a5JhdoIRbP40/VpADTVD8UmAnL4/xFSV9K0ZE4dMRJBDv/YMm10MY4CiN0AH3U1DTfYqY vFUeWrbnwh8aA5Qd/0JFqcyEeypAGWAQu8Iom3EJ90/oo0rkirxb8V5gVzRVY/CDaylDuK a5gO+WuVAqm7QjV9YNw6YgrE1J1Ep62KND0kCEW1vukyXRhvldpfDD+yucBZEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619078459; a=rsa-sha256; cv=none; b=NqCN8/ReStWjEqRBURfsBVV4rE2dlBBzWI55bHZ6jo4Oww1sxF96y0YgJBWQiPbBF1cWKp sbV/gvYx/Dzr4Lr0U60ip2aiMtkJgUWPrAN5OyQvdbOuY+y1CfL6rNQwk8GJGy8sIPP7Yz FQxoLBJFcR94bQgY2g15sU8a1jQepswTjgIBDt003DsJb7q6KS4jsOVqJDjGPkFJenFT98 CBBxVdtXjxReE3hYF70WJjpFHjKpaPY1c096Noy8PYt3O1UF/aASb9rTSXpOQpo4mnDRHk RgaHYq6R47Ch7bJBzvfKDLvhR831vHBDFG2k2OMH72YPtQFgnKuTjP+hK3MIQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=kS00k0c+; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=kS00k0c+; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 472ED113BE X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: pVF5FP+vTGlt Oleg Pykhalov writes: > It doens't fail without the patch. Could I ask what issue the > build-sandbox-paths introduce for you? Also it would be helpful > if you > provide terminal output with an error you occurred. Ah, sorry I didn't see that there where system tests. This is how I ran into the issue (nixpkgs/ folder is a checkout of the nixpkgs repo). ``` $ nix-build nixpkgs/ -A ocaml-ng.ocamlPackages_4_11.ocaml building '/nix/store/075nqnnbsgz2frmg5fzhj3ql8lajvgq3-ocaml-4.11.2.tar.xz.drv'... trying http://caml.inria.fr/pub/distrib/ocaml-4.11/ocaml-4.11.2.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3418k 100 3418k 0 0 2553k 0 0:00:01 0:00:01 --:--:-- 2555k building '/nix/store/p4b4shz2alnb2zpiyx44rf7yn5k30m32-ocaml-4.11.2.drv'... unpacking sources unpacking source archive /nix/store/9harmbwn44004ylalfnvlic4qp5ppvi4-ocaml-4.11.2.tar.xz source root is ocaml-4.11.2 setting SOURCE_DATE_EPOCH to timestamp 1614163229 of file ocaml-4.11.2/yacc/wstr.c patching sources configuring fixing libtool script ./build-aux/ltmain.sh configure flags: --disable-static -prefix /nix/store/gvwnh8wn0ib40fd6k3wa4xf7ja1y17l9-ocaml-4.11.2 /nix/store/bmnhfb10m2s3whl6478dmqhcrkjwk77y-stdenv-linux/setup: ./configure: /bin/sh: bad interpreter: No such file or directory builder for '/nix/store/p4b4shz2alnb2zpiyx44rf7yn5k30m32-ocaml-4.11.2.drv' failed with exit code 126 error: build of '/nix/store/p4b4shz2alnb2zpiyx44rf7yn5k30m32-ocaml-4.11.2.drv' failed ```` The build succeeds if I do following: ``` $ sudo nix-build nixpkgs/ -A ocaml-ng.ocamlPackages_4_11.ocaml --option build-sandbox-paths "/bin/sh=//nix/store/0xrjvxvh3wvdbf8pc2850jry1fcx292g-busybox-1.32.1/bin/busybox" these derivations will be built: /nix/store/p4b4shz2alnb2zpiyx44rf7yn5k30m32-ocaml-4.11.2.drv building '/nix/store/p4b4shz2alnb2zpiyx44rf7yn5k30m32-ocaml-4.11.2.drv'... unpacking sources unpacking source archive /nix/store/9harmbwn44004ylalfnvlic4qp5ppvi4-ocaml-4.11.2.tar.xz source root is ocaml-4.11.2 setting SOURCE_DATE_EPOCH to timestamp 1614163229 of file ocaml-4.11.2/yacc/wstr.c patching sources configuring fixing libtool script ./build-aux/ltmain.sh configure flags: --disable-static -prefix /nix/store/gvwnh8wn0ib40fd6k3wa4xf7ja1y17l9-ocaml-4.11.2 configure: Configuring OCaml version 4.11.2 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes . . . /nix/store/gvwnh8wn0ib40fd6k3wa4xf7ja1y17l9-ocaml-4.11.2 ``` Note that I need to use sudo as otherwise Nix would simply ignore my request to override system configurations. And I had to run `nix-build -A busybox` to make sure busybox was in the /nix/store. The build-sandbox-paths I manually supplied seem to be the defaults (as stated in documentation linked in John Soo's mail), so I assumed that just removing the build-sandbox-path setting from the nix.conf would solve the issue. I was a bit sloppy with testing it completely... This might be an upstream issue with how OCaml is built in Nix. I think Nix builders should use ${stdenv.shell} instead of /bin/sh (https://github.com/NixOS/nixpkgs/issues/183). But maybe good if we can fix it in the Guix nix-service as well. -pukkamustard