From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cAWLE8LA0WKRRQAAbAwnHQ (envelope-from ) for ; Fri, 15 Jul 2022 21:32:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QKtHE8LA0WKUugAAauVa8A (envelope-from ) for ; Fri, 15 Jul 2022 21:32:18 +0200 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 154AE31F1B for ; Fri, 15 Jul 2022 21:32:18 +0200 (CEST) Received: from localhost ([::1]:40502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCR2v-0001VU-8n for larch@yhetil.org; Fri, 15 Jul 2022 15:32:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCR2g-0001V6-8y for bug-guix@gnu.org; Fri, 15 Jul 2022 15:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCR2g-0001Vj-0G for bug-guix@gnu.org; Fri, 15 Jul 2022 15:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCR2f-0004ww-SE for bug-guix@gnu.org; Fri, 15 Jul 2022 15:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56467: vala command compiles files instead of running them Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 15 Jul 2022 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56467 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: two@envs.net Cc: 56467@debbugs.gnu.org Received: via spool by 56467-submit@debbugs.gnu.org id=B56467.165791347918971 (code B ref 56467); Fri, 15 Jul 2022 19:32:01 +0000 Received: (at 56467) by debbugs.gnu.org; 15 Jul 2022 19:31:19 +0000 Received: from localhost ([127.0.0.1]:42198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCR1y-0004vu-5z for submit@debbugs.gnu.org; Fri, 15 Jul 2022 15:31:18 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:34365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCR1s-0004vc-Sy for 56467@debbugs.gnu.org; Fri, 15 Jul 2022 15:31:16 -0400 Received: by mail-qv1-f45.google.com with SMTP id mi10so4412718qvb.1 for <56467@debbugs.gnu.org>; Fri, 15 Jul 2022 12:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=bYVDcXedV0rzuCviha6Y71wfC131WCeWUmfDHlwm4RY=; b=o9P6gmNzvDdIYFlDN2DDUHdIPRWSf7hwOZhDfjveRXVfNA/DGoQVfi3zuP4UWUutQ8 vrIL1I5hV86aPLzpYsaLXrKWY29DYUxCzx2YaPV+pBJ+ZQDg0WTWzo6uxhkP9sP5V+5I FbTsetbfH3TfRUznYHglTi77U/aEGfCJvSVuXj0bi5O2mzkFszLvvNpzUBJpG6+nqr1V Noabs+KWc1VuaqYKHkIl9oIINfK9KbKfuFPXQBx08Tg0kCWoCj+3LUfVuqB6P96wWp44 6lb+Gr8qh6GaeXyl5lVUcHlF51S7DFH8vWXgz/0V8Vr7EImVm5ohru3Mwk5wHjQLMcBm CLPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=bYVDcXedV0rzuCviha6Y71wfC131WCeWUmfDHlwm4RY=; b=2oUQeouu+3CA5G5WSwWx/BwW7WkvoTR2xRJRwXMjUIU4EWg22YsVHX7tzf7N/nrFgB CZnxy9LpGLPpxIxa0Dv3BXBAHyzEFwzVHehTsuX+LWxj2JIg71xJKYwB7br5nSL3LzX2 2PKcGbgFBkb1dsUUFgnmRiWkvlmR43MXf28Sf2G+cOKYsDU+854p1d49V4L5oCsYFtF5 a4xi9cidzmtk8b0G/oCnu+/XqG43gXsz7yTrMGYklN+yR472ZiP1aZQG/vnqQ0T0jjJb m9jke1JIiqrMHUOMoHEIgakpkOYnhZT1tYEC1Q41AYgVsNBMdrTrXohYXQtFmf+9f8eS 1+GQ== X-Gm-Message-State: AJIora+5Z3CP18ZUuB4xCPdEypTIuuYHoVaFNN6xQQdR0ssej+D8Y1RL Au8ISlW3VUgXqVw5SrYKalWivmz6+T52dg== X-Google-Smtp-Source: AGRyM1tifdeCPvyKHWbGIjrCMpdoI3B6ZyiuGCsdVKfLRczzYKaHSpEAiXiFVXLWdpjpGKL6OxBaBg== X-Received: by 2002:a05:6214:2389:b0:473:17a8:102 with SMTP id fw9-20020a056214238900b0047317a80102mr13376056qvb.40.1657913466921; Fri, 15 Jul 2022 12:31:06 -0700 (PDT) Received: from hurd (dsl-205-233-125-176.b2b2c.ca. [205.233.125.176]) by smtp.gmail.com with ESMTPSA id a11-20020a05620a438b00b006b58b806745sm4464010qkp.43.2022.07.15.12.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 12:31:06 -0700 (PDT) From: Maxim Cournoyer References: <20220709143848.1299.16298@mail.envs.net> Date: Fri, 15 Jul 2022 15:31:05 -0400 In-Reply-To: <20220709143848.1299.16298@mail.envs.net> (two@envs.net's message of "Sat, 09 Jul 2022 14:38:48 -0000") Message-ID: <87ilnyuq9y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657913538; 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=bYVDcXedV0rzuCviha6Y71wfC131WCeWUmfDHlwm4RY=; b=WzunMnDCIY5L/umv2JxooJO10ryWwLAKhns8KJNFblApY7SmRt1DnH9zdvOCahObrkm2yf czSIQzqdKdBXOEKwMfAAaQcXqeT4TBF7IB+KovRgtSeQQLcxbWTLs2D+xmEI+BbgZ2hZxv B1XBQUbx4eeydj5wZ1f6nBD1OoAUvFr2VYb4/0BPHJPsSdzYUK/n/whZZYRR+resK6ug4i I7IgF7hsiQdYcPdnxhIaTxd4hB9uxIG6W1gy+gczMpckSlDpJo/sbdGJmmLLoIWYNZbfzI kNuvScYxzOdz6EyCFJoU8ADyywkuKToU39Meqadi+XssqY6Ivm4m8zBchEhm9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657913538; a=rsa-sha256; cv=none; b=dugSn1jYOaHxBlSnAIHDePDP3d7YBhqGS8lTmu0BnkE4CDkAUHNPc3Jhd/st2usIZ8ZVQJ dF1Tmd8VeBwGiBJzTchic3WLlEesYgOsin4K5IWLC7T77lH5wxgK/w+D3ESqSDho/oklIF KJ2gQbq7wRUsElMz8vIaHnfHHrZAmvSqJGhaSLFtbUPEQ3wfWaEu/MCUn48ZjWe93+FYyF gTsNklA6ubvWtQfcriN8CwTLnWR1KNKwJlIDDyLXchPue34c8tXyuq42+xzYKcBFPY/j+j wePqVg9ftMgFElFv0HlCMfhiHgv4I+3IBqlWaLmygKZguzUf9ZoMg99w34JV6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=o9P6gmNz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=o9P6gmNz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 154AE31F1B X-Spam-Score: 5.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZtBKMUY9PsN1 Hi, two@envs.net writes: > the bin/vala-0.54 shell script executes bin/valac-0.54 which executes bin/.valac-0.54-real. > it should execute bin/.vala-0.54-real instead. > > expected (was the case before guix's update): > $ vala hello.vala > Hello, World! > $ ls > hello.vala > > actual: > $ vala hello.vala > $ ls > hello hello.vala > $ ./hello > Hello, World! That's indeed confusing, but it stems from the odd symbolic links layout that upstream installs: --8<---------------cut here---------------start------------->8--- lrwxrwxrwx 1 nixbld nixbld 9 Jul 15 19:18 vala -> vala-0.54 lrwxrwxrwx 1 nixbld nixbld 10 Jul 15 19:18 vala-0.54 -> valac-0.54 lrwxrwxrwx 1 nixbld nixbld 10 Jul 15 19:18 valac -> valac-0.54 -rwxr-xr-x 1 nixbld nixbld 147248 Jul 15 19:18 valac-0.54 lrwxrwxrwx 1 nixbld nixbld 12 Jul 15 19:18 valadoc -> valadoc-0.54 -rwxr-xr-x 1 nixbld nixbld 451032 Jul 15 19:18 valadoc-0.54 lrwxrwxrwx 1 nixbld nixbld 24 Jul 15 19:18 vala-gen-introspect -> vala-gen-introspect-0.54 -rwxr-xr-x 1 nixbld nixbld 1067 Jul 15 19:18 vala-gen-introspect-0.54 lrwxrwxrwx 1 nixbld nixbld 12 Jul 15 19:18 vapigen -> vapigen-0.54 -rwxr-xr-x 1 nixbld nixbld 720128 Jul 15 19:18 vapigen-0.54 --8<---------------cut here---------------end--------------->8--- If you read attentively, you'll see there's no proper 'vala' binary, vala, vala-0.54 and valac are all symbolic links to valac-0.54, which is the compiler. Perhaps upstream changed the behavior? Or it could be that they use arg0 (the program name) to infer different behaviors, which gets mangled by our wrappers. Do you have another build of vala to compare against, preferably at the same version? Thanks, Maxim