From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 9 Mar 2020 18:59:57 +0300 (MSK) From: Ivan Zakharyaschev To: ALT Linux Team development discussions Message-ID: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1807885841-360508499-1583769597=:6363" Subject: [devel] I: grep-warnings X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2020 15:59:58 -0000 Archived-At: List-Archive: List-Post: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1807885841-360508499-1583769597=:6363 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8BIT 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 --1807885841-360508499-1583769597=:6363--