ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Denis Kuznetsov <kde@kde.kiev.ua>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: [sisyphus] shell.req
Date: Mon, 27 Aug 2012 16:39:38 +0300
Message-ID: <503B789A.50305@kde.kiev.ua> (raw)

Доброго времени суток.
Решил попробовать собрать zfs. Сборка завершается с ошибкой:

/home/kde/tmp/zfs-buildroot/usr/bin/zpool_layout: line 176: syntax error 
near unexpected token `('
/home/kde/tmp/zfs-buildroot/usr/bin/zpool_layout: line 176: `            
ls ${LABEL}-+([0-9a-f])-switch-port:${p}-slot:+([0-9]) \'
shell.req: ERROR: /home/kde/tmp/zfs-buildroot/usr/bin/zpool_layout: 
/bin/bash --rpm-requires failed
find-requires: ERROR: /usr/lib/rpm/shell.req failed
ошибка: /bin/sh не удалось
ошибка: Невозможно найти Requires


Собственно что в скрипте.
167 # Generate channel/disk layout table for comment header.
168 print_channel_layout() {
169     pushd ${DEV_DISK_DIR} >/dev/null
170     echo "# ----------------- Channel/Disk Layout -------------------"
171     echo "# Channel  Disks"
172     if [ ${TOPOLOGY} = "switch" ] ; then
173         for (( i=0; i<${#SWITCH_PORTS[*]}; i++ )); do
174             printf "# %-9s" ${CHANNELS[$i]}
175             p=${SWITCH_PORTS[$i]}
176             ls ${LABEL}-+([0-9a-f])-switch-port:${p}-slot:+([0-9]) \
177                 2>/dev/null | cut -f3 -d':' | sort -u -n | \
178                 xargs | tr ' ' ','
179         done
180     else
181         for (( i=0, k=0; i<${#BUSES[*]}; i++ )); do
182             for (( j=0; j<${#HOST_PORTS[*]}; j++, k++ )); do
183                 printf "# %-9s" ${CHANNELS[$k]}
184                 ls *:${BUSES[$i]}:*:${HOST_PORTS[$j]}* \
185                     2>/dev/null | cut -f7 -d'-' | \
186                     sort -u -n | xargs | tr ' ' ','
187             done
188         done
189     fi
190     echo "#"
191     popd > /dev/null
192 }
193

Собственно вопрос как всегда, куда копать?

-- 
Denis Kuznetsov
mail:   kde{at}kde.kiev.ua
gtalk: kde{at}kde.kiev.ua



             reply	other threads:[~2012-08-27 13:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 13:39 Denis Kuznetsov [this message]
2012-08-27 15:56 ` Alexey Tourbin
2012-08-27 19:19   ` Denis Kuznietsov
2012-08-27 21:17     ` Dmitry V. Levin
2012-08-28  6:46         ` [sisyphus] bash Alexey Tourbin
2012-08-28  7:14           ` Denis Kuznetsov

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=503B789A.50305@kde.kiev.ua \
    --to=kde@kde.kiev.ua \
    --cc=sisyphus@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 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