From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#26752: Ansible & others' problems with wrapped '.ansible-real' scripts Date: Wed, 03 May 2017 12:04:17 +0200 Message-ID: <874lx2w926.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5r9d-0001RW-C6 for bug-guix@gnu.org; Wed, 03 May 2017 06:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5r9a-0000ZH-8A for bug-guix@gnu.org; Wed, 03 May 2017 06:05:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5r9a-0000ZA-4d for bug-guix@gnu.org; Wed, 03 May 2017 06:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d5r9Z-0007MK-Rf for bug-guix@gnu.org; Wed, 03 May 2017 06:05:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Jelle Licht's message of "Tue, 2 May 2017 22:08:38 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Jelle Licht Cc: 26752@debbugs.gnu.org Jelle Licht skribis: > I had some problems getting current ansible package to work. It seems that > the bin/ansible script which is created as part of the python-build-system > via a call to `wrap-program' interferes with certain expectations ansible > has regarding how it and its subcommands are called. > > This mechanism does not work well with our generated created .ansible-rea= l. > See [1] for a similar issue that has since been worked around in the newe= st > version of ansible. > > For now, I have a similar workaround that add some guix-specific checks to > ansible looking for being called as .ansible-real, though I do consider > this a hack. This problem is indicative of a bigger issue: the fact that > wrap-program currently leads to subtle bugs for lots of scripts. There has > been some noise on #guix about solving this problem in general. For the record, the discussion is visible here: . I think it=E2=80=99s bad for a program to rely on argv[0], but I also think those .thing-real are kinda ugly. :-) Ludo=E2=80=99.