From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DATE_IN_PAST_24_48,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from four.fidnet.com ([205.216.200.54] helo=mail.fidnet.com) by cvs.gentoo.org with smtp (Exim 3.30 #1) id 160DDx-0002IR-00 for gentoo-dev@cvs.gentoo.org; Sat, 03 Nov 2001 19:41:25 -0700 Received: (qmail 29541 invoked from network); 4 Nov 2001 02:41:10 -0000 Received: from unknown (HELO dialup-mo-39.stjames.fidnet.com) (216.229.82.39) by 0 with SMTP; 4 Nov 2001 02:41:10 -0000 Subject: Re: [gentoo-dev] glibc ebuilds From: "Tod M. Neidt" To: gentoo-dev mailing list In-Reply-To: <20011103182505.4024c6e3.erichey2@home.com> References: <20011103182505.4024c6e3.erichey2@home.com> Content-Type: multipart/mixed; boundary="=-9GRJjTVmT5CRYvWltUlg" X-Mailer: Evolution/0.15 (Preview Release) Message-Id: <1004816735.14975.1.camel@Q.neidt.net> Mime-Version: 1.0 Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Sat Nov 3 19:42:02 2001 X-Original-Date: 03 Nov 2001 19:45:33 +0000 X-Archives-Salt: 920b0962-b84c-49fb-b9c5-56667cff3cae X-Archives-Hash: 07bc7d81236c9897da69cb6ba9219018 --=-9GRJjTVmT5CRYvWltUlg Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi! Here is a simple patch to glibc-2.2.4-r2.ebuild to check for a running Xserver and if there is to exit and echo telling the user to quit X and merge from the console. tod On Sun, 2001-11-04 at 01:25, Collins Richey wrote: > You need a new option in portage. A glibc ebuild (in this case > triggered by emerge system) will stop after several hours of > compiles complaining that "this cannot be done when X is active." You > should detect this up front to avaoid wasting a lot of compile time. > > -- > Collins Richey > Denver Area > gentoo_rc6 xfce+sylpheed > > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@cvs.gentoo.org > http://cvs.gentoo.org/mailman/listinfo/gentoo-dev > --=-9GRJjTVmT5CRYvWltUlg Content-Type: text/plain Content-Disposition: attachment; filename=glibc-2.2.4-r2-checkX.patch Content-Transfer-Encoding: 7bit --- /usr/portage/sys-libs/glibc/glibc-2.2.4-r2.ebuild Fri Sep 28 05:51:17 2001 +++ glibc-2.2.4-r2.ebuild Sat Nov 3 19:37:46 2001 @@ -15,6 +15,15 @@ #We need gcc-2.95.3-r2 because it includes a special fix for this glibc version (2.2.4) DEPEND="~sys-kernel/linux-headers-2.4.10 nls? ( sys-devel/gettext ) gd? ( media-libs/libgd )" +#Check for running xserver +if [ "$DISPLAY" ] + then + echo "You can't merge glibc with a running X server." + echo "Please shutdown X and merge from a console." + exit +fi + + if [ -z "`use bootstrap`" ] && [ -z "`use bootcd`" ] && [ -z "`use build`" ] then RDEPEND="gd? ( sys-libs/zlib media-libs/libpng ) sys-apps/baselayout" --=-9GRJjTVmT5CRYvWltUlg--