rpms/gnu-smalltalk/F-8 gst-2.3.6-multilib.patch, NONE, 1.1 gnu-smalltalk.spec, 1.24, 1.25

Jochen Schmitt (s4504kr) fedora-extras-commits at redhat.com
Thu Oct 25 19:44:45 UTC 2007


Author: s4504kr

Update of /cvs/extras/rpms/gnu-smalltalk/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4279

Modified Files:
	gnu-smalltalk.spec 
Added Files:
	gst-2.3.6-multilib.patch 
Log Message:
Try to fix multilib issue with a upstream patch

gst-2.3.6-multilib.patch:

--- NEW FILE gst-2.3.6-multilib.patch ---
diff -up smalltalk-2.3.6/examples/Publish.st.org smalltalk-2.3.6/examples/Publish.st
--- smalltalk-2.3.6/examples/Publish.st.org	2007-09-06 09:30:17.000000000 +0200
+++ smalltalk-2.3.6/examples/Publish.st	2007-10-25 19:49:54.000000000 +0200
@@ -34,6 +34,17 @@ Namespace current: ClassPublisher!
 
 !String methodsFor: 'useful functionality'!
 
+caseSensitiveCompareTo: aCharacterArray
+     | c1 c2 |
+     1 to: (self size min: aCharacterArray size)
+         do:
+             [:i |
+	     c1 := (self at: i) value.
+	     c2 := (aCharacterArray at: i) value.
+	     c1 = c2 ifFalse: [^c1 - c2]].
+	 ^self size - aCharacterArray size
+ !
+ 
 linesDo: aBlock
     "Send 'aBlock' a substring of the receiver for each newline delimited
      line in the receiver"
@@ -648,7 +659,8 @@ emitCategory: category
 	    categoryMethods add: assoc key -> assoc value methodSourceString
 	]
     ].
-    categoryMethods := categoryMethods asSortedCollection.
+    categoryMethods := categoryMethods asSortedCollection: [ :a :b |
+        (a key caseSensitiveCompareTo: b key) <= 0 ].
     categories add: (category, kind) -> categoryMethods.
 
     self emitLink: category kind: kind
diff -up smalltalk-2.3.6/doc/Makefile.in.org smalltalk-2.3.6/doc/Makefile.in
--- smalltalk-2.3.6/doc/Makefile.in.org	2007-10-25 19:54:54.000000000 +0200
+++ smalltalk-2.3.6/doc/Makefile.in	2007-10-25 19:57:29.000000000 +0200
@@ -703,6 +703,7 @@ uninstall-man: uninstall-man1
 $(srcdir)/gst.1: $(top_srcdir)/libgst/lib.c $(top_srcdir)/configure.ac
 	$(HELP2MAN) --info-page gst \
 	  --name "the GNU Smalltalk virtual machine" $(top_builddir)/gst >$@
+	$(SED) -i '/^@..index/ s/:/_/g' $@ 
 
 $(srcdir)/blox.texi: $(top_srcdir)/blox-tk/stamp-classes
 	rm -f $(srcdir)/blox.texi
@@ -711,6 +712,7 @@ $(srcdir)/blox.texi: $(top_srcdir)/blox-
 	  $$gst -I $$gst_im -f ../scripts/GenLibDoc.st \
 	    BLOX BloxTK blox.texi Blox.st
 	test -f $(srcdir)/blox.texi && touch $(srcdir)/gst-libs.texi 
+	$(SED) -i '/^@..index/ s/:/_/g' $@ 
 
 $(srcdir)/tcp.texi: $(top_srcdir)/tcp/stamp-classes
 	rm -f $(srcdir)/tcp.texi
@@ -719,6 +721,8 @@ $(srcdir)/tcp.texi: $(top_srcdir)/tcp/st
 	  $$gst -I $$gst_im -f ../scripts/GenLibDoc.st \
 	    TCP TCP tcp.texi TCP.st
 	test -f $(srcdir)/tcp.texi && touch $(srcdir)/gst-libs.texi 
+	$(SED) -i '/^@..index/ s/:/_/g' $@ 
+
 
 $(srcdir)/i18n.texi: $(top_srcdir)/i18n/stamp-classes
 	rm -f $(srcdir)/i18n.texi
@@ -727,6 +731,7 @@ $(srcdir)/i18n.texi: $(top_srcdir)/i18n/
 	  $$gst -I $$gst_im -f ../scripts/GenLibDoc.st \
 	    I18N I18N i18n.texi Load.st Collation.st
 	test -f $(srcdir)/i18n.texi && touch $(srcdir)/gst-libs.texi 
+	$(SED) -i '/^@..index/ s/:/_/g' $@ 
 
 $(srcdir)/regex.texi: $(top_srcdir)/examples/regex.st
 	rm -f $(srcdir)/regex.texi
@@ -735,6 +740,7 @@ $(srcdir)/regex.texi: $(top_srcdir)/exam
 	  $$gst -I $$gst_im -f ../scripts/GenLibDoc.st \
 	    Regex Regex regex.texi
 	test -f $(srcdir)/regex.texi && touch $(srcdir)/gst-libs.texi 
+	$(SED) -i '/^@..index/ s/:/_/g' $@ 
 
 $(srcdir)/classes.texi: $(top_srcdir)/kernel/stamp-classes
 	rm -f $(srcdir)/classes.texi
@@ -743,18 +749,7 @@ $(srcdir)/classes.texi: $(top_srcdir)/ke
 	  $$gst -I $$gst_im -f ../scripts/GenBaseDoc.st \
 	  $(PUBLISHED_NAMESPACES)
 	test -f $(srcdir)/classes.texi && touch $(srcdir)/gst-base.texi
-
-# In TeX output, having colons in index entries looks pretty, but
-# this is impossible in info output!!!  So we hack by replacing
-# colons with underscores in the info file.
-.texi.info:
-	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
-	fixed=`pwd`/`echo $< | $(SED) 's/\.texi/-fixed&/' `; \
-	  cd $(srcdir) && \
-	  $(MAKEINFO) `echo $< | $(SED) 's,.*/,,'` -E - -o /dev/null | \
-	  $(SED) '/^@..index/ s/:/_/g' > $$fixed && \
-	  $(MAKEINFO) $$fixed > /dev/null 2>&1 && \
-	  rm -f $$fixed
+	$(SED) -i '/^@..index/ s/:/_/g' $@ 
 
 ####################################################
 ####################################################
diff -up smalltalk-2.3.6/doc/gst.texi.org smalltalk-2.3.6/doc/gst.texi
--- smalltalk-2.3.6/doc/gst.texi.org	2007-06-01 17:13:48.000000000 +0200
+++ smalltalk-2.3.6/doc/gst.texi	2007-10-25 19:49:54.000000000 +0200
@@ -1509,7 +1509,7 @@ The @code{DLD} class enhances the C call
 for unresolved functions in a series of program-specified libraries.  To
 add a library to the list, evaluate code like the following:
 @example
-     DLD addLibrary: '/usr/lib/libc'
+     DLD addLibrary: 'libc'
 @end example
 
 The extension (@file{.so}, @file{.sl}, @file{.a}, @file{.dll} depending


Index: gnu-smalltalk.spec
===================================================================
RCS file: /cvs/extras/rpms/gnu-smalltalk/F-8/gnu-smalltalk.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- gnu-smalltalk.spec	24 Oct 2007 14:23:29 -0000	1.24
+++ gnu-smalltalk.spec	25 Oct 2007 19:44:12 -0000	1.25
@@ -1,10 +1,11 @@
 Summary: GNU Smalltalk
 Name: gnu-smalltalk
 Version: 2.3.6
-Release: 3%{?dist}
+Release: 6%{?dist}
 Source: ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-%{version}.tar.gz
 Patch1: gst-2.3.6-am.patch
 Patch2: gst-2.3.6-pathfix.patch
+Patch3: gst-2.3.6-multilib.patch
 License: GPLv2
 Group: Development/Languages
 URL: http://www.gnu.org/software/smalltalk/smalltalk.html
@@ -26,8 +27,6 @@
 BuildRequires: zlib-devel
 BuildRequires: libsigsegv-devel
 
-Requires: %{name}-libs = %{version}-%{release}
-
 %description
 GNU Smalltalk is an implementation that closely follows the
 Smalltalk-80 language as described in the book `Smalltalk-80: the
@@ -51,16 +50,9 @@
 %description emacs
 This Package contains the Smalltalk mode for Emacs.
 
-%package libs
-Summary: Libraries for the GNU Smalltalk package
-Group: Development/Libraries
-%description libs
-This Package contains the Libraires for the GNU Smalltalk system.
-
 %package devel
 Summary: Development Stuff for the GNU Smalltalk package
 Group: Development/Libraries
-Requires: %{name}-libs = %{version}-%{release}
 #Requires: automake
 Requires: pkgconfig
 %description devel
@@ -73,7 +65,8 @@
 %prep
 %setup -q -n smalltalk-%{version}
 %patch1 -p1
-%patch2 -p1 -b .pfx
+%patch2 -p1 
+%patch3 -p1 -b .org
 
 %build
 # automake
@@ -86,8 +79,19 @@
 # _smp_mflags seems not to work
 make LIBTOOL="%{_bindir}/libtool" 
 
+cd doc
+
+for i in gst*; do
+  sed -e 's!%{_libdir}!/usr/lib(64)!g' \
+      -e 's!/usr/lib!/usr/lib(64)!g' \
+      -e 's!/usr/share/gnu-smalltalk/kernel!/usr/lib(64)/gnu-smalltalk/kernel!g' \
+      $i >$i.new
+  mv -f $i.new $i
+done
+
 %install
 rm -rf $RPM_BUILD_ROOT
+
 make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -c -p" install
 
 rm -rf $RPM_BUILD_ROOT/%{_libdir}/libgst*a*
@@ -126,6 +130,8 @@
 %{_bindir}/gst-reload
 %{_bindir}/gst-sunit
 
+%{_libdir}/libgst.so.*
+
 %{_infodir}/gst.info*
 %{_infodir}/gst-*.info*
 
@@ -134,9 +140,6 @@
 %doc AUTHORS COPYING COPYING.DOC COPYING.LIB ChangeLog 
 %doc NEWS README THANKS TODO
 
-%files libs
-%{_libdir}/libgst.so.*
-
 %{_libdir}/gnu-smalltalk/
 
 %files devel
@@ -155,6 +158,12 @@
 %{_datadir}/emacs/site-lisp/*
 
 %changelog
+* Thu Oct 25 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.3-4-6
+- Add upstream multilib patch
+
+* Wed Oct 24 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.3.6-4
+- Another try to fix the multilib issue
+
 * Mon Oct 22 2007 Jochen Schmitt <Jochen herr-schmitt de> 2.3.6-3
 - Create new subpackage to solve mulitlib issue (#341341)
 




More information about the fedora-extras-commits mailing list