From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4F9B1C84A1 for ; Sat, 27 Sep 2025 09:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758964344; cv=none; b=lkpe4MwOEUSOzKSKSraNaBQVF6h23hPKdCtGpbFdIQ8ddetXjcI1+9UA6sfQ1lCNGpwiSM8+LKwvzXIug5WBw+dAxkmaNtHn7QOdPcX4lFR7u2nb7MKZOJurANxqNiG5oZRs/v4IEH/3J5v1QtFXdKAqEVFvRUGJxyPkJ5mjml4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758964344; c=relaxed/simple; bh=+pGe3F9Wyt6J36sXviOvj0VrqTw4kZNLOZ6ewjfpf/U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ekIIvuvVlgZsXspp7n43+TdoPs4lJtAoUBJQUDwvXbR4xd5kU8XmKTvUPzbaOvtfUqhdVj07viQ25KXUnQyo+SBjiwl1tSZdJGe2x+0G3ZLHD4OK55LKRdKYxM5XLNtp35x83C9j6+pVnv8++q4ZTB5K9Bxz4RdzV/I2E7h3lrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EgACOK+1; arc=none smtp.client-ip=209.85.216.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EgACOK+1" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-330631e534eso3058860a91.0 for ; Sat, 27 Sep 2025 02:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758964342; x=1759569142; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mIZgaRKGhoxWkvHAy+1tENSc1M17jx2ezAwOCvUOvKM=; b=EgACOK+1PJB6vDJ0SAFrQp5mPgnSve2UKIM77WgcKmuXGkDmIYmOLd0palRUvTUE/0 X/VQkOndGuXfgZVpbxQFlJHXf0rYAW8tA4mm8YBrb8fumMTEzypMt53G3vcDiCA7RmWc 3fvwHBTUzGYCwj9iMEAFvJGWdmQ0gzdkBuokHicDphClNhxJeARsDD/jMqD/8Sm+VNyJ sn4HlVuDVcXeAi5pFcjnwcXS4lMM1Hje67tJU9jK69v+B70GPh5dnixghjZ2avVjPcZv 1wol8BiSkJzNhfszOA5cgiaIAL+y1Q+O1fYuIMos3bKgjD2GuiAZbobURPUzTKFVIQU/ tbEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758964342; x=1759569142; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mIZgaRKGhoxWkvHAy+1tENSc1M17jx2ezAwOCvUOvKM=; b=lWCgeAnuQRyEwGSUEfBHidXwlujZhKVSDn/WkbI1KK+3MxXXY1ZPhGmHyiI4e4Swwh uLwHvC5V1rumvMftFlicMXcZbLgMViSS0nCr5Nmhlb1LeW1jXnlluwmZmOkv8F2HyxJb WgkR4KVOOXkk8b+kvJoqKgdb6pZMnUQXz+8YxPbhZJuMc5+BFbbNYY4nhFCh+jakR5wq Nqz8BvGwxO5MHct5WbaoiJuR3TkIPD00fIcq6E2on8TSGhYcg2Tg6DeV9zd+FmsPLW4z /CLSomi7+Vy6asNVu9sCNcM8fzFdBXWgah0X5LTXb8Dd5p6juVBUk7/5tVs6TSqDSW/S p+uA== X-Forwarded-Encrypted: i=1; AJvYcCVXNEkhrvvbjPptRQbvgUP67wp4CzA+sB0lmcqvRWRLjQomLNFNtTb9C/jE4sZWpoEi8nbZAiquPz4=@vger.kernel.org X-Gm-Message-State: AOJu0YycRNvsMgas1zVMeqIf6k7Ac0Nl6UrvjPiEwFPzZoW5pUgQ3UOM Er3t6cc4HEClffNkOzJa8WGG9inEIYbOKTjwkcvh086GYhKS4dxxL/lZpiKIqw== X-Gm-Gg: ASbGncs/faG22mtI7/VkfItZik+45uP9K7uxT1JNR0NTwYJfTfxEElmF+/PVpluOmbG RHlwQQasODdhxZmLRd6A2tQrCptc1DX1ctRo+AnX0Sx0HUBd1FPe2aKU0m4CnhaLVIpN/m0HuW6 qTHYQcY0lukJ4PAC+boFXMpr94NUBPrmqy3N4/EZ/t7vWQF09LCEvxb7kNP99GEF25bsOwvkDd7 bK+gvl+DzUkpAbwTk1UEgdO4h6ocbE+rAriXJJ+zXcyRIM6F+fDfiwqQCxb2cp87QmyL1MPwyyz VVK1i1HhNKAMIXjsVEvQSuiDe/kStoCKlIXRl65FK4CjP0Kda2TooT+okdqV1LQc3LbFVk1yERM gYjMU0WmNjEPE3Q0wOfgU3OrjNPhYxYKgp8UslSRrkZ3XQIkXeNN872GrsRRh8afvC97H X-Google-Smtp-Source: AGHT+IHaJg4dHImv6wsjXivv+eH0xv3qmlqiUA3ELNxaY4YHxl0i1sgYrjR3kpZPWHUErts99XbHaA== X-Received: by 2002:a17:90b:1d8a:b0:335:2eef:4ca8 with SMTP id 98e67ed59e1d1-3352eef4edcmr5690404a91.33.1758964342131; Sat, 27 Sep 2025 02:12:22 -0700 (PDT) Received: from [10.0.2.15] (KD106167137155.ppp-bb.dion.ne.jp. [106.167.137.155]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3341be3a010sm11164207a91.28.2025.09.27.02.12.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Sep 2025 02:12:21 -0700 (PDT) Message-ID: <1d993906-bae3-41eb-963f-de960cc56dd0@gmail.com> Date: Sat, 27 Sep 2025 18:12:19 +0900 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] docs: Makefile: avoid a warning when using without texlive To: mchehab+huawei@kernel.org Cc: corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rdunlap@infradead.org, Akira Yokosawa References: Content-Language: en-US From: Akira Yokosawa In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sorry, a quick follow-up. On Sat, 27 Sep 2025 16:35:08 +0900, Akira Yokosawa wrote: > On Fri, 26 Sep 2025 12:16:19 +0200, Mauro Carvalho Chehab wrote: >> As reported by Randy, running make htmldocs on a machine >> without textlive now produce warnings: >> >> $ make O=DOCS htmldocs >> ../Documentation/Makefile:70: warning: overriding recipe for target 'pdfdocs' >> ../Documentation/Makefile:61: warning: ignoring old recipe for target 'pdfdocs' >> >> That's because the code has now two definitions for pdfdocs in >> case $PDFLATEX command is not found. With the new script, such >> special case is not needed anymore, as the script checks it. >> >> Drop the special case. Even after dropping it, on a machine >> without LaTeX, it will still produce an error as expected, >> as running: >> >> $ ./tools/docs/sphinx-build-wrapper pdfdocs >> Error: pdflatex or latexmk required for PDF generation >> >> does the check. After applying the patch we have: >> >> $ make SPHINXDIRS=peci htmldocs >> Using alabaster theme >> Using Python kernel-doc >> >> $ make SPHINXDIRS=peci pdfdocs >> Error: pdflatex or latexmk required for PDF generation >> make[2]: *** [Documentation/Makefile:64: pdfdocs] Error 1 >> make[1]: *** [/root/Makefile:1808: pdfdocs] Error 2 >> make: *** [Makefile:248: __sub-make] Error 2 >> >> Which is the expected behavior. >> > > There seems to be a related issue. > > At current "docs-mw", under build environments who don't have xelatex nor latexmk, > > $ make SPHINXDIRS=peci latexdocs > > completes without any issue. > > In the resulting .../latex/peci directory, one can run I meant: .../peci/latex > > $ make PDFLATEX="latexmk -xelatex" LATEXOPTS="-interaction=batchmode -no-shell-escape" > > and build peci.pdf. I failed to mention, but of course you need to transfer/share said .../peci/latex/ to another build environment who has all the required packages for "pdfdocs". I often use such heterogeneous combination of running "make latexdocs" + running make under each of .../$SPHINXDIRS/latex/ using another environment. This way, you need only one set of working texlive packages for testing against various Sphinx's latex builder releases. > > At current "build-scripts", I get this: > > $ make SPHINXDIRS=peci latexdocs > Error: pdflatex or latexmk required for PDF generation > make[2]: *** [Documentation/Makefile:68: latexdocs] Error 1 > make[1]: *** [/Makefile:1806: latexdocs] Error 2 > make: *** [Makefile:248: __sub-make] Error 2 > > Patch 2/2 doesn't change the behavior. > > This is yet another regression. Please teach sphinx-build-wrapper of the > fact that "latexdocs" does not run those texlive commands. It is only the > "pdfdocs" phase that will run them. > You see, "make latexdocs" is supposed to generate all the necessary files for building PDFs to be consumed by make + latexmk/xelatex. There is a clear boundary between "latexdocs" and "pdfdocs". Thanks, Akira > Regards, > Akira > >> Reported-by: Randy Dunlap >> Link: https://lore.kernel.org/linux-doc/e7c29532-71de-496b-a89f-743cef28736e@infradead.org/ >> Signed-off-by: Mauro Carvalho Chehab