Author Topic: [Moved] Unnecessary dependencies in LXDE  (Read 1398 times)

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
[Moved] Unnecessary dependencies in LXDE
« on: May 28, 2012, 03:52:52 PM »
Hi all,
Actually this is a question for those of you great guys who are involved in developing PCLOS (thank you! :) ). I am using LXDE, and due to some unknown problem (most probably, hardware problem) gnome-power-manager is not working on my installation (it is run at startup, still it does not even turn the monitor off!). So I decided to use xfce4-power-manager. I installed it and it is working perfectly (honestly, I believe it is a better choice since the next lightweight DE after LXDE is xfce).

However, I wanted to report unnecessary dependencies. When I installed xfce4-power-manager, about 350MB of packages have been installed. I can tell you that almost most of them are unnecessary. But specifically, I am sure that xfce4-power-manager has nothing to do with "xfce4-panel" (which is fetched and installed and most probably is the source of the other dependencies). Is it a bug or there is a purpose in that?

Thanks a lot guys.
« Last Edit: May 31, 2012, 04:39:42 PM by mmutoo »

Offline monsee

  • Full Member
  • ***
  • Posts: 110
Re: Unnecessary dependencies in LXDE
« Reply #1 on: May 28, 2012, 04:09:56 PM »
In my opinion, the "xfce4-power-manager" package is a part of XFCE4 desktop environment (it is not a LXDE desktop environment part).
Its installation require to install all the XFCE4 desktop environment also, I think.  :)

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #2 on: May 28, 2012, 04:15:15 PM »
@ monsee: thanks for the reply. Actually no! I know this because I used xfce4-power-manager a lot (usually I replace gnome-power-manager with it) and honestly, there are few LXDE distros I have not tried before ending in PCLOS. None of them require these dependencies. I remember a few (may be up to 10) packages as dependencies in other LXDE distros.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Unnecessary dependencies in LXDE
« Reply #3 on: May 28, 2012, 05:11:24 PM »
This is the list of requirements for xfce4-power-manager ---
Requires:   %{_lib}xfce4ui1_0
Requires:   pm-utils
Requires:   hibernate
Requires:   suspend-s2ram
Requires:       glibc >= 2.10.1
Requires:       %{_lib}stdc++6 >= 4.4.1     

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #4 on: May 28, 2012, 05:34:17 PM »
Thanks Neal! It would be great if synaptic also knows that :D

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Unnecessary dependencies in LXDE
« Reply #5 on: May 28, 2012, 07:06:05 PM »
Install those and see what happens. ::)     

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #6 on: May 28, 2012, 07:33:16 PM »
OK Neal, thanks :)
But the problem is I need xfce4-power-manager, and whenever I try to install it synaptic gives me that huge amount of dependencies. It seems those dependencies you posted are not enough for the greedy synaptic. Is there any way I can tell synaptic to ignore dependencies and only install the package?
« Last Edit: May 28, 2012, 07:55:28 PM by mmutoo »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Unnecessary dependencies in LXDE
« Reply #7 on: May 28, 2012, 11:00:05 PM »
mmutoo,

You can install an rpm with an ignore dependencies switch. But, you will still run into problems down the road in Synaptic package manager with missing dependencies. I think you got into a spot of trouble early on when you started adding packages without first installing apt-sources-list. The upgraded repository list is necessary because a few repositories dropped support for PCLinuxOS updates. As a result, you started with an outdated dependency chain.

How far are you into this LXDE install?

EDIT: It would probably take you less time and effort to reinstall than to troubleshoot. Especially if you don't know what to look for and what to do with what you find. If you were to reinstall, it would be a pretty quick procedure. But, you'd have to do things in a certain order.

1. Reinstall LXDE.
2. After first login to the new installation, open Synaptic. Click the Reload button. Do not install any extra packages, except for the apt-sources-list package. Only that one package. Click the Apply button to install that package.
3. No need to close and reopen Synaptic after installing the apt-sources-list package. No need to reboot. Just choose a repository from your new repository list.
4. Click the Reload button again.
5. Do not install any extra packages.
6. Click the Mark All Upgrades button.
7. Click Apply.
8. After installing updates, if you are told to log out or reboot, do so before doing anything else.
9. Open Synaptic, if it's not already open. Click the Reload button again.
10. Click the Mark All Upgrades button again.

At this point, you will probably have nothing left to update. Before installing any new packages, always do your updates first. This is a general rule. Now you're ready to install extra packages.

« Last Edit: May 28, 2012, 11:29:40 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #8 on: May 29, 2012, 12:11:30 AM »
Many many thanks djohnston! I will definitely take your advice and reinstall following the procedure. And thank you for all your patience and the effort you put. I will keep this thread updated after reinstalling.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Unnecessary dependencies in LXDE
« Reply #9 on: May 29, 2012, 03:52:58 AM »
OK Neal, thanks :)
But the problem is I need xfce4-power-manager, and whenever I try to install it synaptic gives me that huge amount of dependencies. It seems those dependencies you posted are not enough for the greedy synaptic. Is there any way I can tell synaptic to ignore dependencies and only install the package?
     
My point was that you should install the dependencies first. :-\ You are too focused on installing xfce4-power-manager and the apps it pulls in as dependencies. For the moment, that can be forgotten. Install the dependencies first and then install xfce4-power-manager.     

Or follow djohnston's advice. Probably the best solution for you.     

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #10 on: May 29, 2012, 07:06:33 PM »
Oh! sorry Neal, I left you a reply on the other thread about the updater installing texlive before I read your post here :) Thanks. I will reinstall to prevent the headache for now.

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #11 on: May 30, 2012, 07:12:13 AM »
OK guys, I did a fresh install yesterday. I did exactly as djohnston said. Now I have a fresh OS and the update notifier is normal. However, when I want to install the xfce4-power-manager, this is the list of packages that synaptic wants to install as dependencies:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
apt-get install xfce4-power-manager

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
   OpenSP (1.5.2-3pclos2011)
   ctags (5.8-1pclos2010)
   dblatex (0.2.9-1pclos2010)
   docbook-dtd44-xml (1.0-3pclos2010)
   docbook-style-dsssl (1.79-5pclos2010)
   docbook-style-xsl (1.75.2-1pclos2010)
   docbook-utils (0.6.14-7pclos2010)
   ed (1.5-1pclos2010)
   exo (0.7.0-1pclos2012)
   ghostscript-dvipdf (9.04-2pclos2011)
   gtk-doc (1.18-1pclos2011)
   help2man (1.38.1-1pclos2010)
   hibernate (2.0-1pclos2007)
   intltool (0.41.1-1pclos2011)
   jadetex (3.12-117pclos2007)
   libatk1.0-devel (2.0.0-2pclos2011)
   libcairo-devel (1.10.2-2pclos2011)
   libexo-0.7_1 (0.7.0-1pclos2012)
   libffi4-devel (4.5.2-4pclos2011)
   libfontconfig-devel (2.8.0-1pclos2010)
   libfreetype6-devel (2.4.3-2pclos2010)
   libgarcon0 (0.1.9-1pclos2012)
   libgdk_pixbuf2.0_0-devel (2.24.5-2pclos2011)
   libglib2.0_0-devel (2.31.16-2pclos2012)
   libgtk+2.0_0-devel (2.24.5-3pclos2011)
   libjpeg-progs (6b-44pclos2010)
   libnetpbm10 (10.34-4pclos2007)
   libopenjade0 (1.3.3-0.1pclos2010)
   libpango1.0-devel (1.28.4-2pclos2011)
   libpixman-devel (0.24.0-1pclos2011)
   libpng-devel (1.2.47-1pclos2012)
   libpthread-stubs (0.3-1pclos2010)
   libsource-highlight3 (3.1.3-1pclos2010)
   libx11-devel (1.4.3-1pclos2011)
   libxau-devel (1.0.6-1pclos2011)
   libxcb-devel (1.7-1pclos2011)
   libxcomposite-devel (0.4.3-1pclos2011)
   libxcursor-devel (1.1.12-1pclos2011)
   libxdamage-devel (1.1.3-1pclos2011)
   libxdmcp-devel (1.1.0-1pclos2011)
   libxext-devel (1.2.0-2pclos2011)
   libxfce4ui1_0 (4.8.1-1pclos2012)
   libxfce4util (4.8.2-1pclos2011)
   libxfce4util-devel (4.8.2-1pclos2011)
   libxfixes-devel (5.0-1pclos2011)
   libxft-devel (2.2.0-1pclos2011)
   libxi-devel (1.4.2-1pclos2011)
   libxinerama-devel (1.1.1-2pclos2011)
   libxml2-devel (2.7.8-1pclos2011)
   libxrandr2-devel (1.3.2-1pclos2011)
   libxrender-devel (0.9.6-1pclos2011)
   netpbm (10.34-4pclos2007)
   openjade (1.3.3-0.1pclos2010)
   pango-doc (1.28.4-2pclos2011)
   perl-SGMLSpm (1.03ii-10pclos2009)
   perl-Tie-Watch (1.2-10pclos2009)
   perl-Tk (804.028-10pclos2009)
   sam2p (0.44.14-2pclos2007)
   source-highlight (3.1.3-1pclos2010)
   suspend-s2ram (0.8-5pclos2010)
   tcsh (6.17-1pclos2010)
   tetex (3.0-19pclos2007)
   tetex-context (3.0-19pclos2007)
   tetex-dvips (3.0-19pclos2007)
   tetex-latex (3.0-19pclos2007)
   tmpwatch (2.10.1-1pclos2010)
   transfig (3.2.5a-1pclos2010)
   x11-proto-devel (7.6-4pclos2011)
   xfce4-dev-tools (4.9.0-1pclos2011)
   xfce4-panel (4.9.0-1pclos2012)
   xfce4-panel-devel (4.9.0-1pclos2012)
   xfconf (4.8.1-1pclos2012)
   xmltex (1.9-65pclos2007)
   xsltproc (1.1.26-2pclos2010)
The following NEW packages will be installed:
   OpenSP (1.5.2-3pclos2011)
   ctags (5.8-1pclos2010)
   dblatex (0.2.9-1pclos2010)
   docbook-dtd44-xml (1.0-3pclos2010)
   docbook-style-dsssl (1.79-5pclos2010)
   docbook-style-xsl (1.75.2-1pclos2010)
   docbook-utils (0.6.14-7pclos2010)
   ed (1.5-1pclos2010)
   exo (0.7.0-1pclos2012)
   ghostscript-dvipdf (9.04-2pclos2011)
   gtk-doc (1.18-1pclos2011)
   help2man (1.38.1-1pclos2010)
   hibernate (2.0-1pclos2007)
   intltool (0.41.1-1pclos2011)
   jadetex (3.12-117pclos2007)
   libatk1.0-devel (2.0.0-2pclos2011)
   libcairo-devel (1.10.2-2pclos2011)
   libexo-0.7_1 (0.7.0-1pclos2012)
   libffi4-devel (4.5.2-4pclos2011)
   libfontconfig-devel (2.8.0-1pclos2010)
   libfreetype6-devel (2.4.3-2pclos2010)
   libgarcon0 (0.1.9-1pclos2012)
   libgdk_pixbuf2.0_0-devel (2.24.5-2pclos2011)
   libglib2.0_0-devel (2.31.16-2pclos2012)
   libgtk+2.0_0-devel (2.24.5-3pclos2011)
   libjpeg-progs (6b-44pclos2010)
   libnetpbm10 (10.34-4pclos2007)
   libopenjade0 (1.3.3-0.1pclos2010)
   libpango1.0-devel (1.28.4-2pclos2011)
   libpixman-devel (0.24.0-1pclos2011)
   libpng-devel (1.2.47-1pclos2012)
   libpthread-stubs (0.3-1pclos2010)
   libsource-highlight3 (3.1.3-1pclos2010)
   libx11-devel (1.4.3-1pclos2011)
   libxau-devel (1.0.6-1pclos2011)
   libxcb-devel (1.7-1pclos2011)
   libxcomposite-devel (0.4.3-1pclos2011)
   libxcursor-devel (1.1.12-1pclos2011)
   libxdamage-devel (1.1.3-1pclos2011)
   libxdmcp-devel (1.1.0-1pclos2011)
   libxext-devel (1.2.0-2pclos2011)
   libxfce4ui1_0 (4.8.1-1pclos2012)
   libxfce4util (4.8.2-1pclos2011)
   libxfce4util-devel (4.8.2-1pclos2011)
   libxfixes-devel (5.0-1pclos2011)
   libxft-devel (2.2.0-1pclos2011)
   libxi-devel (1.4.2-1pclos2011)
   libxinerama-devel (1.1.1-2pclos2011)
   libxml2-devel (2.7.8-1pclos2011)
   libxrandr2-devel (1.3.2-1pclos2011)
   libxrender-devel (0.9.6-1pclos2011)
   netpbm (10.34-4pclos2007)
   openjade (1.3.3-0.1pclos2010)
   pango-doc (1.28.4-2pclos2011)
   perl-SGMLSpm (1.03ii-10pclos2009)
   perl-Tie-Watch (1.2-10pclos2009)
   perl-Tk (804.028-10pclos2009)
   sam2p (0.44.14-2pclos2007)
   source-highlight (3.1.3-1pclos2010)
   suspend-s2ram (0.8-5pclos2010)
   tcsh (6.17-1pclos2010)
   tetex (3.0-19pclos2007)
   tetex-context (3.0-19pclos2007)
   tetex-dvips (3.0-19pclos2007)
   tetex-latex (3.0-19pclos2007)
   tmpwatch (2.10.1-1pclos2010)
   transfig (3.2.5a-1pclos2010)
   x11-proto-devel (7.6-4pclos2011)
   xfce4-dev-tools (4.9.0-1pclos2011)
   xfce4-panel (4.9.0-1pclos2012)
   xfce4-panel-devel (4.9.0-1pclos2012)
   xfce4-power-manager (1.0.10-2pclos2012)
   xfconf (4.8.1-1pclos2012)
   xmltex (1.9-65pclos2007)
   xsltproc (1.1.26-2pclos2010)
0 upgraded, 75 newly installed, 0 removed and 0 not upgraded.
Need to get 97.0MB of archives.
After unpacking 341MB of additional disk space will be used.
Do you want to continue? [Y/n]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

It is OK, and I can ignore installing xfce4-power-manager for now (although gnome-power-manager is not working for me as I said before). But this is not normal and better taken care of at the developers' convenience. For example, "dblatex", "xmltex" and "jadetex" definitely have nothing to do with xfce4. Let alone the other packages like xfce4-panel. I am a beginner, but I would be happy to make PCLOS better even by testing it. So, if you guys think this is a bug I can make a bug report on the forum.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Unnecessary dependencies in LXDE
« Reply #12 on: May 30, 2012, 10:56:11 AM »
try this,
click on mark for your updates, then unmarked dblatex, xmltex and jadetex...
If it working, so is good  ;) . Is it not, bad day  ::)

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #13 on: May 30, 2012, 12:45:17 PM »
OK! Guess what! It's a bad day.

When I want to unmark jadetex, a bunch of other packages including xfce4-power-manager are asked for unmarking.

Offline mmutoo

  • Full Member
  • ***
  • Posts: 96
Re: Unnecessary dependencies in LXDE
« Reply #14 on: May 31, 2012, 04:22:44 PM »
OK guys, I am going to report this as a bug. hopefully it will be fixed. Thanks for the help. I know you are all heavily busy.