ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] tetex-3.0: test -f /bin/ksh в скриптах
@ 2005-02-26  0:57 Yura Zotov
  2005-02-26  8:02 ` [sisyphus] " Michael Shigorin
  0 siblings, 1 reply; 3+ messages in thread
From: Yura Zotov @ 2005-02-26  0:57 UTC (permalink / raw)
  To: Sisyphus List

В нескольких скриптах в tetex-3.0 есть такие конструкции:

test -f /bin/ksh && test -z "$RUNNING_KSH" \
  && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
  && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; }
unset RUNNING_KSH

test -f /bin/bsh && test -z "$RUNNING_BSH" \
  && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \
  && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/sh $0 ${1+"$@"}; }
unset RUNNING_BSH

rpm их понимает и вставляет зависимость на /bin/ksh:

Processing files: tetex-core-3.0-alt0yz01
Finding Provides (using /usr/lib/rpm/find-provides)
Executing(Provides): /bin/sh -e /home/yura/Documents/RPM/TMP/rpm-tmp.4260
+ umask 022
+ /bin/mkdir -p /home/yura/Documents/RPM/BUILD
+ cd /home/yura/Documents/RPM/BUILD
+ /usr/lib/rpm/find-provides
+ exit 0
Finding Requires (using /usr/lib/rpm/find-requires)
Executing(Requires): /bin/sh -e /home/yura/Documents/RPM/TMP/rpm-tmp.79671
+ umask 022
+ /bin/mkdir -p /home/yura/Documents/RPM/BUILD
+ cd /home/yura/Documents/RPM/BUILD
+ /usr/lib/rpm/find-requires
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory
error: file /bin/ksh: No such file or directory

<вырезано>

Requires: dialog, /bin/ksh, /etc/cron.daily, bash, diffutils, ed,
findutils, gawk, и т.д.

Кстати, этих скриптов как раз 8 штук и эти error-ы относятся как
раз к ним. Подскажите, пожалуйста, как лучше это исправить. Я могу
просто убрать этот код и всё. Но, может есть менее радикальный способ?

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

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sisyphus] Re: tetex-3.0: test -f /bin/ksh в скриптах
  2005-02-26  0:57 [sisyphus] tetex-3.0: test -f /bin/ksh в скриптах Yura Zotov
@ 2005-02-26  8:02 ` Michael Shigorin
  2005-02-26 16:24   ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Shigorin @ 2005-02-26  8:02 UTC (permalink / raw)
  To: Sisyphus List

On Sat, Feb 26, 2005 at 03:57:37AM +0300, Yura Zotov wrote:
> error: file /bin/ksh: No such file or directory
> Кстати, этих скриптов как раз 8 штук и эти error-ы относятся
> как раз к ним. Подскажите, пожалуйста, как лучше это исправить.
> Я могу просто убрать этот код и всё. Но, может есть менее
> радикальный способ?

Есть ленивый -- добавить в сборочную среду pdksh. :)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Re: tetex-3.0: test -f /bin/ksh в скриптах
  2005-02-26  8:02 ` [sisyphus] " Michael Shigorin
@ 2005-02-26 16:24   ` Dmitry V. Levin
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2005-02-26 16:24 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

On Sat, Feb 26, 2005 at 10:02:23AM +0200, Michael Shigorin wrote:
> On Sat, Feb 26, 2005 at 03:57:37AM +0300, Yura Zotov wrote:
> > error: file /bin/ksh: No such file or directory
> > Кстати, этих скриптов как раз 8 штук и эти error-ы относятся
> > как раз к ним. Подскажите, пожалуйста, как лучше это исправить.
> > Я могу просто убрать этот код и всё. Но, может есть менее
> > радикальный способ?
> 
> Есть ленивый -- добавить в сборочную среду pdksh. :)

И получить его в зависимость?

Нет, лучше убрать левый код.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-26 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-26  0:57 [sisyphus] tetex-3.0: test -f /bin/ksh в скриптах Yura Zotov
2005-02-26  8:02 ` [sisyphus] " Michael Shigorin
2005-02-26 16:24   ` Dmitry V. Levin

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