ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: grep-warnings
@ 2020-03-09 15:59 Ivan Zakharyaschev
  2020-03-09 16:03 ` Ivan Zakharyaschev
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Zakharyaschev @ 2020-03-09 15:59 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]

On Mon, 9 Mar 2020, Igor Vlasenko wrote:

> logoved-grep (в разработке) может помочь.
> 
> примеры запуска на логах из ftbfs.

Раз уж зашла речь про grep по логам, сообщу про нехитрый скрипт, который 
помогает мне отследить по логам, не появилось ли новых предупреждений. 

(Конечно, это не имеет прямого отношения к первоначальному вопросу о 
поиске сообщения об ошибке).

Например, появилось 4 новых предупреждения:

[imz@team ~]$ zstdcat /beehive/logs/Sisyphus-i586/archive/2019/0613/success/apt-0.5.15lorg2-alt67.zst | grep-warnings --rpmb c | wc -l
376
[imz@team ~]$ zstdcat /beehive/logs/Sisyphus-i586/archive/2019/0614/success/apt-0.5.15lorg2-alt68.zst | grep-warnings --rpmb c | wc -l
380
[imz@team ~]$ diff <(zstdcat /beehive/logs/Sisyphus-i586/archive/2019/0613/success/apt-0.5.15lorg2-alt67.zst |grep-warnings --rpmb c |sort) <(zstdcat /beehive/logs/Sisyphus-i586/archive/2019/0614/success/apt-0.5.15lorg2-alt68.zst |grep-warnings --rpmb c |sort)
234a235,236
> rpm/rpmlistparser.cc::76: warning: 'int headerGetEntry(Header, rpm_tag_t, rpm_tagtype_t*, void**, rpm_count_t*)' is deprecated [-Wdeprecated-declarations]!if (headerGetEntry(header, RPMTAG_DISTTAG, &type, (void **)&dtag, &count) == 1!^
> rpm/rpmlistparser.cc::76: warning: 'int headerGetEntry(Header, rpm_tag_t, rpm_tagtype_t*, void**, rpm_count_t*)' is deprecated [-Wdeprecated-declarations]!if (headerGetEntry(header, RPMTAG_DISTTAG, &type, (void **)&dtag, &count) == 1!^
278a281,282
> rpm/rpmrecords.cc::76: warning: 'int headerGetEntry(Header, rpm_tag_t, rpm_tagtype_t*, void**, rpm_count_t*)' is deprecated [-Wdeprecated-declarations]!if (headerGetEntry(HeaderP, RPMTAG_DISTTAG, &type, (void **)&str, &count)==1) {!^
> rpm/rpmrecords.cc::76: warning: 'int headerGetEntry(Header, rpm_tag_t, rpm_tagtype_t*, void**, rpm_count_t*)' is deprecated [-Wdeprecated-declarations]!if (headerGetEntry(HeaderP, RPMTAG_DISTTAG, &type, (void **)&str, &count)==1) {!^

Лежит в пакете grep-warnings

-- 
Best regards,
Ivan

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

end of thread, other threads:[~2020-03-09 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 15:59 [devel] I: grep-warnings Ivan Zakharyaschev
2020-03-09 16:03 ` Ivan Zakharyaschev

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