refined as below. This "one-shot install" runs without any errors. I
wouldn't expect this to necessarily continue to work, as feisty is
"unstable". (A little hazy on what that means)

The troubles are indeed all connected to gtk.

[EMAIL PROTECTED]:~/shellenv/installs/haskell-installs>cat
apt-install-as-many-haskell-libs-as-possible.sh
#!/bin/bash
apt-cache search libghc6 | ghc -e '
 -- do not install any of the following
 let exclude_strings = ["ghc6-hopengl",
                        "libghc6-c2hs-dev",
                        "libghc6-gtk-dev",
                        "gtk2hs-doc",
                        "libghc6-gtkglext-dev",
                        "libghc6-soegtk-dev",
                        "libghc6-mozembed-dev",
                        "libghc6-sourceview-dev",
                        "libghc6-glade-dev"
                       ]
     matches_any x xs = any (x==) xs
     matches_no_exclude_strings x = not $ matches_any x exclude_strings
     column1 l = head $ words l
 in
   interact $
     unlines
       . filter matches_no_exclude_strings
       . map column1
     . lines
' \
| xargs apt-get -y install -o APT::Cache-Limit=25165824

# xargs --max-lines=1 can be helpful for debugging if anything goes
wrong in the above.
[EMAIL PROTECTED]:~/shellenv/installs/haskell-installs>


2007/4/6, Thomas Hartman <[EMAIL PROTECTED]>:
...  I will
refine it so it completes without errors, time allowing.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to