Gentoo Archives: gentoo-dev

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