[From nobody Thu Apr 16 16:51:07 2026
Received: (at submit) by bugs.debian.org; 16 Apr 2026 07:39:41 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00,HAS_PACKAGE,
 RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 25; hammy, 150; neutral, 88; spammy,
 0. spammytokens: hammytokens:0.000-+--sk:buildd.,
 0.000-+--UD:buildd.debian.org, 0.000-+--buildddebianorg,
 0.000-+--buildd.debian.org, 0.000-+--fetchphp
Return-path: &lt;pere@hungry.com&gt;
Received: from vuizook.err.no ([2a02:20c8:2640::2]:34274)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;pere@hungry.com&gt;) id 1wDHK9-00AUw5-0x
 for submit@bugs.debian.org; Thu, 16 Apr 2026 07:39:41 +0000
Received: from [84.212.194.130] (helo=minerva.reinholdtsen.name)
 by vuizook.err.no with smtps (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2)
 (envelope-from &lt;pere@hungry.com&gt;) id 1wDHJx-00000008Yvs-0wIT;
 Thu, 16 Apr 2026 07:39:32 +0000
Received: (nullmailer pid 401317 invoked by uid 1000);
 Thu, 16 Apr 2026 07:34:19 -0000
From: Petter Reinholdtsen &lt;pere@hungry.com&gt;
To: submit@bugs.debian.org
Subject: yosys: Documentation fail to build with &quot;Dimension too large.&quot;
Date: Thu, 16 Apr 2026 09:34:19 +0200
Message-ID: &lt;87se8vcq9w.fsf@minerva.reinholdtsen.name&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;=-=-=&quot;
Delivered-To: submit@bugs.debian.org

--=-=-=
Content-Type: text/plain


Package: src:yosys
Version: 0.52-1
Severity: critical
Tags: patch

After fixing the missing graphviz dependency and getting the
documentation building again, the build now crash with this error:

  [46 &lt;./rdata_map_luts.pdf&gt;]
  ! Dimension too large.

(See &lt;URL: https://buildd.debian.org/status/fetch.php?pkg=yosys&amp;arch=all&amp;ver=0.52-3&amp;stamp=1776236472&amp;raw=0 &gt;
for the details.)

I believe the fix is to tell dot to reduce the resolution of the PDFs
generated from the .dot files.  The attached patch solve the problem
when added to debian/patches/.

I picked size and dpi settings fairly at random, and suspect other
values might be better, but do not know how to decide which value is
good or bad, and leave that to someone who know how to evaluate good
dimensions for these generated PDFs.
-- 
Happy hacking
Petter Reinholdtsen

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=1000-dot-resolution.patch

Description: Avoid pdflatex rejecting input due to too high resolution.
 Set randomly picked size and dpi when generating dot graphs, to avoid
 error from pdflatex when building documentation.  I am not sure which
 size and dpi make sense, nor how to decide which value are best.
Author: Petter Reinholdtsen &lt;pere@debian.org&gt;
Last-Update: 2026-04-16
Bug-Debian: https://bugs.debian.org/?
Forwarded: no
Reviewed-By: Petter Reinholdtsen &lt;pere@debian.org&gt;

--- yosys-0.52.orig/docs/source/_images/Makefile
+++ yosys-0.52/docs/source/_images/Makefile
@@ -33,7 +33,7 @@ TEX_FILES := $(shell find . -name *.tex)
 all_tex: $(TEX_FILES:.tex=.pdf) $(TEX_FILES:.tex=.svg)
 
 %.pdf: %.dot
-	$(FAKETIME) dot -Tpdf -o $@ $&lt;
+	$(FAKETIME) dot -Tpdf &quot;-Gsize=9,15!&quot; -Gdpi=72 -o $@ $&lt;
 
 %.pdf: %.tex
 	cd $(@D) &amp;&amp; $(FAKETIME) pdflatex $(&lt;F) --interaction=nonstopmode

--=-=-=--
]