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=1.1 required=5.0 tests=DATE_IN_PAST_12_24,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from two.fidnet.com ([205.216.200.52] helo=mail.fidnet.com) by cvs.gentoo.org with smtp (Exim 3.30 #1) id 160R6E-00030N-00 for gentoo-dev@cvs.gentoo.org; Sun, 04 Nov 2001 10:30:22 -0700 Received: (qmail 21640 invoked from network); 4 Nov 2001 17:30:05 -0000 Received: from unknown (HELO dialup-mo-84-27.stjames.fidnet.com) (216.229.84.27) by 0 with SMTP; 4 Nov 2001 17:30:05 -0000 Subject: Re: [gentoo-dev] glibc ebuilds From: "Tod M. Neidt" To: gentoo-dev mailing list In-Reply-To: <1004848524.809.13.camel@nosferatu.lan> References: <20011103182505.4024c6e3.erichey2@home.com> <1004816735.14975.1.camel@Q.neidt.net> <1004848524.809.13.camel@nosferatu.lan> Content-Type: multipart/mixed; boundary="=-IZbQSD7kpPO1oiQ7T1Sf" X-Mailer: Evolution/0.15 (Preview Release) Message-Id: <1004870072.786.2.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: Sun Nov 4 10:31:02 2001 X-Original-Date: 04 Nov 2001 10:34:30 +0000 X-Archives-Salt: f62ad2bb-c82b-4d75-8a3e-03e6c474fd79 X-Archives-Hash: 16cbb76c1d5e607d977cc92ee0d2d839 --=-IZbQSD7kpPO1oiQ7T1Sf Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi! Ok, here is another attempt. This one checks for a LCK..tty* file in /var/lock. Again sorry for the previous brain fart :) tod On Sun, 2001-11-04 at 04:35, Martin Schlemmer wrote: > On Sat, 2001-11-03 at 21:45, Tod M. Neidt wrote: > > 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 > > > > Not going to work. As i am sitting here, if I do a 'su -' to su to > root, $DISPLAY is not defined anymore after su, and it _is_ after all > only root (for the moment anyhow) that can merge packages. > > then > > RDEPEND="gd? ( sys-libs/zlib media-libs/libpng ) sys-apps/baselayout" > -- > > Martin Schlemmer > Gentoo Linux Developer, Desktop Team Developer > Cape Town, South Africa > --=-IZbQSD7kpPO1oiQ7T1Sf 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 Sun Nov 4 10:23:39 2001 @@ -15,6 +15,17 @@ #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 [ $(ls /var/lock/LCK..tty*) ] +then + echo "You can't merge glibc with a running X server." + echo "Please shutdown X and merge from a console." + exit +else + echo "Good: no Xserver running!" +fi + + if [ -z "`use bootstrap`" ] && [ -z "`use bootcd`" ] && [ -z "`use build`" ] then RDEPEND="gd? ( sys-libs/zlib media-libs/libpng ) sys-apps/baselayout" --=-IZbQSD7kpPO1oiQ7T1Sf--