Bug 3060 - X installation is too big
Summary: X installation is too big
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 4011
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-15 14:40 CEST by Georges Eckenschwiller
Modified: 2012-02-22 07:44 CET (History)
7 users (show)

See Also:
Source RPM: task-x11 task-xfce xguest
CVE:
Status comment:


Attachments
Tests results (2.38 KB, text/plain)
2012-02-20 11:08 CET, Georges Eckenschwiller
Details

Description Georges Eckenschwiller 2011-10-15 14:40:12 CEST
Description of problem:

DrakX currently does not directly install Xfce.
To circumvent the problem, I proceed as follows:

- When installing Mageia, I choose "Personalise desktop."
- In the next window I deselect all package groups.
- And in the next window I choose "with X".

The installation of a Mageia (or cauldron) is going well, but installs a hundred packages unnecessary.
I find that these packages are dependencies of kdm, whereas ââxdm is also installed.

The following problem: which requires the installation of kdm.

In reviewing the file ddebug.log after the line:
* unselecting all packages... (corresponding to the deselection of groups of packages)
I see a line:
* packageCallbackChoices: default choice ('kdm') from kdm,gdm,slim for dm

This does not seem to come from the file prefer.vendor.list, included in
mdkinst.sqfs.
This does not seem to come not from the file rpmsrate (paragraph CAT_X).

So where is the error ?
Manuel Hiebel 2011-10-15 21:28:44 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=609

Comment 1 Georges Eckenschwiller 2011-10-18 14:55:29 CEST
I think that this bug could be treated even tempt the 3093
Manuel Hiebel 2011-11-11 01:11:15 CET

Source RPM: (none) => meta-task

Comment 2 Marja Van Waes 2012-01-03 20:27:40 CET
@ Georges

Please read Païou's mails to the mageia-dev ml:


On 02/01/12 21:00, Païou wrote:
> Hello, all
>
> I just did a minimal installation of Mageia 1 (with updates)
> (custom desktop, in the next window I uncheck all package groups,
>  in the next window I check with X).
> Everything is going very well.
>
> And I have the pleasant surprise that, thanks to the updates, 
> the number of installed packages from 732 to 636.
> That's what I wanted for a long time.
>
> I compared the lists of packages and found that kdm is replaced by slim.
> Being a naturally curious, I would like to know what causes this substitution, 
> and in general, causing the decrease of packages.bassies

later he added
On 03/01/12 16:05, Païou wrote:
>
> I get this reduction in installed packages only if I add a mirror
>  with the update, at the time of installation.

So he added a mirror at the beginning of the installation. If you don't do that, kdm will be installed

CC: (none) => marja11, paiiou

Comment 3 Georges Eckenschwiller 2012-01-03 20:48:49 CET
Hello,
Paiou is my nickname.

I have indeed discovered this progress with Mageia 1.

 By cons, this is not the case with Cauldron.

I am trying to understand the process, but I have not yet found.
Comment 4 Marja Van Waes 2012-01-03 21:25:23 CET
(In reply to comment #3)
> Hello,
> Paiou is my nickname.
> 

Oops, sorry.

Did you try LXDE, btw? 

cc'ing LXDE maintainer.

@ Oliver

How minimal is your cauldron-LXDE?

CC: (none) => oliver.bgr

Comment 5 Georges Eckenschwiller 2012-01-03 21:34:56 CET
In fact, I use lxdm with xfce.
I think they go great together and lxdm is more advanced than slim (choice of office, can stop the computer)

You can find details on my website (only in french) http://paiiou.free.fr/index.php
Comment 6 Georges Eckenschwiller 2012-01-14 17:13:29 CET
hi,
I tried to understand why, with updates, the installation is effectively minimal.
It would suffice, probably, to make the same changes in cauldron.


As I know, at a installation of mageia, installed packages depend of three files:
- CompssUsers.pl
- rpmsrate
- Prefer.vendor.list contained in stage2
But these three files are the same in a mirror without updates that in a mirror with updates.

I then compare the files ddebug.log, products during installation.
Especially the part about the stage of the installation after I have unchecked all package groups.

Following is the interesting extract (mirror with updates):
* unselecting all packages...
* packageCallbackChoices: default choice ('slim') from slim,kdm,gdm for dm
* ERROR: selection failed: 
* ERROR: selection failed: 
* setSelectedFromCompssList: reached size 721MB, up to indice 5 (less than 2.7Gio)
  for flags 3D BURNER CAT_MINIMAL_DOCS CAT_SYSTEM CAT_X CHARSET"iso-8859-15" DVD LOCALES"fr" LOCALES"fr_FR" META_CLASS"download" SOUND TRUE USB UTF8

The same extract (mirror xithout updates)
* unselecting all packages...
* packageCallbackChoices: default choice ('kdm') from kdm,gdm,slim for dm
* preferring Default-kde4-config over netbook-kde4-config
* preferring phonon-gstreamer over phonon-xine,phonon-vlc
* ERROR: selection failed: 
* ERROR: selection failed: 
* setSelectedFromCompssList: reached size 934MB, up to indice 5 (less than 2.7Gio)
  for flags 3D BURNER CAT_MINIMAL_DOCS CAT_SYSTEM CAT_X CHARSET"iso-8859-15" DVD LOCALES"fr" LOCALES"fr_FR" META_CLASS"download" SOUND TRUE USB UTF8


Can you find out what causes the replacement of kdm by slim. I do not.
Comment 7 Georges Eckenschwiller 2012-01-14 17:19:24 CET
I did a clean minimal install of cauldron this morning.
Now it is 836 packages that are installed.
The environment installed is kde, instead of icewm, as previously.

It gets worse
Kamil Rytarowski 2012-01-18 20:28:05 CET

CC: (none) => n54

Comment 8 Kamil Rytarowski 2012-01-18 20:34:16 CET
Hello Georges!
This needs a lot of investigation and I would consider this for Mga3.
Comment 9 Georges Eckenschwiller 2012-02-01 11:47:56 CET
I do not have sufficient knowledge to understand what is happening.
But I just realized a few install tests.

At first, I modify the file mdkinst.sqfs, using mdkinst_stage2_tool.
I added a line "lxdm" in the file prefer.vendor.list, so to prefer lxdm as display manager

With this modified file, my minimal installation includes 586 package,
instead of 810 with the original mdkinst.sqfs file. kdm is not installed.

I also checked the conventional installations of KDE and Gnome:
KDE still uses kdm. Gnome uses gdm.

The solution is simply to complement prefer.vendor.list and this does not affect other types of installation.
Comment 10 Marja Van Waes 2012-02-01 12:12:33 CET
@ Georges

Nice, only 586 packages!

how much HD space does your install need, now?
Comment 11 Georges Eckenschwiller 2012-02-02 21:22:00 CET
(In reply to comment #10)
> @ Georges
> 
> Nice, only 586 packages!
> 
> how much HD space does your install need, now?

df gives 978 MB for the root directory. (sda1)

Note, that at this stage, there is only the desktop "IceWM".
Comment 12 Georges Eckenschwiller 2012-02-03 13:54:23 CET
I just refined my analysis.
I use the following command to remove correctly the partitions not concerned
du -h --exclude=/home* --exclude=/var/ftp* --exclude=/var/www* /
I get the following result: 684 MB

I do not know what a developer is concerned by the package meta-task.
Could it change the package.
Manuel Hiebel 2012-02-03 18:57:25 CET

Depends on: (none) => 4011

Comment 13 Georges Eckenschwiller 2012-02-04 16:11:35 CET
Hello,
After my last tries of lxdm, I think that it is effectively preferable to use
SLiM.

Here is the result of the top command, by using lxdm.

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1377 root      20   0  7004 2456 2000 R 98.3  0.5   2:09.92 lxdm-binary
    1 root      20   0  4764 2912 1660 S  0.0  0.6   0:01.54 systemd

It seems that lxdm-0.4 raise a problem of processor use.

The file "prefer.vendor.list" must be thus completed by a line " slim ", to
install slim rather that kdm.
Comment 14 Georges Eckenschwiller 2012-02-07 20:14:28 CET
The bug 4406 is corrected (overload of the processor).

It is thus possible to prefer lxdm as well that slim.
Olav Vitters 2012-02-08 11:14:34 CET

Summary: X installation is to big => X installation is too big

Jacques Pronchery 2012-02-12 15:47:29 CET

CC: (none) => jacques.pronchery

Thierry Vignaud 2012-02-14 18:23:54 CET

CC: (none) => thierry.vignaud
Source RPM: meta-task => task-x11

Thierry Vignaud 2012-02-14 18:24:36 CET

Source RPM: task-x11 => task-x11 task-xfce

Comment 15 Georges Eckenschwiller 2012-02-15 10:26:53 CET
@ Thierry 
I saw that you consider that " task-x11 and task-xfce " are the packages concerned by bug. 

I think that you mean that that lxdm should be a dependence of these meta-packages. I am of the same opinion and I shall make a report as regards task-xfce-minimal, because it is what I use.

However, this will not decrease the number of packages installed at first.
All the essays which I realized show that it is necessary to impose one "display manager" light, so that kdm is not installed by default.
It is probably not the only solution, but in the meantime, it work.

This display manager could probably be xdm, but I think that it would be necessary to attribute "Provides dm" to the package xdm, before being able to make out a test.
Comment 16 Thierry Vignaud 2012-02-15 12:11:13 CET
Also the only package suggesting dm is xguest.
We should kill that suggests since anyway the proper DM is choosed either by the proper task-<foobar> or by rpmsrate

Source RPM: task-x11 task-xfce => task-x11 task-xfce xguest

Comment 17 Thierry Vignaud 2012-02-15 12:13:27 CET
s/suggest/requires/

Component: Installer => RPM Packages

Comment 18 Georges Eckenschwiller 2012-02-20 11:08:28 CET
Created attachment 1603 [details]
Tests results

Further to Thierry Vignaud's indications and Michael Scherer's remarks,
during the discussion on dm, I proceeded to diverse test installations.
Which are the consequences on the other types of installation (KDE, Gnome)
by the proposed modifications ?
It taken several days, but the local mirror being of use to the installations 
remained unchanged.

First report: xdm is always installed, asked by rpmsrate, item CAT_X.

My synthesis
-----------
There is thus 3 way of reducing in a very considerable way the number 
of packages installed by default during a reduced installation:
584 or 588 packages instead of 798.

- Modification of the file prefer.vendor.list, by suggesting a light dm
- Attribute the property dm to the package xdm.
- Remove xguest of the item CAT_X

The numerous tries which I made show that none of 3 methods affects 
the installation of the other offices.

One of these three methods thus remains to choose.
To modify xdm would be my choice (xdm is systematically settled).
Comment 19 Olav Vitters 2012-02-20 11:48:09 CET
If you select GNOME, it'll still have gdm right? This is only for special (minimal) installations?

CC: (none) => olav

Comment 20 Georges Eckenschwiller 2012-02-20 17:23:55 CET
(In reply to comment #19)
> If you select GNOME, it'll still have gdm right? This is only for special
> (minimal) installations?

When I select the Gnome office, I indeed have gdm who is installed and used.

I did not make out a test with lxde or e17.

It is only when I select a personalized desk that kdm and kde are installed, while I do not want them.
Comment 21 Georges Eckenschwiller 2012-02-21 18:18:39 CET
The problem is resolved by modifying the xguest package.
Thank you.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 22 Thierry Vignaud 2012-02-22 07:44:27 CET
Closing

Note You need to log in before you can comment on or make changes to this bug.