From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] tcl.req.files: re-exec check implemented
Date: Mon, 10 Sep 2007 12:48:13 +0400
Message-ID: <20070910084813.GA6051@solemn.turbinal> (raw)
In-Reply-To: <9713cfcc0709091627x508b9094y4cda6be9cd04a47d@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]
On Mon, Sep 10, 2007 at 02:27:11AM +0300, Led wrote:
> 2007/9/10, Alexey Tourbin <at@altlinux.ru>:
> > > TclTutor-2.0-alt0.2
> > > find-requires: running scripts
> > > (files,lib,pam,perl,pkgconfig,python,shebang,shell,static,symlinks,tcl)
> > > /usr/lib/rpm/tcl.req: line 3: /usr/bin/tclsh: No such file or directory
> > > /usr/lib/rpm/tcl.req: line 3: exec: /usr/bin/tclsh: cannot execute: No such file or
> > > directory
> > > error: /bin/sh failed
> > > RPM build errors:
> > > error: Failed to find Requires
> > > /bin/sh failed
> >
> > Этот пакет содержит некоторое количество tcl скриптов.
> > $ rpmfile /ALT/Sisyphus/files/noarch/RPMS/TclTutor-2.0-alt0.2.noarch.rpm |grep tcl
> > /usr/bin/TclTutor.tcl 100755 Bourne shell script text executable
> > /usr/bin/tcltutor 120777 symbolic link to `TclTutor.tcl'
> > /usr/share/TclTutor/htmllib.tcl 100644 Bourne shell script text executable
> > /usr/share/TclTutor/scaler.tcl 100644 ASCII English text
> > $
> >
> > Эти скрипты, по-видимому, не требуют никаких tcl пакетов.
>
> Там вот такое:
> $ head -3 /usr/bin/TclTutor.tcl
> #!/bin/sh
> # \
> exec wish "$0" "$@"
>
> Наветное, имеет смысл заменить на явное
> #!/usr/bin/wish
> ?
В общем я реализовал проверку на "exec tclsh" и "exec wish" в
tcl.req.files. Это означает, что все #!/bin/sh скрипты будут
проверяться, нет ли в первой значащей строчке "exec tclsh".
Это не очень красиво с точки зрения скорости поиска зависимостей,
то есть как бы немножко нарушается идея того, что *.req.files скирпты
не должны делать ничего лишнего. Но и не критично.
См. /people/at/packages/rpm-build-tcl.git
$ file -NF$'\t' /usr/bin/* |grep 'Bourne shell script text' |./tcl.req.files
/usr/bin/gitk
/usr/bin/movaMTK-real
/usr/bin/movaTK-real
/usr/bin/mova_sendTK
/usr/bin/pentaxsetup
$
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-09-10 8:48 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-09 18:19 [devel] rpm-build-4.0.4-alt78 rebuild status Alexey Tourbin
2007-09-09 19:45 ` [devel] rpm-build-4.0.4-alt78 beehive_status Alexey Tourbin
2007-09-09 19:54 ` Slava Semushin
2007-09-09 19:57 ` Slava Semushin
2007-09-09 20:15 ` Alexey Tourbin
2007-09-09 20:12 ` Alexey Tourbin
2007-09-09 20:16 ` Led
2007-09-09 22:30 ` Alexey Tourbin
2007-09-09 20:39 ` Alexey I. Froloff
2007-09-09 23:05 ` Alexey Tourbin
2007-09-09 22:28 ` [devel] rpm-build-4.0.4-alt78 tcl dependencies Alexey Tourbin
2007-09-09 23:27 ` Led
2007-09-09 23:48 ` [devel] #! shebang fixer Alexey Tourbin
2007-09-10 8:48 ` Alexey Tourbin [this message]
2007-09-10 10:46 ` [devel] rpm-build-4.0.4-alt78 tcl dependencies Sergey Bolshakov
2007-09-10 20:46 ` Alexey Tourbin
2007-09-10 21:52 ` [devel] rpm-build-4.0.4-alt78 -- remove rpm-build-tcl? Alexey Tourbin
2007-09-11 9:49 ` Sergey Bolshakov
2007-09-11 14:59 ` Alexey Tourbin
2007-09-11 15:35 ` Led
2007-09-10 22:13 ` [devel] rpm-build-4.0.4-alt78 rpm-build-tcl vs BuildRequires(pre) Alexey Tourbin
2007-09-11 9:30 ` Sergey Bolshakov
2007-09-11 15:49 ` [devel] link tcl extensions with libtcl Alexey Tourbin
2007-09-10 20:39 ` [devel] rpm-build-4.0.4-alt78 tcl SCRIPTS DISABLED Alexey Tourbin
2007-09-10 22:38 ` [devel] rpm-build-4.0.4-alt78 tcl dependencies Michael Shigorin
2007-09-10 10:13 ` [devel] rpm-build-4.0.4-alt78 beehive_status Sergey Bolshakov
2007-09-10 22:28 ` [devel] rpm-build-tcl Requires += tcl? Michael Shigorin
2007-09-11 16:13 ` [devel] Zope-2.7.7-alt1 Alexey Tourbin
2007-09-10 22:25 ` [devel] rpm-build-4.0.4-alt78 rebuild status Michael Shigorin
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=20070910084813.GA6051@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