Re: NoHandles on different apps

Graydon (oak@uniserve.com)
Wed, 3 Sep 2003 23:15:33 -0400



--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Sep 03, 2003 at 08:45:29AM -0500, Sasha Vasko scripsit:
> Well, you don't need to do this long routine - just build and install
> afterstep-stable - that handles all the libraries as well.

The problem goes away; it builds, and it (mostly) works.

'make DESTIR=$RPM_BUILD_ROOT install' doesn't seem to install the
libAfterBase and libAfterImage libraries (the .so files); I have to do
that by 'hand' in the RPM.  (ugly spec file attached)

KDE apps opening new windows (save file dialogs, frex) are getting
thrown to new _desktops_ (of which I have four, despite having used
--with-desktops=1 in the configure step); it's very beta KDE, and other
things aren't doing this, so I'm assuming this is a KDE problem.

Still can't put the pager in the wharf without the wharf going desktop
width.  Still can't fold the wharf up into the *lower* left hand corner.
(I put the wharf into the upper left by default.)

Like the pager shade feature.

Thanks!

-- 
oak@uniserve.com | Uton we hycgan    hwaer we ham agen,
                 | ond thonne gedhencan    he we thider cumen.
                 |   -- The Seafarer, ll. 117-118.

--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="AfterStep.spec"

%define	name	AfterStep
%define	fver	2.00.beta1
%define	version	2.00
%define	release	1
%define	serial	1

Summary:	AfterStep Window Manager (NeXTalike)
Name:		%{name}
Version:	%{version}
Release:	%{release}
Serial:		%{serial}
Copyright:	GPL
Group:		User Interface/Desktops
URL:		http://www.afterstep.org
Vendor:		The AfterStep Team (see TEAM in docdir)
Source:		ftp://ftp.afterstep.org/devel/snapshots/%{name}-%{fver}.tar.bz2
Patch0:		makefile.patch
Distribution:	The AfterStep TEAM
Packager:	Graydon Saunders <graydon@epiphyte.net>

BuildRoot:	/tmp/%{name}-%{version}-root

%description
  AfterStep is a Window Manager for X which started by emulating the
  NEXTSTEP look and feel, but which has been significantly altered
  according to the requests of various users. Many adepts will tell you
  that NEXTSTEP is not only the most visually pleasant interface, but
  also one of the most functional and intuitive out there. AfterStep
  aims to incorporate the advantages of the NEXTSTEP interface, and add
  additional useful features.

  The developers of AfterStep have also worked very hard to ensure
  stability and a small program footprint. Without giving up too many
  features, AfterStep still works nicely in environments where memory is
  at a premium.

%prep
%setup -q -n %{name}-%{fver}
pushd .
cd libAfterImage
%patch0 -p1
popd

CFLAGS=$RPM_OPT_FLAGS \
./configure --prefix=/usr/X11R6 --datadir=/usr/share \
	--with-desktops=1 \
	--with-deskgeometry=2x3 \
	--disable-staticlibs --enable-shared-libs

%build
make

if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi

%install
[ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT

# makefile doesn't cope well with missing directories;
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/include
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man3
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1

make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/{sessreg,xpmroot}
#symlink into the build root is a no-no
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/MonitorWharf

# move the docs to the RH standard place
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/libAfterImage/html
mv $RPM_BUILD_ROOT/usr/share/libAfterImage/doc/html/ \
   $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/libAfterImage/html

# for some reason, the libAfterImage and libAfterBase libraries are not being
# installed by 'make install'
cp /usr/src/redhat/BUILD/%{name}-%{fver}/libAfterImage/*\.so* \
	$RPM_BUILD_ROOT/usr/X11R6/lib
cp /usr/src/redhat/BUILD/%{name}-%{fver}/libAfterBase/*\.so* \
	$RPM_BUILD_ROOT/usr/X11R6/lib

%clean
DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
[ -n "`echo $DESTDIR | sed -n 's:^/tmp/[^.].*$:OK:p'`" ] && rm -rf $DESTDIR ||
(echo "\$DESTDIR='$DESTDIR' not in '/tmp'?! Check your .spec..."; exit 1)

%post -p /sbin/ldconfig
# need that symlink back
[ -e /usr/X11R6/bin/Wharf ] && ln -s /usr/X11R6/bin/Wharf /usr/X11R6/bin/MonitorWharf

%postun -p /sbin/ldconfig
# whap the symlink if package removed
rm -f /usr/X11R6/bin/MonitorWharf


%files
%defattr(-,root,root)
%doc ChangeLog NEW README* TEAM UPGRADE doc/languages doc/licences doc/code TODO *.html
/usr/X11R6/bin/*
/usr/X11R6/lib/*
%dir %attr(755,root,root) /usr/X11R6/include/libAfterBase/
%dir %attr(755,root,root) /usr/X11R6/include/libAfterImage/
/usr/X11R6/include/libAfterBase/*
/usr/X11R6/include/libAfterImage/*
/usr/X11R6/man/*/*
%config /usr/share/afterstep
/usr/X11R6/bin/afterimage-libs
/usr/X11R6/lib/libAfter*
%dir %attr(755,root,root) /usr/X11R6/include/libAfterBase
/usr/X11R6/include/libAfterBase/*
%dir %attr(755,root,root) /usr/X11R6/include/libAfterImage
/usr/X11R6/include/libAfterImage/*
/usr/X11R6/man/man3/*
/usr/X11R6/man/man1/*


%pre
for i in /usr /usr/local /usr/X11R6 ; do
	if [ -d $i/share/afterstep_old ]; then
		rm -r $i/share/afterstep_old;
	fi
	# %config /usr/share/afterstep should take care of this.
	#if [ -d $i/share/afterstep ]; then
	#	cp -pr $i/share/afterstep $i/share/afterstep_old;
	#	exit;
	#fi
done

%changelog
* Wed Sep 03 2003 Graydon Saunders <graydon@epiphyte.net> 2.00.beta1-1
- beta 1 build attempt
- put libAfterBase and libAfterImage install commands in main RPM

* Sun Jul 20 2003 Graydon Saunders <graydon@epiphyte.net> 1.99.0-5
- wharf module swallowing bug fix

* Mon Jul 07 2003 Graydon Saunders <graydon@epiphyte.net> 1.99.0-4
- overlapping window crash fix

* Tue Jun 10 2003 Graydon Saunders <graydon@epiphyte.net> 1.99.0-3
- fix for non-latin characters in title bars crash
- include libAfterBase and libAfterImage X11R6 directories

* Tue Jun 10 2003 Graydon Saunders <graydon@epiphyte.net> 1.99.0-2
- second AfterStep 2 beta (1.99) build

--7AUc2qLy4jB3hD7Z--
_______________________________________________
The AfterStep Window Manager for X User's Mailing List
http://mail.afterstep.org/mailman/listinfo/as-users