Received: by 10.213.65.68 with SMTP id h4csp2119615imn; Sun, 8 Apr 2018 20:11:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Lp/wZcYgUjGeRPkJUkQHEr9IySxtBrn+f4+bBMgWzwqaBf7HwY4st6NboJItErAfJSDXB X-Received: by 10.99.36.7 with SMTP id k7mr2485724pgk.63.1523243482143; Sun, 08 Apr 2018 20:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243482; cv=none; d=google.com; s=arc-20160816; b=wvth924NorBYaE6/UColsAIpLZeInqCViKtaE6vCY9LreDRz3SXKXrFBUx9xqClPdi Z5jpG0dBEcSltJpomglIj7yjqjVrLmmbIrOIYH1P+UOxnir1M+JicGDugQaoVSQ5Agwj 5WdyIFFZMWwrw+Gfih2xT4+tDwk/nqwO0kEeQEyc0jP9bsgIduuFMRPgcbIuUgfze6Za n5XeiH4FMnnDNpTmUDt8a3XeNXPqHSKA8jxkFNRo2KOo7YyX5xXCU6rg1OkafZvqzAt4 7r043jGmSPS7SzwNx7kfzE+plpixFPxMzwsX0XcOZqe7FO403gNMQjIRAmVO8Y6I5Fzh BzTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=9+ru2TqhKmKsaIl8ZWFR3pEB9KZku7HH/EGAY5sN1Mw=; b=ivZeYAjSEhiYSLQXaSYRSJUPCRPRlerAnLDVwUVkqyYcdun2RB5YDzZ2UuRwUX2pXP j1BirOSSD6J7pisM+w3lm+BSlA01BDBmqWSS349WJxjm3XCMaOW4GtZFPW23QrmxGBRL NEQ84YtoTtFhmhCMWUOj9COYQhE1PESk5JK/eqnAf/jnt0/9opZZQIbONUN6wqx+cJRL yTABPYu2hB1lO6s8C+nkTUOFo+d+yck9FO3dOEUEgenACGEZKPjNLy7xM8uJNWqMQl5l Hin8Zxy0cY0y0+ZNL8tL1sZSc04JDMrLEj4ni9z1BWFbYAp62xlfHomYD/TqhYj4j7Uh vWeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Ne2Q+bPN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n128si10673399pgn.15.2018.04.08.20.10.45; Sun, 08 Apr 2018 20:11:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Ne2Q+bPN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757793AbeDICQj (ORCPT + 99 others); Sun, 8 Apr 2018 22:16:39 -0400 Received: from mail-dm3nam03on0104.outbound.protection.outlook.com ([104.47.41.104]:17478 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755378AbeDIAad (ORCPT ); Sun, 8 Apr 2018 20:30:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9+ru2TqhKmKsaIl8ZWFR3pEB9KZku7HH/EGAY5sN1Mw=; b=Ne2Q+bPNQTSQ1pziBhRDuqd8kwxg8Ipzip3GQGr4mmNzhLKNQg+nvnccHRb8oUmyASla4OGyQfO5CsN8Jz+NJRIUVnq40YN0l8Gq41VDmX8HYrevOe1YqoSwtOh//slvXdv5GPIYQtdkT6XPiYIab2M6RFD61Dey3QoC9C9TOYg= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0807.namprd21.prod.outlook.com (10.167.110.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:30:27 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:30:27 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 138/293] Docs: Fix breakage with Sphinx 1.5 and upper Thread-Topic: [PATCH AUTOSEL for 4.9 138/293] Docs: Fix breakage with Sphinx 1.5 and upper Thread-Index: AQHTz5kmGjhn52DCqEOSf5SGFXjpcw== Date: Mon, 9 Apr 2018 00:24:40 +0000 Message-ID: <20180409002239.163177-138-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0807;7:p6whmtfBK2GyHRXCNrzKZU2uL5dTuUznJZVL6byNaKNTOsTu+AA3w9iHJNpZAagIEfdJ6jgmYSssztrMc9YJrkxUynzjNErxdHuWkVD53sgiUJWiTfjFe7myC7lWDQHwwh32rZSmRsCy37YF1nqIQMRrpLQWt8YqXmU2L3bGPZdgwJZHsIeTZ9Ltq2FlOzMctuE6DTMJ0wHJ0mib5xMTEHGSitilMIA5ZWU9JbIe1Th8p1T0858kRbK802KJ3dGA;20:gtEiKVIJLP28zgaCcte5yWnGKKLtF3iNRLJDyAaD8A1f7jVKVzeMhiEQMcNwiSFfLLxCZwGbA9noxuH6V/SlS9Wr67f2TRq27q8EhelNGPJlknWjWVUV4ra27+/I3sn1Ivr+15tnAGnQIW7diaufyVPcau85/hRaCx/NTdCMGVo= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 32b9d03b-c52e-4ee4-52b3-08d59db117b1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0807; x-ms-traffictypediagnostic: DM5PR2101MB0807: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0807;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0807; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(39860400002)(396003)(366004)(376002)(346002)(199004)(189003)(14454004)(4326008)(54906003)(25786009)(53936002)(2900100001)(1076002)(3280700002)(6486002)(186003)(2616005)(68736007)(110136005)(11346002)(10090500001)(6116002)(107886003)(3846002)(36756003)(8676002)(72206003)(22452003)(66066001)(26005)(6512007)(478600001)(3660700001)(81156014)(86362001)(81166006)(86612001)(7736002)(305945005)(8936002)(10290500003)(6436002)(105586002)(6666003)(316002)(59450400001)(76176011)(5660300001)(476003)(106356001)(2906002)(6506007)(446003)(2501003)(99286004)(5250100002)(486006)(102836004)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0807;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: SK3wxI1s3C3wznfeCP0MlEJDJGyQROI+cdf1pkr6m1tHs8FzYM6MnYllEXMbnh8TdeWEFurebZXml6Ol9y7t4QsyqQmJp8eizFoVNOp/V0tajTii0PCRl0aK9V8sYVJxn1+xQ+hxrQtBnOCEeCtdPY/WwrbD/bjkOcbPtlGlLYoLRe8xG7g7SkLilSVWrYWJp0rzKXRLTuMfSkOv/pnh0HLoqYy3foR8fmOinnanbLe9Ox0A0tRMgWq2Cdcc6u2pACbn040cGA6KuqwKwmQIFrOZTe64T0NOflyvP7mtzXsGa7lfqITEA2QRio4OltG8FjTST8bz/Q8ROSaJ32NjGGiR79y6CYbPODvYnEiWlN8BfpPuzlZ6XdZay8ax9HmIcevM1NCoins4tgIu8/XpyHeQyWDQoc/RWK0DBBVufdQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32b9d03b-c52e-4ee4-52b3-08d59db117b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:24:40.7219 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0807 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mauro Carvalho Chehab [ Upstream commit 633d612bda6a37e1d5f5f878ec5a22a11599f800 ] Commit 85c21e5c3ee7 (docs-rst: better adjust margins and font size) added a \usepackage{geometry} that conflicts with another inclusion deep within the dependencies with newer versions of Sphinx, causing the the PDF build to fa= il with a "conflicting parameters" error. Detect the Sphinx version, using sphinxsetup for Sphinx versions 1.5 and upper. Fixes: 85c21e5c3ee74fb75d690c57f7066bae7e2dca55 [jc: Tweaked logic to exclude 1.5.x for x < 3 ] Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- Documentation/conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index 6219b9a788f4..2ed91d610254 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -271,8 +271,6 @@ latex_elements =3D { =20 # Additional stuff for the LaTeX preamble. 'preamble': ''' - % Adjust margins - \\usepackage[margin=3D0.5in, top=3D1in, bottom=3D1in]{geometry} \\usepackage{ifthen} =20 % Allow generate some pages in landscape @@ -337,6 +335,12 @@ latex_elements =3D { if major =3D=3D 1 and minor > 3: latex_elements['preamble'] +=3D '\\renewcommand*{\\DUrole}[2]{ #2 }\n= ' =20 +if major =3D=3D 1 and minor <=3D 4: + latex_elements['preamble'] +=3D '\\usepackage[margin=3D0.5in, top=3D1= in, bottom=3D1in]{geometry}' +elif major =3D=3D 1 and (minor > 5 or (minor =3D=3D 5 and patch >=3D 3)): + latex_elements['sphinxsetup'] =3D 'hmargin=3D0.5in, vmargin=3D0.5in' + + # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). --=20 2.15.1