[pkg-fso-maint] install.sh: xserver-xorg-* dependencies and dynamic setting (was Re: install.sh: console-* and xserver-xorg-* packages)

Luca Capello luca at pca.it
Mon May 11 20:26:33 UTC 2009


user pkg-fso-maint at lists.alioth.debian.org
usertags + 515214 package-dependencies
usertags + 523960 package-dependencies
usertags + 448197 package-dependencies
usertags + 477913 package-dependencies
thanks

Hi there!

On Mon, 11 May 2009 22:09:50 +0200, Luca Capello wrote:
> Actually, we have two problems here and I will discuss them in separate
> mails following this one:
>
> 1) why console-data is now required?

To debug this, I re-started the installation up to the install.sh apt
stage (included), then manually installing the FSO packages.

First consideration: dynamic setting of xserver-xorg-* packages not to
be installed is now useless.  Joachim asked what the problem is:

  http://lists.alioth.debian.org/pipermail/pkg-fso-maint/2009-April/000997.html

This was (and it still is, read below) an apt/aptitude bug, already
spotted in previous install.sh versions as a comment:

  # fso-specific packages
  # With work around for some APT/aptitude bug (http://bugs.debian.org/435662)

I have now done more tests and everything is detailed in the BTS:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435662#45

Briefly, the situation:

- xserver-xorg now depends on "HAL, console-setup":
    http://bugs.debian.org/515214
    http://bugs.debian.org/523960

- HAL depends on "pm-utils"
    http://bugs.debian.org/448197
    http://bugs.debian.org/477913

- pm-utils depends on "kbd | console-tools"

- kbd depends on "console-common | console-setup"

- console-common depends on "console-data"

Since xserver-xorg depends on console-setup, apt-get should be able to
automatically understand that the kbd dependency is already satisfied.
However, this is not the case, the solution is simple and already
provided in the BTS:

  $ apt-get install xserver-xorg-video-fbdev console-data-

The following patch implements the above:

--8<---------------cut here---------------start------------->8---
diff --git a/install.sh b/install.sh
index 1fa9609..8346fc7 100755
--- a/install.sh
+++ b/install.sh
@@ -86,14 +86,11 @@ CDEBOOTSTRAP_EXTRA_PACKAGES=ifupdown,dropbear,udev,procps,netbase,vim-tiny,modul
 # This gets passed to cdebuildstrap. currently not used
 CDEBOOTSTRAP_EXCLUDE_PACKAGES=hello
 
-intern_unwanted_input="xserver-xorg-input-all- xserver-xorg-input-synaptics- xserver-xorg-input-wacom-"
-intern_unwanted_video="xserver-xorg-video-all- `chroot $INST_DIR apt-cache show xserver-xorg-video-all | grep ^Depends | cut -f2 -d:  | sed -e 's/$/,/'| tr ", " "-\n" | grep ^xserver-xorg-video | sort -u | egrep -v 'intel|fbdev' | tr "\n" " " | tr -d "|" `"
-
+# fso-specific packages
+# With work around for some APT/aptitude bug (http://bugs.debian.org/435662)
 FSO_PACKAGES="matchbox-window-manager zhone fso-frameworkd fso-gpsd openmoko-panel-plugin dbus-x11 trayer fso-utils mtd-utils \
 xserver-xorg-video-fbdev xserver-xorg-input-tslib xserver-xorg-core xserver-xorg xterm xinit xfonts-base x11-xserver-utils \
-$intern_unwanted_input  $intern_unwanted_video"
-
-#echo "unwanted video: $intern_unwanted_video"
+console-data-"
 
 # well-suited software for the FreeRunner
 PACKAGES_TASK_GAMES="mokomaze sgt-puzzles"
--8<---------------cut here---------------end--------------->8---

Now, I do not know the best workflow here.  I can simply apply the above
patch, but since this completely reverts:

  http://git.debian.org/?p=pkg-fso/files.git;a=commitdiff;h=2e1c99c3a0cd029f115de069e44b1238e06f4a9c

maybe it is better to `git revert` the above commit and then apply the
patch above?  I know this is mostly a philosophical question, but I
guess everyone already knows how much I tend to be a maniac...

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090511/be099e5e/attachment.pgp>


More information about the pkg-fso-maint mailing list