ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Как тут избавиться от fgrep ?
@ 2022-05-16  4:57 Ruslandh
  2022-05-16 10:31 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Ruslandh @ 2022-05-16  4:57 UTC (permalink / raw)
  To: ALT Linux Team development discussions


[-- 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 --]

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

* Re: [devel] Как тут избавиться от fgrep ?
  2022-05-16  4:57 [devel] Как тут избавиться от fgrep ? Ruslandh
@ 2022-05-16 10:31 ` Alexey Gladkov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2022-05-16 10:31 UTC (permalink / raw)
  To: ALT Linux Team development discussions

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



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

end of thread, other threads:[~2022-05-16 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16  4:57 [devel] Как тут избавиться от fgrep ? Ruslandh
2022-05-16 10:31 ` Alexey Gladkov

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