From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8AIEE0S7UmSyhgAASxT56A (envelope-from ) for ; Wed, 03 May 2023 21:51:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EO3qEkS7UmSnVgEAauVa8A (envelope-from ) for ; Wed, 03 May 2023 21:51:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0D0807861 for ; Wed, 3 May 2023 21:51:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puIVG-0003Cx-NB; Wed, 03 May 2023 15:51:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puIVE-0003Cl-Kj for bug-guix@gnu.org; Wed, 03 May 2023 15:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puIVC-0006mn-6D for bug-guix@gnu.org; Wed, 03 May 2023 15:51:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puIVC-0001Ku-2I for bug-guix@gnu.org; Wed, 03 May 2023 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63050: Reducing the closure size of Graphviz Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 May 2023 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63050 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andreas Enge Cc: 63050@debbugs.gnu.org Received: via spool by 63050-submit@debbugs.gnu.org id=B63050.16831434424999 (code B ref 63050); Wed, 03 May 2023 19:51:02 +0000 Received: (at 63050) by debbugs.gnu.org; 3 May 2023 19:50:42 +0000 Received: from localhost ([127.0.0.1]:47786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puIUr-0001IW-Ja for submit@debbugs.gnu.org; Wed, 03 May 2023 15:50:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puIUo-0001Ho-V6 for 63050@debbugs.gnu.org; Wed, 03 May 2023 15:50:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puIUi-0006gs-Qk; Wed, 03 May 2023 15:50:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=k2d4E8xu141fqakpswxhLINqZpU+P7anPTtm90X/F14=; b=iRkV6A9G6youzeyUw3z5 U9V2QHmrI58sixTwjR8idKFTc0s9Sf6Go2HfJ19DUUO84j2+EPYKO4hhM6SbmpLDcO0WHRne1fybT cof/I4cz950wZtw5WX5PtAlfnG8gdghVLWv/otOqVv61PkVltHMqetII3WBTE0sIKhQu60kCv3Ux/ U8DGAMF3Zdyqjg5hISN/3tBn5CTSIawY7jFwQF+mGOigsN6M9jiQfhU3LaCa9QQ/+Lc8oPx73hxn8 hDSSR/ay4jvVCPuJ8NYLW+bpWqjvIkvBmdA2EnVivWnWc09C8BqQWkZLcxOdJBPxAGiCZSIG0Fw1W Kxox837EcIvizg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puIUi-00055v-D6; Wed, 03 May 2023 15:50:32 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875y9jzl9m.fsf@gnu.org> Date: Wed, 03 May 2023 21:50:30 +0200 In-Reply-To: <875y9jzl9m.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 25 Apr 2023 23:48:05 +0200") Message-ID: <874jot19fd.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683143492; a=rsa-sha256; cv=none; b=JK4izisay8Q4TeqtPquDyzWR78q7fuThcwdDJJU7yBgFICzctUL8nMy8O9cYCvmszXUXzZ X247XH0vG2ChQbghtcZ8cNhF/r2nwITw0yKpEN99oLjMTkTHz/sLrVtHaaxqujsr6OtvKD dz9PsdbI71RQw8HHj8VEzfMR5cpnOPp2eK6xBXjVOIKGErwAJ1oR0Ms2QFWRJccLMygG4d VYI6YsTXDqJPlmPNHMreOByHSz5lZ7xogmY5cVWpL+1U5gXSTV9dD9gGKc0GfmTQ/tpcXt 1z4itNoMn7m/TGbSn7K8Pjv/G3N3m/1AIwMHk7ddZ0rDDUzhd+o+Cf+4qOh81g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iRkV6A9G; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683143492; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=k2d4E8xu141fqakpswxhLINqZpU+P7anPTtm90X/F14=; b=SmfkJ9197yTy1gYofBOJEHc4vvH7l4jl7Y3bMxCE6jKp+xhSzFTDIJ5gYJfN4UI7A9cMxd qiuMyvndD9s1grV9bVvr6EtizNhz4EIElMtt3aklrS4go3Nmr5pURRjc721iQg2V3Ltbm4 F7mk6hcT0g1bTu8l1lIr10RfPJnvBApCe1zfLpBhyG61ijdIMCagruWdd45/AwT2J11qwX uoxmwtAKdf6TlxjInkV7Yhpizdt/GOKu8SVwDe/DiY9i/pheLWUGgsBo5OT0bEptyWgsna vWHqQGWZGGZtcIEuAQc+rhjMvNLYd/8M2Y4NiSj+O9rI7Ei9BBsq7vlDr/vf8A== X-Migadu-Spam-Score: -4.41 X-Spam-Score: -4.41 X-Migadu-Queue-Id: 0D0807861 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=iRkV6A9G; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: 3IBXf1ZTxbdt --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey! Ludovic Court=C3=A8s skribis: > This is apparently coming from Graphviz: > > $ guix graph --path guix libx11 > guix@1.4.0-5.286cdf0 > graphviz@2.49.0 > libx11@1.7.3.1 > $ guix graph --path guix libxt > guix@1.4.0-5.286cdf0 > graphviz@2.49.0 > libxaw@1.0.14 > libxt@1.2.1 > > Surprising to me, but apparently it=E2=80=99s been this way from the star= t, > commit b1b07d72c755ea314fb0c8333cd88293ee504ce4 (2013!). > > Maybe these are optional dependencies? All the X libraries can be seen in the output of: ldd $(guix build graphviz |grep -v 'doc$')/lib/graphviz/libgvplugin_xlib.= so I haven=E2=80=99t checked but I suppose that=E2=80=99s used by =E2=80=98xdo= t=E2=80=99. We can get an X11-free Graphviz like so: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm index 26ee96afd4..3a5d33e662 100644 --- a/gnu/packages/graphviz.scm +++ b/gnu/packages/graphviz.scm @@ -94,16 +94,12 @@ (define-public graphviz (string-append extdir "/libgv_guile.so")))))))) (inputs - (list libxrender - libx11 - gts + (list gts gd guile-3.0 ;Guile bindings - pango fontconfig freetype libltdl - libxaw expat libjpeg-turbo libpng)) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The closure size reduction is substantial: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix size graphviz | tail -1 total: 183.6 MiB $ guix size graphviz | tail -1 total: 242.3 MiB --8<---------------cut here---------------end--------------->8--- But I suspect we=E2=80=99d still need the full-blown variant for things like xdot. Ludo=E2=80=99. --=-=-=--