Message ID | 20160806104616.13089-1-iyzsong@gmail.com |
---|---|
State | New |
Headers |
Received: (qmail 102872 invoked by uid 89); 6 Aug 2016 10:46:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=6247, Hx-languages-length:574 X-Spam-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 06 Aug 2016 10:46:54 +0000 Received: from localhost ([::1]:48800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bVz7z-0000FW-Kz for patchwork@sourceware.org; Sat, 06 Aug 2016 06:46:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <iyzsong@openmailbox.org>) id 1bVz7s-0000En-AK for guix-devel@gnu.org; Sat, 06 Aug 2016 06:46:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <iyzsong@openmailbox.org>) id 1bVz7l-0005Bh-5q for guix-devel@gnu.org; Sat, 06 Aug 2016 06:46:42 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:49989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <iyzsong@openmailbox.org>) id 1bVz7k-0005A6-Vl for guix-devel@gnu.org; Sat, 06 Aug 2016 06:46:37 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id E14C0218A35; Sat, 6 Aug 2016 12:46:28 +0200 (CEST) From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com> To: guix-devel@gnu.org Subject: [PATCH 1/5] gnu: gtk+: Add "bin" output. Date: Sat, 6 Aug 2016 18:46:12 +0800 Message-Id: <20160806104616.13089-1-iyzsong@gmail.com> X-Mailer: git-send-email 2.8.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 62.4.1.34 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com> Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+patchwork=sourceware.org@gnu.org> |
Commit Message
宋文武
Aug. 6, 2016, 10:46 a.m. UTC
* gnu/packages/gtk.scm (gtk+)[outputs]: New field. --- gnu/packages/gtk.scm | 1 + 1 file changed, 1 insertion(+)
Comments
On Sat, Aug 06, 2016 at 06:46:12PM +0800, 宋文武 wrote: > * gnu/packages/gtk.scm (gtk+)[outputs]: New field. > --- > gnu/packages/gtk.scm | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm > index 21365b9..5c42053 100644 > --- a/gnu/packages/gtk.scm > +++ b/gnu/packages/gtk.scm > @@ -624,6 +624,7 @@ application suites.") > (base32 > "157nh9gg0p2avw765hrnkvr8lsh2w811397yxgjv6q5j4fzz6d1q")) > (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch")))) > + (outputs '("out" "bin" "doc")) > (propagated-inputs > `(("at-spi2-atk" ,at-spi2-atk) > ("atk" ,atk) What effect does this have? Does Guix know to put something into the 'bin' output?
On Sat, 13 Aug 2016 22:21:53 -0400 Leo Famulari <leo@famulari.name> wrote: > On Sat, Aug 06, 2016 at 06:46:12PM +0800, 宋文武 wrote: > > * gnu/packages/gtk.scm (gtk+)[outputs]: New field. > > --- > > gnu/packages/gtk.scm | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm > > index 21365b9..5c42053 100644 > > --- a/gnu/packages/gtk.scm > > +++ b/gnu/packages/gtk.scm > > @@ -624,6 +624,7 @@ application suites.") > > (base32 > > "157nh9gg0p2avw765hrnkvr8lsh2w811397yxgjv6q5j4fzz6d1q")) > > (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch")))) > > + (outputs '("out" "bin" "doc")) > > (propagated-inputs > > `(("at-spi2-atk" ,at-spi2-atk) > > ("atk" ,atk) > > What effect does this have? > > Does Guix know to put something into the 'bin' output? Yes, the gnu-build-system will automatically pass '--bindir' to 'configure' if a "bin" output is present. However, should these outputs not instead be added to the 'gtk+-2' package that 'gtk+' inherits from? `~Eric
Eric Bavier <ericbavier@openmailbox.org> writes: > On Sat, 13 Aug 2016 22:21:53 -0400 > Leo Famulari <leo@famulari.name> wrote: > >> On Sat, Aug 06, 2016 at 06:46:12PM +0800, 宋文武 wrote: >> > * gnu/packages/gtk.scm (gtk+)[outputs]: New field. >> > --- >> > gnu/packages/gtk.scm | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm >> > index 21365b9..5c42053 100644 >> > --- a/gnu/packages/gtk.scm >> > +++ b/gnu/packages/gtk.scm >> > @@ -624,6 +624,7 @@ application suites.") >> > (base32 >> > "157nh9gg0p2avw765hrnkvr8lsh2w811397yxgjv6q5j4fzz6d1q")) >> > (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch")))) >> > + (outputs '("out" "bin" "doc")) >> > (propagated-inputs >> > `(("at-spi2-atk" ,at-spi2-atk) >> > ("atk" ,atk) >> >> What effect does this have? >> >> Does Guix know to put something into the 'bin' output? > > Yes, the gnu-build-system will automatically pass '--bindir' to > 'configure' if a "bin" output is present. Yes, this will put 'gtk-update-icon-cache', 'gtk-encode-symbolic-svg', 'gtk3-dome', etc in the "bin" output. > > However, should these outputs not instead be added to the 'gtk+-2' > package that 'gtk+' inherits from? Yeah, but do it to 'gtk+-2' will fail with cycle references between its "bin" and "out". So I just leave it untouched.
Hi, I pushed those patches and the results of a run of gnome updater into core-updates.
宋文武 <iyzsong@gmail.com> skribis: > * gnu/packages/gtk.scm (gtk+)[outputs]: New field. > --- > gnu/packages/gtk.scm | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm > index 21365b9..5c42053 100644 > --- a/gnu/packages/gtk.scm > +++ b/gnu/packages/gtk.scm > @@ -624,6 +624,7 @@ application suites.") > (base32 > "157nh9gg0p2avw765hrnkvr8lsh2w811397yxgjv6q5j4fzz6d1q")) > (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch")))) > + (outputs '("out" "bin" "doc")) I suppose the intent was to reduce the closure size; do you have figures? I like to put them as a comment next to the ‘outputs’ field. Thanks! Ludo’.
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 21365b9..5c42053 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -624,6 +624,7 @@ application suites.") (base32 "157nh9gg0p2avw765hrnkvr8lsh2w811397yxgjv6q5j4fzz6d1q")) (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch")))) + (outputs '("out" "bin" "doc")) (propagated-inputs `(("at-spi2-atk" ,at-spi2-atk) ("atk" ,atk)