ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ruslandh <>
To: ALT Linux Team development discussions <>
Subject: [devel] Как тут избавиться от fgrep ?
Date: Mon, 16 May 2022 07:57:12 +0300
Message-ID: <> (raw)

[-- Attachment #1.1.1: Type: text/plain, Size: 965 bytes --]

Здравствуйте :

Что-то у меня в спеке palemoon неправильно работает этот кусок:;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"

Во-первых хочу от 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 --]

             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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* 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 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/ \
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone