ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Yura Zotov <yz@altlinux.ru>
To: Sisyphus List <sisyphus@altlinux.ru>
Subject: [sisyphus] tetex-3.0: перл внутри shell-скрипта...
Date: Fri, 25 Feb 2005 14:15:52 +0300
Message-ID: <20050225111552.GB24022@vezyolka.homeip.net> (raw)

Есть в новом tetex скрипт /usr/bin/a2ping... Вот его начало:

#! /bin/sh
eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
#!perl -w
package Htex::a2ping;  $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
#
# This program is free software, licensed under the GNU GPL, >=2.0.
# This software comes with absolutely NO WARRANTY. Use at your own risk!
#
package just; BEGIN{$INC{'just.pm'}='just.pm'}
BEGIN{ $just::VERSION=2 }
sub end(){1}
sub main(){}

BEGIN{$ INC{'strict.pm'}='strict.pm'} {
package strict;
use just;
# by pts@fazekas.hu at Wed Jan 10 12:42:08 CET 2001
require 5.002;

Далее до конце перл. rpm на него ругается

Finding Requires (using /usr/lib/rpm/find-requires)
Executing(Requires): /bin/sh -e
/home/yura/Documents/RPM/TMP/rpm-tmp.25919
+ umask 022
+ /bin/mkdir -p /home/yura/Documents/RPM/BUILD
+ cd /home/yura/Documents/RPM/BUILD
+ /usr/lib/rpm/find-requires
/home/yura/Documents/RPM/TMP/tetex-buildroot/usr/bin/a2ping: line 6: syntax error near unexpected token `.*'
/home/yura/Documents/RPM/TMP/tetex-buildroot/usr/bin/a2ping: line 6: `package Htex::a2ping;  $0=~/(.*)/s;unshift@INC,'.
error: /bin/sh failed
error: Failed to find Requires


RPM build errors:
    /bin/sh failed
        Failed to find Requires
	

Подскажите, пожалуйста, как с этим бороться. Правильно ли я
понимаю, что это из-за матрёшки с шеллом и перлом?

Заранее спасибо за помощь.

--
Юрий А. Зотов



             reply	other threads:[~2005-02-25 11:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-25 11:15 Yura Zotov [this message]
2005-02-25 12:20 ` Dmitry V. Levin

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=20050225111552.GB24022@vezyolka.homeip.net \
    --to=yz@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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