FS#7781 - [xorg-xinit 1.0.4-1] default behaviour requires non-dependencies xorg-apps, xterm, and xorg-twm

Attached to Project: Arch Linux
Opened by John S. Smith (potatoe) - Saturday, 11 August 2007, 19:58 GMT
Last edited by Jan de Groot (JGC) - Saturday, 21 November 2009, 16:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08 Don't Panic
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The default /etc/X11/xinit/xinitrc file shipped with "xorg-xinit" 1.0.4-1 attempts to run "twm", "xclock", and "xterm", but the package does not list "xorg-twm", "xorg-apps", and "xterm" as dependencies. Starting an X Server will fail if this default file is used but these packages are not installed.

This is a problem because a user installing X11 through the xorg dummy package will be presented with a non-functioning startx with no warning that further packages and/or customization is required to make it function.

/etc/X11/xinitrc should be changed to not reference these programs, "xorg-twm", "xorg-apps", and "xterm" should be listed as dependencies of "xorg-xinit", or installing "xorg-xinit" should emit a message informing the user that one of either installing "xterm", "xorg-apps", and "xorg-twm" or creating a custom .xinitrc is required for the package to function.

Adding "xorg-twm", "xterm", and "xorg-apps" as dependencies will add approximately 900KB in dependencies. Note: "xorg-apps" will be automatically installed as a dependency of "xterm", but I assume that implicitly relying on this sub-dependency to continue to exist in the future would be less preferable than listing it explicitly.

Additional info:
* package version(s)
xorg-xinit: 1.0.4-1, installed as a dependency of xorg 11R7.0-1
* config and/or log files etc.
/etc/X11/xinit/xinitrc is the default version, included with xorg-xinit. I have no ~/.xinitrc.

Steps to reproduce:

(On a system without xterm, xorg-apps, and xorg-twm installed, and without a ~/.xinitrc file, install and configure xorg7 and attempt to start it using startx):
# pacman -Qi xorg-apps xorg-twm xterm
error: package "xorg-apps" not found
error: package "xorg-twm" not found
error: package "xterm" not found
# pacman -S xorg
(Choose to install all packages presented)
(Configure /etc/X11/xorg.conf)
# startx
(Screen flashes to X11 but then returns to terminal)

X Windows System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: UNKNOWN
Current Operating System: Linux system 2.6.22-ARCH #1 SMP PREEMPT Thu Aug 2 18:27:37 CEST 2007 i686
Build Date: 08 April 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown..
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 11 07:25:52 2007
(==) Using config file: "/etc/X11/xorg.conf"

/etc/X11/xinit/xinitrc: line 28: twm: command not found
/etc/X11/xinit/xinitrc: linu 29: xclock: command not found
/etc/X11/xinit/xinitrc: line 30: xterm: command not found
/etc/X11/xinit/xinitrc: line 31: xterm: command not found
/etc/X11/xinit/xinitrc: line 32: exec: xterm: not found

waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

#
(startx will continue to fail to function unless xterm, xorg-apps, and xorg-twm are installed or a custom .xinitrc is created)
This task depends upon

Closed by  Jan de Groot (JGC)
Saturday, 21 November 2009, 16:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  Added to optdepends.
Comment by Roman Kyrylych (Romashka) - Tuesday, 14 August 2007, 11:22 GMT
> installing "xorg-xinit" should emit a message informing the user that one of either installing "xterm", "xorg-apps", and "xorg-twm" or creating a custom .xinitrc is required for the package to function.

I like this way. Forcing users to install xorg-apps by adding them as a dependency to xorg-init is not good IMO.

BTW, IMO a newbie user will get better Xorg installation by -S xorg-server xorg-clients xf86-input-mouse xf86-keyboard xf86-somevideo than -S xorg.
Comment by Greg (dolby) - Saturday, 20 October 2007, 19:32 GMT
xorg-apps, a dependency to xterm is very much uneeded imo. if someone wants to use xclock and the other utilities should install em explicitly
Comment by Greg (dolby) - Saturday, 20 October 2007, 19:35 GMT
btw xterm PKGBUILD is missing a license field
Comment by Greg (dolby) - Monday, 31 December 2007, 19:33 GMT
attached a cleaned PKGBUILD , as many of the enabled options are there by default. also removed the xorg-apps dependency but feel free to add it if u want. the permissions of the executable are ok no need for that either
Comment by Greg (dolby) - Monday, 31 December 2007, 20:13 GMT
oh and btw license in the attached PKGBUILD should be MIT not GPL
Comment by Greg (dolby) - Saturday, 12 January 2008, 21:00 GMT
You can safely disregard my previous comments on this bug report, except maybe the license one, cause as of xterm-230 and on part of the xterm package is koi8rxterm from Debian which had xorg-apps as a dependency (mayeb not all of them but at least xmessage).
Comment by Roman Kyrylych (Romashka) - Saturday, 09 February 2008, 17:44 GMT
can this be closed?
Comment by Roman Kyrylych (Romashka) - Saturday, 09 February 2008, 17:46 GMT
oh, disregard my comment, I thought Grigorios asked about closure, sorry.
Comment by Greg (dolby) - Saturday, 09 February 2008, 17:49 GMT
the bug reported is hardly relevant to my cooments. i just hijacked it :P
Comment by Gavin Bisesi (Daenyth) - Thursday, 11 December 2008, 18:19 GMT
What's the status on this.
Comment by Greg (dolby) - Monday, 02 February 2009, 03:40 GMT
Back on topic, i think theres 3 ways to deal with this bug
a) Close it now, as if you pacman -S xorg it will pull all dependencies for the xinitrc file. xorg-apps is a dependency of xterm now
b) add dependencies for xorg-xinit the following: xorg-twm & xorg-apps.
c) change the xinitrc file.

I vote for solution a).
Sorry for hijacking this before, i feel bad and want to contribute into solving this as much as i can. :)
Comment by Greg (dolby) - Monday, 02 February 2009, 03:41 GMT
b) also needs xterm
c) note this file is the upstream distributed one.
Comment by Allan McRae (Allan) - Sunday, 15 March 2009, 02:34 GMT
Decision? Do we want to use optdepends here?
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 21 June 2009, 15:09 GMT
status at this moment:

Name : xorg-xinit
Version : 1.1.1-1
Depends On : libx11 xorg-xauth
Optional Deps : None

Name : xorg-apps
Version : 7.4-2
Depends On : libxcursor libxkbfile libpng libxft libfontenc libxaw
Optional Deps : None

Name : xterm
Version : 243-2
Depends On : libxft libxaw>=1.0.5 ncurses xorg-apps
Optional Deps : None

Loading...