* [gentoo-dev] glibc ebuilds
@ 2001-11-03 18:25 Collins Richey
2001-11-03 19:42 ` Tod M. Neidt
0 siblings, 1 reply; 9+ messages in thread
From: Collins Richey @ 2001-11-03 18:25 UTC (permalink / raw
To: gentoo
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
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
0 siblings, 1 reply; 9+ messages in thread
From: Tod M. Neidt @ 2001-11-03 19:42 UTC (permalink / raw
To: gentoo-dev mailing list
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
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
>
[-- Attachment #2: glibc-2.2.4-r2-checkX.patch --]
[-- Type: text/plain, Size: 669 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 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"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
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
0 siblings, 2 replies; 9+ messages in thread
From: Martin Schlemmer @ 2001-11-03 21:33 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]
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.
> --- /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"
--
Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
2001-11-03 21:33 ` Martin Schlemmer
@ 2001-11-04 9:45 ` Tod M. Neidt
2001-11-04 10:31 ` Tod M. Neidt
1 sibling, 0 replies; 9+ messages in thread
From: Tod M. Neidt @ 2001-11-04 9:45 UTC (permalink / raw
To: gentoo-dev mailing list
Hi!
My bad. Sorry. That's what I get for staying up to late.
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.
>
> > --- /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"
> --
>
> Martin Schlemmer
> Gentoo Linux Developer, Desktop Team Developer
> Cape Town, South Africa
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
2001-11-03 21:33 ` Martin Schlemmer
2001-11-04 9:45 ` Tod M. Neidt
@ 2001-11-04 10:31 ` Tod M. Neidt
2001-11-04 12:51 ` Collins Richey
2001-11-11 9:46 ` Karl Trygve Kalleberg
1 sibling, 2 replies; 9+ messages in thread
From: Tod M. Neidt @ 2001-11-04 10:31 UTC (permalink / raw
To: gentoo-dev mailing list
[-- 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"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
2001-11-04 10:31 ` Tod M. Neidt
@ 2001-11-04 12:51 ` Collins Richey
2001-11-11 9:46 ` Karl Trygve Kalleberg
1 sibling, 0 replies; 9+ messages in thread
From: Collins Richey @ 2001-11-04 12:51 UTC (permalink / raw
To: gentoo-dev
On 04 Nov 2001 10:34:30 +0000 "Tod M. Neidt" <tneidt@fidnet.com>
wrote:
> 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"
Whatever works. I'm not repeating this for a third time. Take your
time and come up with a permanent solution.
--
Collins Richey
Denver Area
gentoo_rc6 xfce+sylpheed
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
2001-11-04 10:31 ` Tod M. Neidt
2001-11-04 12:51 ` Collins Richey
@ 2001-11-11 9:46 ` Karl Trygve Kalleberg
2001-11-12 8:36 ` Tod M. Neidt
1 sibling, 1 reply; 9+ messages in thread
From: Karl Trygve Kalleberg @ 2001-11-11 9:46 UTC (permalink / raw
To: gentoo-dev
On 04 Nov 2001 10:34:30 +0000
"Tod M. Neidt" <tneidt@fidnet.com> wrote:
> Hi!
>
> Ok, here is another attempt. This one checks for a LCK..tty* file in
> /var/lock.
Is there any fundamentally good reason why you don't check for the
presence of /tmp/.X?-lock, which XFree itself checks for to determine if
an existing X is running ?
Kind regards,
Karl T
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
2001-11-11 9:46 ` Karl Trygve Kalleberg
@ 2001-11-12 8:36 ` Tod M. Neidt
2001-11-12 21:01 ` Aron Griffis
0 siblings, 1 reply; 9+ messages in thread
From: Tod M. Neidt @ 2001-11-12 8:36 UTC (permalink / raw
To: gentoo-dev
Hi!
> Is there any fundamentally good reason why you don't check for the
> presence of /tmp/.X?-lock, which XFree itself checks for to determine if
> an existing X is running ?
>
Yes... my blatant ignorance of X! :) You are right /tmp/.X?-lock is
the way to check for X running. As you can tell, I have no qualms about
baring my ass in public. That said, sheild your eyes.
I recently, updated several gnome-apps to the current versions (I'm
composing this in evo 0.99, thanks hallski!). While updating, I ran
into a couple situations where I hosed my gnome-session out from under
myself. Normally, you can safely emerge a gnome-app while running a
gnome-session. However, if the app emerge triggers an update of one of
the underlying libs through a dependency you will promptly shoot
yourself in the foot. This happened to me when imlib and gdk-pixbuf
were updated while emerging the new evolution and gnumeric. It would be
nice if *critical* gnome-libs ebuilds would check to make sure you are
not running a gnome-session before merging, and ask you to drop down
into console mode to do the merge.
I assume that a kde or other desktop environments would have similar
situations.
tod
ps. I tried duplicating the glibc emerge failure that was reported, but
didn't see. However, the error was reported after a emerge system, but
I checked for it with ebuild glibc unpack compile install. Although I
am sure I would have hosed my self if qmerged, the build and install did
not fail.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] glibc ebuilds
2001-11-12 8:36 ` Tod M. Neidt
@ 2001-11-12 21:01 ` Aron Griffis
0 siblings, 0 replies; 9+ messages in thread
From: Aron Griffis @ 2001-11-12 21:01 UTC (permalink / raw
To: gentoo-dev
Tod M. Neidt wrote: [Mon Nov 12 2001, 09:37:36AM EST]
> I recently, updated several gnome-apps to the current versions (I'm
> composing this in evo 0.99, thanks hallski!). While updating, I ran
> into a couple situations where I hosed my gnome-session out from under
> myself. Normally, you can safely emerge a gnome-app while running a
> gnome-session. However, if the app emerge triggers an update of one of
> the underlying libs through a dependency you will promptly shoot
> yourself in the foot. This happened to me when imlib and gdk-pixbuf
> were updated while emerging the new evolution and gnumeric. It would be
> nice if *critical* gnome-libs ebuilds would check to make sure you are
> not running a gnome-session before merging, and ask you to drop down
> into console mode to do the merge.
Normally it should not be a problem to install a new version of
a library even when programs are currently loaded that are using the
older version. The problem here is actually that Portage is overwriting
the library without unlinking it first. Since the library is mmap'd, it
results in offsets being all wrong, so the application (gnome-session in
this case) segfaults.
Aron
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-11-13 4:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox