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
you have to recompile xmonad for the new ghc
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.
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.)
Needs rebuilding with ghc 6.10.2.
No such error happens here when building xmonad. Perhaps somehow abs failed to checkout the examples directory properly.
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)
the man page is still explicitly installed in /usr not /usr/share. that should change at some point
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.
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xmonad
0.6
i think this also needs to be rebuilt for ghc 6.8.2
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
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/
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...
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.
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.
Doesnt this depend on haskell-x11?
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..
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.'"
Why does it still depend on dmenu? That is bogus.
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
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?
if [ $answer = "y" -o $answer = "yes" ];
should be
if [ "$answer" = "y" -o "$answer" = "yes" ];
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.
Updated to 0.4.1
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
can u install the manpage too plz? thx
Updated for xmonad 0.3
xmonad does not depend on dmenu.
Nice work, though. I think you can use the PKGBUILD for 0.3 as well.
Updated
Fixed license field according to arch packaging standards
Configure it by editing Config.hs
(automated in PKGBUILD :)
v1.6.0