ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] missing interpreter in shebang
Date: Tue, 7 Apr 2020 03:07:50 +0300
Message-ID: <20200407000750.GA5602@altlinux.org> (raw)
In-Reply-To: <CA+qzenksWSJ40erSi5-btMyzat+-=B_uaWY4sHLTdZFgr_mqUw@mail.gmail.com>

On Tue, Apr 07, 2020 at 02:36:50AM +0300, Alexey Tourbin wrote:
> On Mon, Apr 6, 2020 at 1:58 PM Yuri Sedunov <aris@altlinux.org> wrote:
> > Неудачненько получилось заменить python на python3:
> >
> > http://git.altlinux.org/tasks/249453/gears/100/git?p=git;a=commitdiff;h=5627286fda5ad585180a4523bfccfedd163163da;hp=a81fe36e92950377232c0bddc643bb260d3f9afe
> >
> > diff --git a/api/addwcattr b/api/addwcattr
> > index 40766f9..b7030d7 100755 (executable)
> > --- a/api/addwcattr
> > +++ b/api/addwcattr
> > @@ -1,4 +1,4 @@
> > -#!/usr/bin/env python
> > +#!/usr/bin/env python32
> >  # Copyright 2007-2015  Pavel Rychly, Milos Jakubicek
> >  from __future__ import print_function
> >  from __future__ import unicode_literals
> > diff --git a/api/concinfo b/api/concinfo
> > index 30ee9c4..4f0b70f 100755 (executable)
> 
> shebang.req просто не не нашел python32, и запаковались битые /
> незапускаемые скрипты. Если бы путь к интерпретатору был указан
> абсолютный, а не через /usr/bin/env, то зависимость на
> /usr/bin/python32 проставилась бы в любом случае. Тогда появилась бы
> неудволетоворенная зависимость, что по смыслу лучше, чем незапускаемые
> скрипты (так как она сигнализирует, что для запуска скриптов чего-то
> не хватает). Наверное надо сделать, чтобы shebang.req в таких случаях
> либо принудительно проставлял путь на /usr/bin, либо обрывал сборку.
> 
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/addwcattr:
> python32 not found (skip)
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/concinfo:
> python32 not found (skip)
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/corpconfcheck:
> python32 not found (skip)
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/corpdatacheck:
> python32 not found (skip)
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/corpquery:
> python32 not found (skip)
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/decodevert:
> python32 not found (skip)
> shebang.req: /usr/src/tmp/manatee-open-buildroot/usr/bin/dumpalign:
> python32 not found (skip)

Проверил по свежим логам сборки:

Sisyphus-x86_64/latest/success$ grep '^shebang\.req: .*(skip)' *
contextkit-0.5.27-alt1.427.3:shebang.req: /usr/src/tmp/contextkit-buildroot/usr/bin/context-rlwrap: python2.5 not found (skip)
contextkit-0.5.27-alt1.427.3:shebang.req: /usr/src/tmp/contextkit-buildroot/usr/lib64/python2.7/site-packages/ContextKit/cltool.py: python2.5 not found (skip)
contextkit-0.5.27-alt1.427.3:shebang.req: /usr/src/tmp/contextkit-buildroot/usr/lib64/python2.7/site-packages/ContextKit/flexiprovider.py: python2.5 not found (skip)
gem-thin-1.7.2-alt1:shebang.req: /usr/src/tmp/gem-thin-buildroot/usr/lib/ruby/gems/2.5.0/gems/thin-1.7.2/script/bleak: ruby-bleak-house not found (skip)

Другими словами, от предлагаемого изменения поведения shebang.req
сломается только то, что уже сломано.


-- 
ldv


  reply	other threads:[~2020-04-07  0:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06  9:58 [devel] [girar-builder@altlinux.org: [#249453] [test-only] FAILED (try 4) manatee-open.git=2.167.10-alt1 gdex.git=3.12-alt1 ...] Kirill Maslinsky
2020-04-06 10:58 ` Yuri Sedunov
2020-04-06 12:10   ` Kirill Maslinsky
2020-04-06 12:11     ` Kirill Maslinsky
2020-04-06 23:36   ` [devel] missing interpreter in shebang (was: [#249453] FAILED (try 4) manatee-open.git=2.167.10-alt1) Alexey Tourbin
2020-04-07  0:07     ` Dmitry V. Levin [this message]
2020-04-06 13:45   ` [devel] [girar-builder@altlinux.org: [#249453] [test-only] FAILED (try 4) manatee-open.git=2.167.10-alt1 gdex.git=3.12-alt1 ...] Kirill Maslinsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200407000750.GA5602@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git