From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: How to reference external program used in shell-scripts? Date: Tue, 03 Sep 2019 15:01:25 +0200 Message-ID: <87h85tsfdm.fsf@gnu.org> References: <72f51f57-3d1a-15f3-458b-cf036841c15a@crazy-compilers.com> <87pnlfww2k.fsf@elephly.net> <87d0hewwfu.fsf@elephly.net> <670e61cd-d3e3-6a91-0773-715d19f5052a@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i58R7-00074q-Sx for guix-devel@gnu.org; Tue, 03 Sep 2019 09:01:33 -0400 In-Reply-To: <670e61cd-d3e3-6a91-0773-715d19f5052a@crazy-compilers.com> (Hartmut Goebel's message of "Tue, 3 Sep 2019 11:08:17 +0200") 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" To: Hartmut Goebel Cc: guix-devel@gnu.org Hello Hartmut, Hartmut Goebel skribis: > My concerns are not about building, but about installing. A concrete > example: > > * Ansible is a Python program running ssh via a path to > /gnu/store/=E2=80=A6-openssh-8.0p1/bin/ssh > * Mary installs ansible. > * Now openssh shows a serious bug and Mary updates openssh using "guix > -u openssh" > > Obviously this will *not* update ansible, and ansible will still use the > old, vulnerable version of openssh. > > OTOH, if ansible would run ssh via $PATH, ansible would pick up the new > version of openssh. The whole idea of functional software deployment is that it=E2=80=99s state= less: you can tell that /gnu/store/=E2=80=A6-ansible-1.2.3 will always behave the same, no matter what other programs are available on your machine. Introducing =E2=80=9Cdynamic binding=E2=80=9D (e.g., looking up programs in= $PATH) would allow for faster security updates in the example you gave, but that would be at the expense of that core property I described above. It would be a regression. I think what we need in this case is (1) fast security updates, which is what grafts help us achieve, and (2) documentation that clarifies what the deployment model is, such that Mary would know that =E2=80=98ansible=E2= =80=99 also needs to be upgraded in the example above. Ludo=E2=80=99.