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 ms11 with LMTPS id KBW0E3VgkF/tSgAA0tVLHw (envelope-from ) for ; Wed, 21 Oct 2020 16:23:17 +0000 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 oEaCD3VgkF/ZVwAA1q6Kng (envelope-from ) for ; Wed, 21 Oct 2020 16:23:17 +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 BD1259403D5 for ; Wed, 21 Oct 2020 16:23:16 +0000 (UTC) Received: from localhost ([::1]:54810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVGtP-0008TA-AR for larch@yhetil.org; Wed, 21 Oct 2020 12:23:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVGtD-0008QI-Cu for guix-patches@gnu.org; Wed, 21 Oct 2020 12:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVGtC-00044Z-0o for guix-patches@gnu.org; Wed, 21 Oct 2020 12:23:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVGtB-0006CB-Ta for guix-patches@gnu.org; Wed, 21 Oct 2020 12:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#39807] [PATCH] guix: pack: Only wrap executable files. Resent-From: Eric Bavier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Oct 2020 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39807 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39807@debbugs.gnu.org Received: via spool by 39807-submit@debbugs.gnu.org id=B39807.160329733123726 (code B ref 39807); Wed, 21 Oct 2020 16:23:01 +0000 Received: (at 39807) by debbugs.gnu.org; 21 Oct 2020 16:22:11 +0000 Received: from localhost ([127.0.0.1]:50344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVGsM-0006Ac-N5 for submit@debbugs.gnu.org; Wed, 21 Oct 2020 12:22:10 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVGsL-0006AO-3q for 39807@debbugs.gnu.org; Wed, 21 Oct 2020 12:22:09 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E4A0E2400FE for <39807@debbugs.gnu.org>; Wed, 21 Oct 2020 18:22:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1603297322; bh=qwGmpiLE2wtyacP7hEprxe7iJklKBsyNQPukpbRGXnE=; h=Subject:From:To:Cc:Date:From; b=GiaDVvs7/86W3xBD7I48QHVDY6Z24ejjAEC05ozcWWCdZKrtPPocd9lEuVyUHm9ZT TQgVxTEZ0NgbjqSJurjIdFCVoMADkPTNIiJEcOSNX/WyOVPvwCtm3xtnFoudnzXV5j WIJ+y96p6vrJfhW6UUbodVx8Yc/egYUivR4ulKdBQiYLoi0J2RymdizVViEoHAEH4i laDcQoaq9fjKC+VwyoDGZrVv0jByck3gek6vRfBLqmM35u+/c2t4HOy0dFVEc/trRv mryFfVIiK+Cd7mG+79eyyMDXvlQ9FoRwMZfA2eIjtdvpf1c8+r6CUsknBmyQpefnSb 3Nb1k45QUydUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CGbNn6hBWz6tn7; Wed, 21 Oct 2020 18:22:01 +0200 (CEST) Message-ID: <48f280214fca0f8bd17aeff46c42ee76a04c90f2.camel@posteo.net> From: Eric Bavier Date: Wed, 21 Oct 2020 11:21:57 -0500 In-Reply-To: <87pn5b383l.fsf@gnu.org> References: <3ace941f920d87da65de6e4fdc16add5b9725434.camel@posteo.net> <83416910901e77b537b64de392ee02598ccd72ff.camel@posteo.net> <87wnzk7xs0.fsf@gnu.org> <69f5446e2accd24cd1de9e3964373ab525b0875d.camel@posteo.net> <87pn5b383l.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=GiaDVvs7; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: nuIc7W3kWIaW On Wed, 2020-10-21 at 17:35 +0200, Ludovic Courtès wrote: > Hi Eric, > > Eric Bavier skribis: > > > (mkdir-p (dirname result)) > > (apply invoke #$compiler "-std=gnu99" "-static" "-Os" "-g0" "-Wall" > > "run.c" "-o" result > > + (string-append "-DWRAPPER_PROGRAM=\"" result "\"") > > Can we just write (canonical-path result) here? That way we wouldn’t > need ‘find-input-files’ and related changes. > Guile's canonicalize-path will raise and error if the path does not already exist. We could create a dummy file at result, then call canonicalize-path? but that seems clumsier than forming a canonical name in the first place? `~Eric