From: Alexey Tourbin <at@altlinux.ru> To: devel@lists.altlinux.org Subject: Re: [devel] исполняемые/неисполняемые скрипты Date: Mon, 24 Sep 2007 13:03:01 +0400 Message-ID: <20070924090301.GS5297@solemn.turbinal> (raw) In-Reply-To: <20070924081418.GH13893@osdn.org.ua> [-- Attachment #1: Type: text/plain, Size: 1423 bytes --] On Mon, Sep 24, 2007 at 11:14:18AM +0300, Michael Shigorin wrote: > On Mon, Sep 24, 2007 at 03:08:19AM +0400, Alexey Tourbin wrote: > > С одной стороны, как бы некрасиво "пережимать" (то есть делать > > то, чего не просят). С другой стороны, исходя из того, что > > пакет собирает "средный maintainer", жать надо чем можно > > сильнее. > > Хороший случай для warning на длительный период времени > (полгода-год), вот только не вижу для этого возможности > в случае искалки зависимостей. Как раз и сделал warning. Есть скрипты shebang.req.files и shebang.req, который обрабатывают скрипты с #! и ставят зависимость на интерпретатор. Если скрипт не исполняемый, shebang.req.files будет выдавать warning "executable not executable". commit 8ee696768c491759e7815fc42c3347618115b342 Author: Alexey Tourbin <at@altlinux> Date: Mon Sep 24 02:57:42 2007 +0400 shebang.req.files: added "executable not executable" warning diff --git a/scripts/shebang.req.files b/scripts/shebang.req.files index e3c475a..2f4838e 100755 --- a/scripts/shebang.req.files +++ b/scripts/shebang.req.files @@ -1,5 +1,8 @@ #!/bin/sh -efu while IFS=$'\t' read -r f t; do - [ -z "${t##*script text executable*}" ] && - [ -x "$f" ] && echo "$f" ||: + case "$t" in + *"script text executable"*) + [ -x "$f" ] && echo "$f" || + echo "${0##*/}: executable script $f not executable" >&2 ;; + esac done [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-09-24 9:03 UTC|newest] Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-09-23 21:48 [devel] rpm-build 4.0.4-alt78+ RC Alexey Tourbin 2007-09-23 22:10 ` Dmitry V. Levin 2007-09-23 22:36 ` Alexey Tourbin 2007-09-23 23:08 ` [devel] исполняемые/не исполняемые скрипты Alexey Tourbin 2007-09-24 8:14 ` [devel] исполняемые/неисполняемые скрипты Michael Shigorin 2007-09-24 9:03 ` Alexey Tourbin [this message] 2007-09-24 10:59 ` Michael Shigorin 2007-09-26 12:23 ` Денис Смирнов 2007-09-26 12:33 ` Michael Shigorin 2007-09-27 13:08 ` Денис Смирнов 2007-09-27 20:53 ` [devel] [JT] " Michael Shigorin 2007-09-29 10:38 ` Денис Смирнов 2007-09-30 21:00 ` [devel] [RFC] -contrib policy proposal Michael Shigorin 2007-10-21 10:52 ` Денис Смирнов 2007-10-21 11:54 ` Michael Shigorin 2007-10-21 16:04 ` led 2007-10-21 16:06 ` [devel] [JT] " Michael Shigorin 2007-09-26 13:10 ` [devel] исполняемые/неисполняемые скрипты Alexey Tourbin 2007-09-24 20:31 ` [devel] rpm-build 4.0.4-alt78+ RC Alexey Tourbin 2007-09-24 21:04 ` Dmitry V. Levin 2007-09-24 21:13 ` [devel] rpm-build-mono Alexey Tourbin 2007-09-24 21:30 ` [devel] rpm-build 4.0.4-alt78+ RC Sergey Bolshakov 2007-09-24 21:40 ` Alexey Tourbin 2007-09-24 22:14 ` Sergey Bolshakov 2007-09-24 22:30 ` Alexey Tourbin 2007-09-24 23:02 ` Sergey Bolshakov 2007-09-24 23:12 ` Alexey Tourbin 2007-09-25 13:17 ` Dmitry V. Levin 2007-09-25 13:37 ` Sergey Bolshakov 2007-09-25 14:34 ` Alexey Tourbin 2007-09-25 15:06 ` Sergey Bolshakov 2007-09-25 15:35 ` Alexey Tourbin 2007-09-25 15:44 ` Sergey Bolshakov 2007-09-25 16:21 ` Alexey Tourbin 2007-09-25 16:50 ` Alexey I. Froloff 2007-09-25 17:01 ` Alexey Tourbin 2007-09-25 17:33 ` Alexey I. Froloff 2007-09-25 6:18 ` Kirill A. Shutemov 2007-09-25 3:09 ` [devel] rpm-build 4.0.4-alt78+ RC [JT] Vitaly Lipatov 2007-09-25 14:43 ` Alexey Tourbin 2007-09-25 6:13 ` [devel] rpm-build 4.0.4-alt78+ RC Kirill A. Shutemov 2007-09-24 22:33 ` Alexey I. Froloff 2007-09-24 22:36 ` Sergey Bolshakov 2007-09-24 22:28 ` Alexey I. Froloff 2007-09-24 22:50 ` Dmitry V. Levin 2007-09-24 21:30 ` Dmitry V. Levin 2007-09-24 22:01 ` Alexey Tourbin 2007-09-24 22:24 ` Dmitry V. Levin 2007-09-29 17:09 ` Alexey Tourbin 2007-09-30 22:03 ` Dmitry V. Levin 2007-10-01 23:42 ` [devel] pkg-config --libs Dmitry V. Levin 2007-10-04 23:27 ` Dmitry V. Levin 2007-10-05 21:30 ` Led 2007-09-25 17:17 ` [devel] rpm-build 4.0.4-alt78+ RC Alexey Tourbin 2007-09-29 9:45 ` [devel] pkgconfiglib.req Alexey Tourbin 2007-09-29 10:17 ` [devel] libaprutil1-devel-1.2.8-alt2 /usr/lib/libapr-1.so Alexey Tourbin 2007-09-29 11:51 ` [devel] zziplib-devel-0.13.49-alt1 Alexey Tourbin 2007-09-29 18:32 ` Alexey Tourbin 2007-09-29 15:17 ` [devel] WRONG pkgconfiglib.req Alexey Tourbin 2007-09-27 22:24 ` [devel] rpm-build 4.0.4-alt78+ RC Alexey I. Froloff 2007-09-28 3:38 ` Alexey Tourbin 2007-09-28 5:33 ` Alexey I. Froloff 2007-09-28 5:40 ` Alexey Tourbin 2007-09-28 6:04 ` Alexey Tourbin
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=20070924090301.GS5297@solemn.turbinal \ --to=at@altlinux.ru \ --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