From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 KERJJ4aZb2TfQQAASxT56A (envelope-from ) for ; Thu, 25 May 2023 19:23:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8F1iJ4aZb2Q1xQAA9RJhRA (envelope-from ) for ; Thu, 25 May 2023 19:23:18 +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 4D71B3C79A for ; Thu, 25 May 2023 19:23:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Eg4-0003vm-I7; Thu, 25 May 2023 13:23:04 -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 1q2Eg3-0003vU-3e for guix-patches@gnu.org; Thu, 25 May 2023 13:23:03 -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 1q2Eg2-0003La-Rd for guix-patches@gnu.org; Thu, 25 May 2023 13:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2Eg2-00044r-NS for guix-patches@gnu.org; Thu, 25 May 2023 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63721] [PATCH 2/2] gnu: mpd: Split outputs. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 May 2023 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63721@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 63721-submit@debbugs.gnu.org id=B63721.168503533515594 (code B ref 63721); Thu, 25 May 2023 17:23:02 +0000 Received: (at 63721) by debbugs.gnu.org; 25 May 2023 17:22:15 +0000 Received: from localhost ([127.0.0.1]:47985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2EfG-00043R-NF for submit@debbugs.gnu.org; Thu, 25 May 2023 13:22:14 -0400 Received: from smtpmciv4.myservices.hosting ([185.26.107.240]:59478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2EfE-00043J-GH for 63721@debbugs.gnu.org; Thu, 25 May 2023 13:22:12 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv4.myservices.hosting (Postfix) with ESMTP id E29AA2081F for <63721@debbugs.gnu.org>; Thu, 25 May 2023 19:22:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 4DEF180097; Thu, 25 May 2023 19:21:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id E-aiid_gqxvZ; Thu, 25 May 2023 19:21:55 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id A464780060; Thu, 25 May 2023 19:21:55 +0200 (CEST) From: Bruno Victal Date: Thu, 25 May 2023 18:21:42 +0100 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685035398; a=rsa-sha256; cv=none; b=sZ/NhwtqZS3BgZkY79MoWqS+AULRck/M7BUGWE6VZVreBtqTp1qi7GKeqgNqydxCuAGHHx McJ+kpcUTgOkniCCPpdu/aoNFkB28Wc7kjsFnlwKI6aQReHza9jRCvkqCota5uRgiCCg6N ADNBjm08S2yyEAu/4inH8zrtIubJ1za7fBAxle5igOOuJWhf7MddrSEJiNyeq8UWRsc6HU x7fe7dfUL62IeCzw2wbfmT73V5m4QaXr6l6ihQasHC+rCUuUP9+NJYuEIVdSCaZGMPn+Ng MMaiwQjhbDkssLJ6dyUniN23nvwJ5jYp3WiNY+zFcl0kIBLBISrxkcZvFaW+2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685035398; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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; bh=7vJJanRG68G3B5GEp9TbpZGsp4rkuY84ukpQucVcSKw=; b=J/GZchbtCiSbRA4goJagzoyBv49UAqYjGc5NfaYXMdLtZOTiS4EaQhCCyYgbbihXitz2Ek TVnlhwwM1Qi9R3wvGAh/xWXXdi9ngpBcrE1oFzVBYyvZRKWP5IcJxEpqPHvYiCkCKFkJLd THgSKmJvLWMYn+VsjBxhts/bssnUFRXhFiwnSRR+LNwu9naARv+jEnqawMFjm+wT/xh9dy ptVIx/sb02JvAMJSCbAuW6NYrwU8fzA0T82L6MFjKFv8pL2Ua2OrU7ao3DqAadPtWmySJg gbm97bhPbB0Gn+GKjiUgO0OZzgoZAfeYr9fEis7QCQ8mRJDU9qUOIlWlzvvcZA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.67 X-Spam-Score: -1.67 X-Migadu-Queue-Id: 4D71B3C79A X-TUID: DkxJotXyse2D The HTML manual accounts for more than 40% of the package size. * gnu/packages/mpd.scm (mpd)[outputs]: Add 'html' output. [arguments]: Add split-package phase. --- gnu/packages/mpd.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 3259217989..fa16e60484 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm @@ -146,7 +146,16 @@ (define-public mpd (("systemd_dep = declare_dependency" all) (string-append "_" all))) (substitute* "meson.build" - (("systemd_dep,") "systemd_dep, _systemd_dep,"))))))) + (("systemd_dep,") "systemd_dep, _systemd_dep,")))) + (add-after 'install 'split-package + (lambda _ + ;; The HTML manual accounts for over 40% of the disk + ;; space used by the package. + (let* ((path "/share/doc/mpd/html") + (htmldir (string-append #$output path)) + (htmldir* (string-append #$output:html path))) + (mkdir-p (dirname htmldir*)) + (rename-file htmldir htmldir*))))))) (inputs (append (if (target-linux?) (list liburing) '()) (list ao @@ -189,6 +198,7 @@ (define-public mpd ;; ;; Used when zziplib feature is enabled. zip)) + (outputs (list "out" "html")) ;; Missing optional inputs: ;; libcdio_paranoia ;; libmms -- 2.39.2