rpms/nethack-vultures/FC-4 nethack-vultures.spec,1.30,1.31

Karen Rei Pease (meme) fedora-extras-commits at redhat.com
Tue Oct 10 22:09:50 UTC 2006


Author: meme

Update of /cvs/extras/rpms/nethack-vultures/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26822/FC-4

Modified Files:
	nethack-vultures.spec 
Log Message:
Randomly occurring graphics startup bug that has been dogging this package
is patched up.

Symptoms: Sometimes, but not always, when people installed nethack-vultures,
either vultureseye or vulturesclaw, but never both, would complain about a
graphics mismatch.  Reproducing this was sporadic.

Problem: To save space, the package symlinks directories that are a
duplicate on both the slashem and nethack branches.  Graphics used to be a
duplicate, but isn't any more.  This was known and was accounted for in the
specfile build process.  What wasn't accounted for was the behavior of RPM. 
Instead of removing the old directories on upgrade, it tries to overwrite
files with a simple copy of sorts.  Whatever mechanism it uses follows
symlinks, so if there was an old version of nethack-vultures on their
system, the installation of the different copies of slashem and nethack
graphics would overwrite each other in a single directory.  If it was a new
install, or an install over a version that had been corrected, there no
longer was a symlink, and thus two graphics directories were created and
used.

Solution: A pre tag removes the old graphics directory, symlink or not.




Index: nethack-vultures.spec
===================================================================
RCS file: /cvs/extras/rpms/nethack-vultures/FC-4/nethack-vultures.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- nethack-vultures.spec	30 Aug 2006 04:46:54 -0000	1.30
+++ nethack-vultures.spec	10 Oct 2006 22:09:50 -0000	1.31
@@ -1,6 +1,6 @@
 Name:           nethack-vultures
 Version:        2.1.0
-Release:        6%{?dist}
+Release:        8%{?dist}
 Summary:        NetHack - Vulture's Eye and Vulture's Claw
 
 Group:          Amusements/Games
@@ -119,6 +119,8 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+rm -rf %{_prefix}/games/vulturesclaw/graphics
 
 %post
 [ $1 -eq 1 ] && \
@@ -171,6 +173,9 @@
 
 
 %changelog
+* Tue Oct 10 2006 Karen Pease <meme at daughtersoftiresias.org> - 2.1.0-8
+- Add in pre-tag to eliminate the old graphics directory symlink that was confusing rpm.
+
 * Tue Aug 29 2006 Karen Pease <meme at daughtersoftiresias.org> - 2.1.0-6
 - Attempting to stop graphics duplication.
 




More information about the scm-commits mailing list