From nobody Sun Feb 8 22:49:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1654009767; cv=none; d=zohomail.com; s=zohoarc; b=SfCbp4S5nLVlZhUoZGTeDoUv5pV7MTgOypiGEGh93Zs0eRr4izLWXd23HtkjjWThEJg75ioIMDGWX0q5gY0A8HQhU9fZZjT7egpxW/PhCsTcVroMG8Ejdytjeryxpl7ClfGPy1vWj4d/UFmg1JDppNNbcHDOgEUAUO2TGobasNU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654009767; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/vyapFC/4B1Ue5pay+wiXJRs/E0gqt/rPfbEYU9Svdo=; b=dUslhFuhVa3sx3esshBNKwJs0KanTPiYO1+58Cyz5pt+mLjIyr/e/SCG9VprOkqVwJ2NjuzD9frxFAFyIW18kP4tUZWna9W2T3GTQdLddR8xdANTsr04tOacyMjdvlulLyRHB2w6pebQboTOtwPdBG0fS5cJqEVLTpAUf6T0AsY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1654009767869797.6359387244029; Tue, 31 May 2022 08:09:27 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-407-4422wo1vNkukUZTqP5M3-A-1; Tue, 31 May 2022 11:09:05 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 099F98E71FB; Tue, 31 May 2022 15:07:36 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id E98EE492C3B; Tue, 31 May 2022 15:07:35 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id ACD891947062; Tue, 31 May 2022 15:07:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A28061947067 for ; Tue, 31 May 2022 15:07:28 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9703D1731B; Tue, 31 May 2022 15:07:28 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1A3E71131A for ; Tue, 31 May 2022 15:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654009766; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=/vyapFC/4B1Ue5pay+wiXJRs/E0gqt/rPfbEYU9Svdo=; b=ISDdxrRlgGpxuOFfuDu8L3pyNUMh5xmrNMyE02HqrtO3dcT79xAuH4Gh2qSUXVcO5Bcs8C xy7QisCkT2VEsAuyU6DkQGK4zAxAQKvGvIGfaeJ073bIwI4IxQA8V+rRhafa2LLQpAsJy3 /E5d7go985KO6rLUdeeXR0kQC9DN3Do= X-MC-Unique: 4422wo1vNkukUZTqP5M3-A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 53/67] syntax-check: Add check prohibiting remote reference to local file Date: Tue, 31 May 2022 17:06:28 +0200 Message-Id: <3bca7bfb20a0804ed99d552b7b959e5049e5df6c.1654008136.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1654009769669100004 Content-Type: text/plain; charset="utf-8" Within a file we should use the internal reference syntax. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index e8f9a91cee..649eb91acb 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1087,6 +1087,13 @@ sc_prohibit_backup_files: { echo 'found version controlled backup file' 1>&2; \ exit 1; } || : +# prohibit remote references to local file in RST files +sc_avoid_remote_reference_to_local_file: + @prohibit=3D'<#' \ + in_vc_files=3D'\.rst$$' \ + halt=3D'use local reference within a file' \ + $(_sc_search_regexp) + # This Perl code is slightly obfuscated. Not only is each "$" doubled # because it's in a Makefile, but the $$c's are comments; we cannot # use "#" due to the way the script ends up concatenated onto one line. --=20 2.35.3