Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] glibc ebuilds
Date: Sat, 03 Nov 2001 21:32:41
Message-Id: 1004848524.809.13.camel@nosferatu.lan
In Reply to: Re: [gentoo-dev] glibc ebuilds by "Tod M. Neidt"
1 On Sat, 2001-11-03 at 21:45, Tod M. Neidt wrote:
2 > Hi!
3 >
4 > Here is a simple patch to glibc-2.2.4-r2.ebuild to check for a running
5 > Xserver and if there is to exit and echo telling the user to quit X and
6 > merge from the console.
7 >
8 > tod
9 >
10
11 Not going to work. As i am sitting here, if I do a 'su -' to su to
12 root, $DISPLAY is not defined anymore after su, and it _is_ after all
13 only root (for the moment anyhow) that can merge packages.
14
15 > --- /usr/portage/sys-libs/glibc/glibc-2.2.4-r2.ebuild Fri Sep 28 05:51:17 2001
16 > +++ glibc-2.2.4-r2.ebuild Sat Nov 3 19:37:46 2001
17 > @@ -15,6 +15,15 @@
18 > #We need gcc-2.95.3-r2 because it includes a special fix for this glibc version (2.2.4)
19 > DEPEND="~sys-kernel/linux-headers-2.4.10 nls? ( sys-devel/gettext ) gd? ( media-libs/libgd )"
20 >
21 > +#Check for running xserver
22 > +if [ "$DISPLAY" ]
23 > + then
24 > + echo "You can't merge glibc with a running X server."
25 > + echo "Please shutdown X and merge from a console."
26 > + exit
27 > +fi
28 > +
29 > +
30 > if [ -z "`use bootstrap`" ] && [ -z "`use bootcd`" ] && [ -z "`use build`" ]
31 > then
32 > RDEPEND="gd? ( sys-libs/zlib media-libs/libpng ) sys-apps/baselayout"
33 --
34
35 Martin Schlemmer
36 Gentoo Linux Developer, Desktop Team Developer
37 Cape Town, South Africa

Replies

Subject Author
Re: [gentoo-dev] glibc ebuilds "Tod M. Neidt" <tneidt@××××××.com>
Re: [gentoo-dev] glibc ebuilds "Tod M. Neidt" <tneidt@××××××.com>