Username: Password: Remember me
Search Criteria Advanced
Package Details

xmonad 0.8.1-1.2
http://xmonad.org/
A lightweight X11 tiled window manager written in Haskell

community :: x11
Maintainer: None
Votes: 268

License: custom:BSD3

Last Updated: Mon, 11 May 2009 12:01:40 +0000
First Submitted: Mon, 23 Apr 2007 11:28:10 +0000

Dependencies ghc gmp libxinerama

Sources
http://code.haskell.org/~sjanssen/xmonad-0.8.1.tar.gz
Comment by: ST.x on Sun, 26 Jul 2009 11:46:02 +0000
you have to recompile xmonad for the new ghc
Comment by: manwithgrenade on Sun, 26 Jul 2009 11:36:43 +0000
After upgrade ghc to version 6.10.4-1 "xmonad --recompile" gives this error:

Error detected while loading xmonad configuration file: /home/username/.xmonad/xmonad.hs
on the commandline:
Warning: -no-recomp is deprecated: Use -fforce-recomp instead
xmonad.hs:10:0:
Bad interface file: /usr/lib/ghc-6.10.3/site-local/xmonad-0.8.1/XMonad.hi
mismatched interface file versions (wanted "6104", got "6103")
Please check the file for errors.
Comment by: magus on Tue, 28 Apr 2009 17:02:47 +0000
Would it be possible to add the file /usr/share/applications/xmonad.desktop with contents along the lines of

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Xmonad
Exec=xmonad
NoDisplay=true
X-GNOME-WMName=Xmonad
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager

It would help when using xmonad together with Gnome 2.26.

(Adding this file and following the instructions for Jaunty on the xmonad wiki page allowed me to use Xmonad in Gnome, without the file I'd get no WM at all.)
Comment by: mikesd on Thu, 23 Apr 2009 23:48:49 +0000
Needs rebuilding with ghc 6.10.2.
Comment by: vegai on Wed, 20 Aug 2008 05:30:37 +0000
No such error happens here when building xmonad. Perhaps somehow abs failed to checkout the examples directory properly.
Comment by: Vintendo on Thu, 31 Jul 2008 08:22:09 +0000
I removed the last two lines of the build function in the packagebuild and it builds fine now

(It doesn't compile exits with this error

Installing: /home/vincent/abs/xmonad/pkg/usr/lib/ghc-6.8.2/site-local/xmonad-0.7
Installing: /home/vincent/abs/xmonad/pkg/usr/bin
install: cannot stat `/home/vincent/abs/xmonad/examples/README': Not a directory
install: cannot stat `/home/vincent/abs/xmonad/examples/*.hs': Not a directory)
Comment by: dolby on Thu, 31 Jan 2008 15:08:45 +0000
the man page is still explicitly installed in /usr not /usr/share. that should change at some point
Comment by: vegai on Mon, 28 Jan 2008 21:23:31 +0000
0.6 changed the type of function 'restart' to a simpler one, thus requiring changes in the config file. See vegai.hs in examples.

Also, note that your xmonad is actually recompiled to ~/.xmonad/ if you use the configuration system. So when you update, you may want to clean the generated files there.
Comment by: Vyazovoi on Sun, 27 Jan 2008 22:38:21 +0000
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xmonad

0.6
Comment by: abhidg on Sun, 20 Jan 2008 15:55:48 +0000
i think this also needs to be rebuilt for ghc 6.8.2
Comment by: vegai on Sat, 15 Dec 2007 16:00:35 +0000
Hmm, I don't know what you did wrong, but I can't reproduce it.

Perhaps you should just enable the community repo and pacman -Sy xmonad
Comment by: delaril on Sat, 15 Dec 2007 01:10:14 +0000
makepkg fails on this pkgbuild. It tries to access some files which aren't included in the source tarball.

makepkg output: http://rafb.net/p/EJiBuA69.txt
contents of xmonad-0.5.tar.gz (for comparison): http://rafb.net/p/FwG7gh52.txt

relevant lines in the pkgbuild:
install -d -m755 $startdir/pkg/usr/share/xmonad
install -m644 $startdir/examples/README $startdir/pkg/usr/share/xmonad/
install -m644 $startdir/examples/*.hs $startdir/pkg/usr/share/xmonad/
Comment by: vogt on Tue, 11 Dec 2007 00:53:50 +0000
I guess that those dependencies are optional in the sense that the stuff works if and only if you use the default config, but who doesn't change anything?

But then, that approach makes install script uneasy. I mean, it's a bit disconcerting to see ghc-pkg fail (be missing). And who likes an install message:
>> if you care to configure xmonad install
>> ghc,haskell-x11 and then run /usr/share/xmonad/register.sh as root

I don't know, either approach works, but not being able to configure without optional depends, but to force so much manual interaction for such rare cases...
Comment by: vegai on Mon, 10 Dec 2007 16:47:33 +0000
bender02: Actually, it only build-depends on haskell-x11. Ghc statically links the Haskell parts.

Hmm, on the other hand, now that there's dynamic configuration, haskell-x11 might be needed runtime as well.

I'll investigate and add it if that is so.
Comment by: vegai on Mon, 10 Dec 2007 16:32:00 +0000
Since xmonad-0.5 has dynamic configuration, it suddendly started to make sense to make a binary package.

So I did :)

Thanks to shild for general awesomeness.
Comment by: bender02 on Mon, 10 Dec 2007 15:44:21 +0000
Doesnt this depend on haskell-x11?
Comment by: dolby on Tue, 04 Dec 2007 20:54:32 +0000
Abstracity said: Remove dmenu from the depends. The Arch Way does not allow for _optional_ dependencies. Considering that you have ignored the past two comments to remove it, read the Arch Packaging Standards documentation before submitting any more packages, "Any optional dependencies that aren't needed to run the package or have it generally function shouldn't be included, but a warning message inside the .install file should echo something like: 'To enable SMB support, download the Samba package.'"

The above are not true. I bet u havent checked the packages in the official repos to say that cause most/many have uneeded dependencies and built in a way the developer felt like building the package. The "generally function" mentioned in the Arch Packaging Standards gives them that right.
Its in the convinience of the maintainer of the package to treat the package AS HE WISHES.
if users dont like it they can write their own PKGBUILD upload it to AUR with another name and users who feel the same start using that one instead. Its as simple as that..
Comment by: Abstracity on Mon, 03 Dec 2007 16:52:25 +0000
I agree. Remove dmenu from the depends. The Arch Way does not allow for _optional_ dependencies. Considering that you have ignored the past two comments to remove it, read the Arch Packaging Standards documentation before submitting any more packages, "Any optional dependencies that aren't needed to run the package or have it generally function shouldn't be included, but a warning message inside the .install file should echo something like: 'To enable SMB support, download the Samba package.'"
Comment by: harlekin on Fri, 16 Nov 2007 12:47:32 +0000
Why does it still depend on dmenu? That is bogus.
Comment by: bender02 on Thu, 15 Nov 2007 19:09:33 +0000
Well, it seems the error is caused by the recent ghc reorganization/upgrade. Here's a fixed PKGBUILD+diff: http://elbrus.strangled.net/bks/xmonad.tar.gz
Comment by: litb on Thu, 15 Nov 2007 13:43:33 +0000
hi! nice package.
though, it says:
XMonad.hs:42:17:
Could not find module `Data.Set':
it is a member of package containers-0.1.0.0, which is hidden
==> ERROR: Build Failed. Aborting...

here :( what do i miss?
Comment by: litb on Thu, 15 Nov 2007 13:42:41 +0000
if [ $answer = "y" -o $answer = "yes" ];
should be
if [ "$answer" = "y" -o "$answer" = "yes" ];
Comment by: StefanHusmann on Wed, 07 Nov 2007 19:39:38 +0000
Hello,
how can I met the dependency for haskell-x11>=1.3.0?
There is no PKGBUILD in AUR for that version-number.

I Tried to make one myself, but got a lot of errors.
Comment by: shilder on Sun, 04 Nov 2007 14:15:12 +0000
Updated to 0.4.1
Comment by: gour on Thu, 18 Oct 2007 14:27:18 +0000
Hi!

Here is the update for xmonad-0.4 with the installation of man page, tested on x86_64.


# Contributor: shild <shildv@gmail.com>
pkgname=xmonad
pkgver=0.4
pkgrel=1
pkgdesc="A lightweight X11 tiled window manager written in Haskell"
arch=(i686 x86_64)
url="http://xmonad.org/"
license=('custom:BSD3')
depends=('haskell-x11>=1.2.1' 'haskell-x11-extras>=0.4' 'haskell-mtl' 'gmp' 'libxext' 'dmenu')
makedepends=('ghc')
provides=()
conflicts=()
replaces=()
backup=()
install=
source=(http://hackage.haskell.org/packages/archive/xmonad/$pkgver/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('5d24c556f7c8f04954721b391fd79a13')

build() {
cd $startdir/src/$pkgname-$pkgver

runhaskell Setup.lhs configure --ghc --prefix=/usr

# configuration handling stuff
if [ -f ../../Config.hs ]; then
msg "Custom configuration detected"
msg2 "copying config.h to build directory"
cp ../../Config.hs Config.hs
fi

# Maybe move this to function ?
msg "Do you want to change configuration before compilation ? [y/N] "
read answer
answer=$(echo $answer | tr [:upper:] [:lower:])

if [ $answer = "y" -o $answer = "yes" ]; then
# maybe user prefer something other than vim ?
if [ x"$EDITOR" != x"" ]; then
$EDITOR Config.hs
else
vi Config.hs
fi

# save modified config for future builds
cp -f Config.hs ../../Config.hs
fi

runhaskell Setup.lhs build
runhaskell Setup.lhs copy --destdir=$startdir/pkg
runhaskell util/GenerateManpage.hs

install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/BSD3
install -D -m644 man/xmonad.1 $startdir/pkg/usr/man/man1/xmonad.1
}



Enjoy!

Sincerely,
Gour
Comment by: dolby on Sun, 14 Oct 2007 16:32:57 +0000
can u install the manpage too plz? thx
Comment by: shilder on Sun, 07 Oct 2007 11:28:51 +0000
Updated for xmonad 0.3
Comment by: harlekin on Sun, 09 Sep 2007 09:52:13 +0000
xmonad does not depend on dmenu.

Nice work, though. I think you can use the PKGBUILD for 0.3 as well.
Comment by: shilder on Thu, 31 May 2007 04:11:57 +0000
Updated
Comment by: shilder on Mon, 23 Apr 2007 13:23:32 +0000
Fixed license field according to arch packaging standards
Comment by: shilder on Mon, 23 Apr 2007 11:28:10 +0000
Configure it by editing Config.hs
(automated in PKGBUILD :)

v1.6.0