From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 91E51139694 for ; Sun, 9 Jul 2017 00:27:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0ACBE21406A; Sun, 9 Jul 2017 00:27:44 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C57F2214001 for ; Sun, 9 Jul 2017 00:27:43 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CZDwCHd2FZ/z1w3mhdHAEBBAEBCgEBg1qBeIh8hgCQdiwBl2iGFgQCAoNIRBQBAgEBAQEBAQFrKEIQAYRFAQEBAQIBOhwoCwsYCRMSDwUlN4onCK9GizkBAQgCJoMoglJ6gWGDJIU2gneCMQWfHgKCJZFWghmJCRoahlmJOIwINiGBCoECCEmHMiQ2hD6EPgEBAQ X-IPAS-Result: A0CZDwCHd2FZ/z1w3mhdHAEBBAEBCgEBg1qBeIh8hgCQdiwBl2iGFgQCAoNIRBQBAgEBAQEBAQFrKEIQAYRFAQEBAQIBOhwoCwsYCRMSDwUlN4onCK9GizkBAQgCJoMoglJ6gWGDJIU2gneCMQWfHgKCJZFWghmJCRoahlmJOIwINiGBCoECCEmHMiQ2hD6EPgEBAQ X-IronPort-AV: E=Sophos;i="5.40,331,1496116800"; d="scan'208";a="319776990" Received: from 104-222-112-61.cpe.teksavvy.com (HELO waltdnes.org) ([104.222.112.61]) by smtp.teksavvy.com with SMTP; 08 Jul 2017 20:27:43 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sat, 08 Jul 2017 20:27:38 -0400 From: "Walter Dnes" Date: Sat, 8 Jul 2017 20:27:38 -0400 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Sets vs Meta ebuilds Message-ID: <20170709002738.GA28879@waltdnes.org> References: <7513ca72-4ca2-ae77-3321-cdb12263af2f@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Archives-Salt: 48b4b393-6042-447d-a7e0-a4eda3448121 X-Archives-Hash: 4ba8307a9dd5561cc1859a8c9546807a On Fri, Jul 07, 2017 at 01:07:57PM -0400, William L. Thomson Jr. wrote > On Fri, 7 Jul 2017 12:57:17 -0400 > Brian Evans wrote: > > > Beware of sets.. if you put toolchain packages in a set and later > > do 'emerge --unmerge @custom-set' , emerge will happily destroy > > your toolchain. > > That is not much different than removing a system package directly. > If you do foolish things you will run into such problems. That would > be a self inflicted issue. Likely done out of not knowing what you > are doing. I build Pale Moon to my own custom specs, as well as a contributed SSE-only build for older machines. At one point, I read the list of necessary stuff to do the build. I incorporated the following into /etc/portage/palemoon_build >=app-arch/zip-2.3 >=dev-lang/perl-5.6 >=dev-lang/python-2.7.3 >=dev-lang/yasm-1.0.1 >=dev-libs/glib-2.24 dev-vcs/git media-libs/fontconfig >=media-libs/freetype-2.1.0 media-libs/mesa =sys-devel/autoconf-2.13 sys-devel/gcc <=x11-libs/gtk+-3.0 x11-libs/libXt x11-themes/hicolor-icon-theme > Though I will have to see what happens if a package is listed in more > than one set. I think there is a hierarchy there. I tried "emerge -pv --unmerge @palemoon_build", and it was ready to delete all the stuff, including gcc, etc. > Not to mention if it was removed. I think the world or system set > would pull it back in. Kind of hard to "pull it back in" if gcc or glib or ncurses isn't present. This is rather dangerous. The problem is that, unlike an ebuild, "emerge --unmerge @set" removes all packages in the set, regardless of whether they're required by another package or not. I deleted /etc/portage/sets/palemoon_build, and the entry "@palemoon_build" from /var/lib/portage/world_sets. It turns out that all these packages are required anyways. hicolor-icon-theme was not required previously, but gtk seems to add more and more GNOME dependencies every time I update my system. Let's say I try to do this as a meta package. So in my overlay I create a category "meta-set" and a file "meta-set/pmbuild-0.ebuild" EAPI=5 SLOT="0" KEYWORDS="amd64 x86" DEPEND=" >=app-arch/zip-2.3 >=dev-lang/perl-5.6 >=dev-lang/python-2.7.3 >=dev-lang/yasm-1.0.1 >=dev-libs/glib-2.24 dev-vcs/git media-libs/fontconfig >=media-libs/freetype-2.1.0 media-libs/mesa =sys-devel/autoconf-2.13 sys-devel/gcc <=x11-libs/gtk+-3.0 x11-libs/libXt x11-themes/hicolor-icon-theme" Does each entry have to be detailed with configure, install, etc, stuff, or is this sufficient? -- Walter Dnes I don't run "desktop environments"; I run useful applications