From: Ruslandh <ruslandh@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] Как тут избавиться от fgrep ?
Date: Mon, 16 May 2022 07:57:12 +0300
Message-ID: <6e54c901-22d6-af97-b315-8f550d63a2b5@gmail.com> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 965 bytes --]
Здравствуйте :
Что-то у меня в спеке palemoon неправильно работает этот кусок:
https://git.altlinux.org/people/ruslandh/packages/?p=palemoon.git;a=blob_plain;f=altlinux/palemoon.spec;hb=307ee06e02af33e502a8ac55a7008a772e514367
# Add real RPATH
(set +x
rpath="/$(printf %%s '%palemoon_bindir' |tr '[:print:]' '_')"
find \
%buildroot/%palemoon_bindir \
-type f |
while read f; do
t="$(readlink -ev "$f")"
file "$t" | fgrep -qs ELF || continue
if chrpath -l "$t" | fgrep -qs "PATH=$rpath"; then
chrpath -r "%palemoon_bindir" "$t"
fi
done
)
Во-первых хочу от fgrep избавиться, а во вторых я мог ошибку внести в него.
Ruslandh, [16.05.2022 07:04]
На комнду
chrpath -r "%palemoon_bindir" "$t"
не выходит, хотя должен был
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 657 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next reply other threads:[~2022-05-16 4:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 4:57 Ruslandh [this message]
2022-05-16 10:31 ` Alexey Gladkov
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=6e54c901-22d6-af97-b315-8f550d63a2b5@gmail.com \
--to=ruslandh@gmail.com \
--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