really fix xmonad-start to set binary hardware-platform correctly, refactoring!

This commit is contained in:
Jens Petersen 2012-05-31 13:59:57 +09:00
parent bc488c953b
commit 6b4c0cfcae
2 changed files with 5 additions and 2 deletions

View File

@ -20,7 +20,7 @@ if [ ! -d $XMONAD_DIR ]; then
else
XMONAD_CUSTOM=$XMONAD_DIR/xmonad-$(uname -i)-linux
if [ -r $XMONAD_DIR/xmonad.hs -a -x $XMONAD_CUSTOM ]; then
if ldd $XMONAD_DIR/xmonad-$(arch)-linux | grep -q "not found"; then
if ldd $XMONAD_CUSTOM | grep -q "not found"; then
xmonad --recompile
fi
fi

View File

@ -18,7 +18,7 @@ on several screens.
Name: %{pkg_name}
Version: 0.10
Release: 10%{?dist}
Release: 11%{?dist}
Summary: A tiling window manager
Group: User Interface/X
@ -176,6 +176,9 @@ rm %{buildroot}%{_docdir}/%{name}-%{version}/LICENSE
%changelog
* Thu May 31 2012 Jens Petersen <petersen@redhat.com> - 0.10-11
- really fix xmonad-start to use hardware-platform correctly
* Tue May 29 2012 Jens Petersen <petersen@redhat.com> - 0.10-10
- fix user binary ldd check on i686/i386 using "uname -i" not "arch",
and then recompile directly instead of just touching xmonad.hs first