public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tod M. Neidt" <tneidt@fidnet.com>
To: gentoo-dev mailing list <gentoo-dev@cvs.gentoo.org>
Subject: Re: [gentoo-dev] glibc ebuilds
Date: Sun Nov  4 10:31:02 2001	[thread overview]
Message-ID: <1004870072.786.2.camel@Q.neidt.net> (raw)
In-Reply-To: <1004848524.809.13.camel@nosferatu.lan>

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

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
> 


[-- Attachment #2: glibc-2.2.4-r2-checkX.patch --]
[-- Type: text/plain, Size: 724 bytes --]

--- /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"

  parent reply	other threads:[~2001-11-04 17:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-03 18:25 [gentoo-dev] glibc ebuilds Collins Richey
2001-11-03 19:42 ` Tod M. Neidt
2001-11-03 21:33   ` Martin Schlemmer
2001-11-04  9:45     ` Tod M. Neidt
2001-11-04 10:31     ` Tod M. Neidt [this message]
2001-11-04 12:51       ` Collins Richey
2001-11-11  9:46       ` Karl Trygve Kalleberg
2001-11-12  8:36         ` Tod M. Neidt
2001-11-12 21:01           ` Aron Griffis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1004870072.786.2.camel@Q.neidt.net \
    --to=tneidt@fidnet.com \
    --cc=gentoo-dev@cvs.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox