Hello community,
here is the log from the commit of package emacs for openSUSE:Factory
checked in at Wed Oct 6 23:37:33 CEST 2010.
--------
--- emacs/emacs.changes 2010-09-07 15:09:55.000000000 +0200
+++ /mounts/work_src_done/STABLE/emacs/emacs.changes 2010-10-06 12:02:09.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Oct 6 11:59:06 CEST 2010 - werner@suse.de
+
+- Fix reStructuredText tmp file problem (bnc#642787)
+
+-------------------------------------------------------------------
@@ -4,0 +10,5 @@
+
+-------------------------------------------------------------------
+Thu Aug 12 17:40:53 CEST 2010 - werner@suse.de
+
+- Avoid trouble with spell see bug bnc#628268
calling whatdependson for head-i586
New:
----
emacs-23.1-bnc628268.patch
emacs-23.1-rst.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ emacs.spec ++++++
--- /var/tmp/diff_new_pack.pbuYRs/_old 2010-10-06 23:36:17.000000000 +0200
+++ /var/tmp/diff_new_pack.pbuYRs/_new 2010-10-06 23:36:17.000000000 +0200
@@ -30,7 +30,7 @@
License: GPLv2+
Group: Productivity/Editors/Emacs
Version: 23.1
-Release: 21
+Release: 22
Obsoletes: ge_exec ge_site emac_nox emacmisc emacsbin emacsger emacs-url Mule-UCS emacs-calc erc
Requires: emacs-info = %{version}
Requires: emacs_program = %{version}-%{release}
@@ -66,6 +66,8 @@
Patch19: emacs-23.1-fix_cpp.patch
Patch20: emacs-23.1-gcc45.dif
Patch21: emacs-23.1-png_sig_cmp.patch
+Patch22: emacs-23.1-bnc628268.patch
+Patch23: emacs-23.1-rst.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global bug_345669 0
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
@@ -260,6 +262,8 @@
fi
%patch20 -p0 -b .gcc45
%patch21
+%patch22
+%patch23
%build
CC=gcc-4.3
++++++ emacs-23.1-bnc628268.patch ++++++
--- lisp/loaddefs.el
+++ lisp/loaddefs.el 2010-08-12 15:38:16.235126810 +0000
@@ -25974,7 +25974,7 @@ as its \"correct\" spelling; then the qu
\(fn)" t nil)
-(make-obsolete 'spell-buffer 'ispell-buffer "23.1")
+(define-obsolete-function-alias 'spell-buffer 'ispell-buffer "23.1")
(autoload 'spell-word "spell" "\
Check spelling of word at or before point.
@@ -25983,7 +25983,7 @@ and `query-replace' the entire buffer to
\(fn)" t nil)
-(make-obsolete 'spell-word 'ispell-word "23.1")
+(define-obsolete-function-alias 'spell-word 'ispell-word "23.1")
(autoload 'spell-region "spell" "\
Like `spell-buffer' but applies only to region.
@@ -25993,7 +25993,7 @@ for example, \"word\".
\(fn START END &optional DESCRIPTION)" t nil)
-(make-obsolete 'spell-region 'ispell-region "23.1")
+(define-obsolete-function-alias 'spell-region 'ispell-region "23.1")
(autoload 'spell-string "spell" "\
Check spelling of string supplied as argument.
--- lisp/textmodes/spell.el
+++ lisp/textmodes/spell.el 2010-08-12 15:36:22.119126692 +0000
@@ -63,7 +63,7 @@ as its \"correct\" spelling; then the qu
(with-no-warnings
(spell-region (point-min) (point-max) "buffer")))
;;;###autoload
-(make-obsolete 'spell-buffer 'ispell-buffer "23.1")
+(define-obsolete-function-alias 'spell-buffer 'ispell-buffer "23.1")
;;;###autoload
(defun spell-word ()
@@ -82,7 +82,7 @@ and `query-replace' the entire buffer to
(with-no-warnings
(spell-region beg end (buffer-substring beg end)))))
;;;###autoload
-(make-obsolete 'spell-word 'ispell-word "23.1")
+(define-obsolete-function-alias 'spell-word 'ispell-word "23.1")
;;;###autoload
(defun spell-region (start end &optional description)
@@ -145,7 +145,7 @@ for example, \"word\"."
(query-replace-regexp (concat "\\b" (regexp-quote word) "\\b")
newword)))))))
;;;###autoload
-(make-obsolete 'spell-region 'ispell-region "23.1")
+(define-obsolete-function-alias 'spell-region 'ispell-region "23.1")
;;;###autoload
(defun spell-string (string)
++++++ emacs-23.1-rst.patch ++++++
Description: Patch to fix temporary file vulnerability
My approach is based on the premise that the make-temp-file function
provided from Emacs 22 onwards is safe. So, I backport the method to
the rst.el file, and bind it to the symbol rst--make-temp-file as
follows:
- If the Emacs version is less than 22, use this custom version. This
works on Emacs 21, I tested it.
- If the Emacs version is 22 or more, bind rst--make-temp-file to the
make-temp-fil provided in the Emacs Lisp libraries.
I don't see a solution for removing the temporary files, though.
I am no expert on security or Emacs Lisp, but I hope this patch
provides a start.
Author: Kumar Appaiah