From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 7A8393858D33 for ; Thu, 2 Mar 2023 19:01:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A8393858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677783718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SnX2jZi/HiijUrnpy/FyO2Amdf0j1m/EZa225AqEs9E=; b=Ku3Z/mXPIUTjrouW7rLkCiAHarUo1KfsaS9lvnkTDDIu6yr6LxTAVm8b6X59ykeH3svUkT wucvLhjvlyneMpy7buDG+ybPT1UQN69rOzT5ucLw4nJ+zqZSiUX+B8QG+VTnn2lf+ZqD4/ j+SvrRJ8oG+dk/EXYCHIfTPCkON+4nQ= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-641-1iEo4zDSOtiYEjZMp_lD4g-1; Thu, 02 Mar 2023 14:01:57 -0500 X-MC-Unique: 1iEo4zDSOtiYEjZMp_lD4g-1 Received: by mail-qt1-f200.google.com with SMTP id t22-20020ac86a16000000b003bd1c0f74cfso119981qtr.20 for ; Thu, 02 Mar 2023 11:01:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677783717; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SnX2jZi/HiijUrnpy/FyO2Amdf0j1m/EZa225AqEs9E=; b=P3l77C2qv7ZJlZkZsJ0l+ApW92le0owdty/7Vsy2oOjSEN0+wH4Qnq3/cDqgY1VOjP WthA2/3s6ZxSAlCQYfn+VFeUoO3BuJIdgGKdqFLt0kc0EN2nkpIFs/HTqBhMCHVg3pbh SwbLFrCJJbf95RK9qOcJLa9b6RmCHxvufQB2Otd8WDfDc8aLMmmGtzJimV4Qu9GHY7xJ +u4S51TzTiMCU/NySiDYX7+JZzMGKo1ekEQIL7a8p6QOI1m7TnG50V4ttlo3L2X7F0gX EVh4181YM5U7JMeLFjJevQUrw9i7l3Jxmn+mTLf3NJ4Z361rw4E4pZDBpzHFiwZvnyi4 +R2g== X-Gm-Message-State: AO0yUKXAA0SxyKol8m27m5n4A54DjWW7bf2FACXTA9SF+9BMFCr0xsnK YsG2hIPUTQhT3o/XV1ZGI1JJaFovTvfvvzmQ3qvg7tL9FLXW8OJiLM8L0e8+utSLkIfqcg+a3La CvBGJgO55U26r/w8UBYvuXLTNjg== X-Received: by 2002:a05:6214:f2d:b0:568:89e3:c5ca with SMTP id iw13-20020a0562140f2d00b0056889e3c5camr20397328qvb.13.1677783716829; Thu, 02 Mar 2023 11:01:56 -0800 (PST) X-Google-Smtp-Source: AK7set+uw3xVB3NT4Zm+8bQFfF/42+pgUJjhKlNZdgIvv/zmnXOvuYHkKqx9N6i06Ks2wmDNnsSptw== X-Received: by 2002:a05:6214:f2d:b0:568:89e3:c5ca with SMTP id iw13-20020a0562140f2d00b0056889e3c5camr20397302qvb.13.1677783716604; Thu, 02 Mar 2023 11:01:56 -0800 (PST) Received: from localhost ([88.120.130.27]) by smtp.gmail.com with ESMTPSA id o8-20020a374108000000b0074305413c73sm174280qka.95.2023.03.02.11.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 11:01:56 -0800 (PST) Received: by localhost (Postfix, from userid 1000) id BE903581C79; Thu, 2 Mar 2023 20:01:54 +0100 (CET) From: Dodji Seketeli To: Dodji Seketeli Cc: libabigail@sourceware.org, ckalina@redhat.com Subject: [PATCH 09/13] tools-utils: Support kernel stablelist Organization: Red Hat / France References: <877cvzrnws.fsf@redhat.com> <87356nrnmq.fsf@redhat.com> X-Operating-System: Fedora 38 X-URL: http://www.redhat.com Date: Thu, 02 Mar 2023 20:01:54 +0100 In-Reply-To: <87356nrnmq.fsf@redhat.com> (Dodji Seketeli's message of "Thu, 02 Mar 2023 19:53:17 +0100") Message-ID: <87ttz3ou3h.fsf_-_@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, Up until now, a kernel whitelist was expected to be a ini file with a section having a name ending with the word "whitelist". Nowadays, they are called "stablelist", so the name of the section ends up with "stablelist". This patch makes gen_suppr_spec_from_kernel_abi_whitelists support that. * src/abg-tools-utils.cc (gen_suppr_spec_from_kernel_abi_whitelists): Support section name that ends with the word 'stablelist'. Signed-off-by: Dodji Seketeli --- src/abg-tools-utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc index 85719cdc..94dd8d05 100644 --- a/src/abg-tools-utils.cc +++ b/src/abg-tools-utils.cc @@ -2151,7 +2151,8 @@ gen_suppr_spec_from_kernel_abi_whitelists ++section_iter) { std::string section_name = (*section_iter)->get_name(); - if (!string_ends_with(section_name, "whitelist")) + if (!string_ends_with(section_name, "whitelist") + && !string_ends_with(section_name, "stablelist")) continue; for (ini::config::properties_type::const_iterator prop_iter = (*section_iter)->get_properties().begin(), -- 2.39.2 -- Dodji