From: Alexey Gladkov <legion@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Как тут избавиться от fgrep ?
Date: Mon, 16 May 2022 12:31:45 +0200
Message-ID: <20220516103145.6suuuedszhuwgfp3@example.org> (raw)
In-Reply-To: <6e54c901-22d6-af97-b315-8f550d63a2b5@gmail.com>
On Mon, May 16, 2022 at 07:57:12AM +0300, Ruslandh wrote:
> Здравствуйте :
>
>
> Что-то у меня в спеке 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 избавиться, а во вторых я мог ошибку внести в него.
Самое простое заменить fgrep на "grep -F".
> Ruslandh, [16.05.2022 07:04]
> На комнду
>
> chrpath -r "%palemoon_bindir" "$t"
>
> не выходит, хотя должен был
Я вот этого не понял.
--
Rgrds, legion
prev parent reply other threads:[~2022-05-16 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 4:57 Ruslandh
2022-05-16 10:31 ` Alexey Gladkov [this message]
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=20220516103145.6suuuedszhuwgfp3@example.org \
--to=legion@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