Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156570 - x11-apps/xinit-1.0.8-r8 stable request
Summary: x11-apps/xinit-1.0.8-r8 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard: 10.0 Release
Keywords: STABLEREQ
: 284722 285740 (view as bug list)
Depends on:
Blocks: 281827
  Show dependency tree
 
Reported: 2006-11-28 17:51 UTC by SpanKY
Modified: 2009-10-05 16:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xdm.patch (xdm.patch,830 bytes, text/plain)
2009-09-13 23:34 UTC, William Hubbs
Details
xdm-with-nox.patch (xdm-with-nox.patch,857 bytes, text/plain)
2009-09-14 11:37 UTC, William Hubbs
Details
xdm-with-nox.patch (xdm-with-nox.patch,1.03 KB, text/plain)
2009-09-14 13:27 UTC, William Hubbs
Details
x-setup.initd-1 (x-setup.initd-1,215 bytes, text/plain)
2009-09-14 15:57 UTC, William Hubbs
Details
xdm.initd-3 (xdm.initd-3,5.21 KB, text/plain)
2009-09-14 15:58 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-11-28 17:51:11 UTC
we have get_bootparam() already in /sbin/functions.sh which means it's available to the init.d scripts

do you really need 'nox' or is 'gentoo=nox' acceptable ?  after all, 'gentoo=<foo>' is how every other option is passed to init.d scripts ...
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-11-28 18:02:25 UTC
The LiveCD people requested the 'nox' feature, bringing them in for input.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-29 14:24:53 UTC
Well, "nox" was explicitly requested because it is what is used in livecd-tools to skip the X detection.  If X isn't detected, then the display manager (and X) will likely fail.  This causes lots of nastiness for LiveCD users, which was why the request was made.  I'd prefer it if it stayed like it currently is for the functionality used by the LiveCD.
Comment 3 SpanKY gentoo-dev 2006-12-02 11:47:41 UTC
so fix the livecd tools to use gentoo=nox
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-08 09:48:08 UTC
That's really stupid considering all of the other options don't require prefixing with gentoo= to function.  There's also the issue of limited space on the kernel command line, and the LiveCD builds already put quite a bit of data there.  I wouldn't want these options to be ignored because it went over the buffer.

To put it simply, gentoo=nox is *not* acceptable to us.
Comment 5 SpanKY gentoo-dev 2006-12-08 15:09:31 UTC
if the only purpose of this is for livecds, why arent the livecd scripts handling the option completely ?  why does the xdm init.d script need to know about the option when the livecd should simply not be starting the xdm init.d script in the first place ?
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-12-09 10:41:12 UTC
It's useful in other cases too, some of which I've hit.

* X freezes on startup, but you've got the xdm init script in your default runlevel
* You're rebooting a machine and you don't want X to start up yet, because you want to change the config but forgot

And yes, these can also be solved in many cases by doing an interactive boot.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2006-12-09 10:52:07 UTC
(In reply to comment #6)
> And yes, these can also be solved in many cases by doing an interactive boot.

Or by appending "single" to the kernel command line and removing the services causing the problem manually and then allow boot to continue.
Comment 8 SpanKY gentoo-dev 2006-12-09 17:28:36 UTC
so then the init.d script uses the proper gentoo=nox while livecd scripts can continue to use their own short nox ... or you can do as Roy suggests
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-11 05:29:47 UTC
The LiveCD scripts don't start xdm.  They never have.  While it could be *changed* to do so, I don't see the point.

Let me put it another way.  What do we gain by changing this behavior, and is it worth the effort required to change the multiple places in livecd-tools and catalyst just to facilitate what I see as a cosmetic change?
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-13 18:04:38 UTC
Donnie, do we want to change this?  If we do, it means removing the "nox" check from the init script, and I'll be putting all of the *dm starting in livecd-tools, instead.  It means we'll only have this functionality on the LiveCD, of course.
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2007-04-13 19:57:49 UTC
(In reply to comment #10)
> Donnie, do we want to change this?

It really doesn't matter at all to me one way or the other. Do whatever you guys have decided is the best course.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-06-19 15:17:40 UTC
@livecd folks.

care to tell us what the status on this is?

Thanks
Comment 13 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-20 21:39:09 UTC
Were we supposed to be doing something? It looks like it was just left in limbo
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-06-21 16:30:01 UTC
Let's start the discussion over then :)

Do you guys still need gentoo=nox inside xinit's xdm init script? Can this be put somewhere else maybe?

Cheers
Comment 15 Chris Gianelloni 2009-09-04 16:17:23 UTC
No, the question was if "nox" itself was necessary, or if it can be moved to "gentoo=nox" instead.  Truthfully, it doesn't matter.  However, it will mean making changes to the livecd-tools scripts which use it, as well as the xdm init script.  This support was originally requested for the LiveCD, which doesn't use gentoo=* for anything, but simple do*/no* commands.  This may not be nearly as much of an issue as it once was, since the maximum length of the kernel command line has grown with newer kernels.  Making this change *will* break backwards compatibility and will need documentation updates, as well.

Personally, I see no reason to change it, but have no problem with making the necessary changes to the livecd-tools code.  I tend to think that there's not enough value in the change versus the work required to enact it, but again, I will do whatever Gentoo decides.  Now, if someone wants to provide the necessary patches against livecd-tools, catalyst, and (possibly) genkernel, I will commit them and this can be resolved.  Otherwise, it will be changed whenever I get around to it.
Comment 16 SpanKY gentoo-dev 2009-09-07 05:08:45 UTC
only complaint i really have is that a reboot is required to undo the nox behavior.  i.e. i know starting X is going to lock my system, so i add nox to rebuild the module (*cough* nvidia *cough*), but rather than simply reload the module and start the xdm init.d script, i now have to either edit the script to remove the check or reboot the system.
Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2009-09-13 22:33:50 UTC
*** Bug 284722 has been marked as a duplicate of this bug. ***
Comment 18 William Hubbs gentoo-dev 2009-09-13 23:12:05 UTC
All,

livecd-tools creates a file, /etc/init.d/.noxdm when X is not supposed
to start, which can occur in a couple of situations.

- the user specifies nox on the command line.
- the user specifies speakup.synth=foo or brltty=foo and does not
  specify dox.

I think this issue could be resolved if /etc/init.d/xdm checked for the
existance of /etc/init.d/.noxdm instead of checking the command line.

William

Comment 19 William Hubbs gentoo-dev 2009-09-13 23:34:01 UTC
Created attachment 203984 [details]
xdm.patch

This is a suggested patch to fix this issue.

Let me know what you think.

William
Comment 20 Andrew Gaffney (RETIRED) gentoo-dev 2009-09-13 23:46:25 UTC
The problem with this approach is that it only works in conjunction with livecd-tools.
Comment 21 William Hubbs gentoo-dev 2009-09-14 11:37:14 UTC
Created attachment 204027 [details]
xdm-with-nox.patch

All,

this patch, which we will need someone who is running X to test, should
work with both methods.  nox on the livecd will create the file
/etc/init.d/.noxdm which will signal this script to stop.  Or, if it
finds gentoo=nox on the command line it will stop.

Check it out and let me know what you think.

William
Comment 22 William Hubbs gentoo-dev 2009-09-14 13:27:01 UTC
Created attachment 204050 [details]
xdm-with-nox.patch

All,

this is an updated version of my second patch, per scarabeus.
It now gives more specific messages regarding why xdm isn't starting.
Comment 23 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-14 13:33:36 UTC
Ok latest patch looks nice and sane.

@remi`:
what do you think, i would go with commiting it. Mostly it brings no dead rats into the tree :]
Comment 24 William Hubbs gentoo-dev 2009-09-14 15:57:25 UTC
Created attachment 204073 [details]
x-setup.initd-1

This is the x-setup init script.

Currently, the only thing it does is check the kcl for gentoo=nox and
touch the .noxdm file if the kcl parameter is there.
Comment 25 William Hubbs gentoo-dev 2009-09-14 15:58:27 UTC
Created attachment 204075 [details]
xdm.initd-3

Here is the updated xdm init script that takes advantage of
the x-setup init script.
Comment 26 William Hubbs gentoo-dev 2009-09-14 16:23:57 UTC
Guys,

I have done a revbump to xinit for this bug, after working with Remi and
dberkolz.  So, please test and make sure that everything
works, then, please fast track to stable so we can get it on the dvd.

Thanks much.

William

Comment 27 Federico Cuello 2009-09-14 22:30:44 UTC
William,

There is a mistake in x-setup:

      if check_bootparam "nox" ; then

, should be:

      if get_bootparam "nox" ; then


Comment 28 William Hubbs gentoo-dev 2009-09-14 22:36:25 UTC
All,

I just discovered a problem.  We can't name the new script x-setup
because it will collide with livecd-tools x-setup.

So, what other names do you suggest for the new script?  Off the top of
my head, I'm thinking x-init.
Comment 29 Rémi Cardona (RETIRED) gentoo-dev 2009-09-14 23:30:59 UTC
I'd say xdm-setup, if only because it relates to the xdm script.

But that's just bikeshedding, pick one that works and sounds reasonably ok :)

Cheers
Comment 30 William Hubbs gentoo-dev 2009-09-15 00:32:55 UTC
All,

I have renamed the script to xdm-setup and also addressed comment #27.

Thanks for pointing that out.

Comment 31 William Hubbs gentoo-dev 2009-09-15 18:03:10 UTC
Arch teams,

we need xinit-1.0.8-r6 fast tracked to stable before the 10.0 live dvd release.

The test to perform is as follows:

1) emerge and make sure you are using xdm-1.0.8-r6.  Also, make sure
that xdm is set to start on boot by adding to the default runlevel.
2) reboot and pass gentoo=nox on the kernel command line.
- at this point xdm should not start.
3) Now start xdm manually and it should come up.

If this works, please stabilize 1.0.8 on your arch asap.

Thanks much.

William

Comment 32 William Hubbs gentoo-dev 2009-09-15 18:04:39 UTC
In the last comment, I meant stabilize 1.0.8-r6.

Thanks.

William
Comment 33 Fernando (likewhoa) 2009-09-17 09:33:32 UTC
William please test the latest hybrid isos, I made a change to xdm initd so speakup.synth and brltty work.
Comment 34 Fernando (likewhoa) 2009-09-17 09:34:59 UTC
I am adding patches above and they will be part of my next build. 
Comment 35 Matthias Schwarzott gentoo-dev 2009-09-17 12:02:42 UTC
I think the xdm-setup init-script needs some kind of dependency to make sure /etc/init.d is writable.
One possibility that should work with baselayout 1 and 2 is "need localmount".
Comment 36 William Hubbs gentoo-dev 2009-09-17 16:32:05 UTC
All,

I just did another rev bump to address comment #35.

Please stabilize -r7 instead.

Thanks much.
Comment 37 William Hubbs gentoo-dev 2009-09-19 20:15:43 UTC
Arch teams,

what is the status of stabilization?  This is needed for the live cd/dvd
release.

Thanks,

William
Comment 38 Markus Meier gentoo-dev 2009-09-20 20:06:07 UTC
# USE="consolekit" emerge -1av =x11-apps/xinit-1.0.8-r7

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "sys-apps/hal[consolekit]".
!!! One of the following packages is required to complete your request:
- sys-apps/hal-0.5.11-r9 (Missing IUSE: consolekit)
(dependency required by "x11-apps/xinit-1.0.8-r7" [ebuild])
(dependency required by "=x11-apps/xinit-1.0.8-r7" [argument])

needs newer hal.
Comment 39 Christian Faulhammer (RETIRED) gentoo-dev 2009-09-22 00:09:27 UTC
(In reply to comment #38)
> needs newer hal.

 Is there a simple solution?
Comment 40 Jeroen Roovers (RETIRED) gentoo-dev 2009-09-22 01:00:49 UTC
*** Bug 285740 has been marked as a duplicate of this bug. ***
Comment 41 Markus Meier gentoo-dev 2009-09-22 07:05:07 UTC
I guess we should go for x11-apps/xinit-1.0.8-r8?


  21 Sep 2009; Tomáš Chvátal <scarabeus@gentoo.org>
  xinit-1.0.8-r8.ebuild:
  Remove not required dependencies (aka kill hal useflag). Per #g-dev
  discussion.

*xinit-1.0.8-r8 (21 Sep 2009)

  21 Sep 2009; Tomáš Chvátal <scarabeus@gentoo.org>
  +xinit-1.0.8-r8.ebuild:
  Revbump the xinint for the last commit so automagicness is fixed even for
  those whom already compiled the thing.

  21 Sep 2009; Tomáš Chvátal <scarabeus@gentoo.org>
  xinit-1.0.8-r7.ebuild:
  Disable automagicness. Per bug #285741.

  19 Sep 2009; Tomáš Chvátal <scarabeus@gentoo.org>
  xinit-1.0.8-r7.ebuild, metadata.xml:
  Adjust the hal/consolekit mess to be more sane.
Comment 42 Fabio Erculiani (RETIRED) gentoo-dev 2009-09-24 20:36:48 UTC
Writing to /etc/init.d/ a file like .noxdm is very wrong and causes runlevel cache to be tainted (which has a VERY BAD performance impact).

Please fix, x11-apps/xinit added the support for .noxdm in /tmp.
Comment 43 William Hubbs gentoo-dev 2009-09-24 21:14:49 UTC
All,

I just spoke with lxnay about this on IRC.  Please disregard comment #42.
Please stabilize -r8.

Thanks much.

Comment 44 William Hubbs gentoo-dev 2009-09-24 21:50:47 UTC
All,

on my previous comment I said to disregard comment #42.  What I meant
was that this comment deals with an issue in livecd-tools, and since
this bug  is against xinit, that comment will be handled in another bug.

Comment 45 Markus Meier gentoo-dev 2009-09-27 11:08:08 UTC
amd64/x86 stable
Comment 46 nixnut (RETIRED) gentoo-dev 2009-09-27 13:33:58 UTC
ppc stable
Comment 47 Brent Baude (RETIRED) gentoo-dev 2009-09-27 15:24:33 UTC
ppc64 stable
Comment 48 Jeroen Roovers (RETIRED) gentoo-dev 2009-09-28 17:25:08 UTC
Stable for HPPA.
Comment 49 Tobias Klausmann (RETIRED) gentoo-dev 2009-09-29 17:34:19 UTC
Stable on alpha.
Comment 50 Raúl Porcel (RETIRED) gentoo-dev 2009-10-05 16:06:50 UTC
arm/ia64/s390/sh/sparc stable, closing