emacs.git
2 years agoemacs-common: add breaks elpa-cider (<< 0.19.0+dfsg-4~)
Rob Browning [Sat, 13 May 2023 19:26:03 +0000 (14:26 -0500)]
emacs-common: add breaks elpa-cider (<< 0.19.0+dfsg-4~)

Thanks to Andreas Beckmann for reporting the problem and providing and
testing the fix.

Closes: 1035781
2 years agoemacs-common: add breaks/replaces emacs-bin-common (<< 1:28)
Rob Browning [Sat, 13 May 2023 19:26:03 +0000 (14:26 -0500)]
emacs-common: add breaks/replaces emacs-bin-common (<< 1:28)

...since the emacs.service file moved from emacs-bin-common to
emacs-common.

Thanks to Helmut Grohne for reporting the problem and Andreas Beckmann
for providing and testing the fix.

Closes: 1034941
2 years agoUpdate debian/changelog for UNRELEASED 28.2+1-14 development
Rob Browning [Wed, 10 May 2023 01:18:57 +0000 (20:18 -0500)]
Update debian/changelog for UNRELEASED 28.2+1-14 development

2 years agoUpdate debian/changelog for 28.2+1-14 release
Rob Browning [Sun, 2 Apr 2023 03:40:12 +0000 (22:40 -0500)]
Update debian/changelog for 28.2+1-14 release

2 years agoFix Org Mode command injection vulnerability CVE-2023-28617
Rob Browning [Fri, 31 Mar 2023 17:28:33 +0000 (12:28 -0500)]
Fix Org Mode command injection vulnerability CVE-2023-28617

Add 0027-Org-Mode-vulnerability-CVE-2023-28617-is-fixed-1-2.patch and
0028-Org-Mode-vulnerability-CVE-2023-28617-is-fixed-2-2.patch to
address the issue.

Closes: 1033342
2 years agoOrg Mode vulnerability CVE-2023-28617 is fixed (2/2)
Xi Lu [Sat, 18 Feb 2023 10:03:28 +0000 (18:03 +0800)]
Org Mode vulnerability CVE-2023-28617 is fixed (2/2)

https://security-tracker.debian.org/tracker/CVE-2023-28617

This upstream patch (2/2) has been incorporated to fix the problem:

Org Mode command injection vulnerability has been fixed (CVE-2023-28617)

  * lisp/ob-latex.el (org-babel-execute:latex): Fix command injection vulnerability

Link: https://orgmode.org/list/tencent_5C4D5D0DEFDDBBFC66F855703927E60C7706@qq.com
  TINYCHANGE

Origin: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=8f8ec2ccf3f5ef8f38d68ec84a7e4739c45db485
Bug-Debian: https://bugs.debian.org/1033342

2 years agoOrg Mode vulnerability CVE-2023-28617 is fixed (1/2)
Xi Lu [Sat, 11 Mar 2023 10:53:37 +0000 (18:53 +0800)]
Org Mode vulnerability CVE-2023-28617 is fixed (1/2)

https://security-tracker.debian.org/tracker/CVE-2023-28617

This upstream patch (1/2) has been incorporated to fix the problem:

  * lisp/ob-latex.el: Fix command injection vulnerability

  (org-babel-execute:latex):
  Replaced the `(shell-command "mv BAR NEWBAR")' with `rename-file'.

  TINYCHANGE

Origin: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a8006ea580ed74f27f974d60b598143b04ad1741
Bug-Debian: https://bugs.debian.org/1033342

2 years agoFix gnus nnml crash on some invalid headers
Rob Browning [Sun, 26 Mar 2023 17:21:08 +0000 (12:21 -0500)]
Fix gnus nnml crash on some invalid headers

Add 0026-Gnus-nnml-should-avoid-crashing-on-some-invalid-head.patch to
address the issue.

Closes: 1033397
2 years agoGnus nnml should avoid crashing on some invalid headers
Eli Zaretskii [Mon, 19 Dec 2022 17:01:04 +0000 (19:01 +0200)]
Gnus nnml should avoid crashing on some invalid headers

This upstream patch has been incorporated to fix the problem:

  Fix storing email into nnmail by Gnus

  * lisp/gnus/nnml.el (nnml--encode-headers): Wrap
  'rfc2047-encode-string' calls with 'ignore-errors', to avoid
  disrupting email workflows due to possibly-invalid headers.
  Reported by Florian Weimer <fweimer@redhat.com>.

Origin: upstream, commit: 23f7c9c2a92e4619b7c4d2286d4249f812cd695d
Bug-Debian: https://bugs.debian.org/1033397
Forwarded: not-needed

2 years agoUpdate debian/changelog for UNRELEASED 28.2+1-14 development
Rob Browning [Sat, 25 Mar 2023 18:37:59 +0000 (13:37 -0500)]
Update debian/changelog for UNRELEASED 28.2+1-14 development

2 years agoFix CVE number in most recent changelog entry
Sean Whitton [Tue, 14 Mar 2023 22:12:53 +0000 (15:12 -0700)]
Fix CVE number in most recent changelog entry

2 years agoUpdate debian/changelog for 28.2+1-13 release
Sean Whitton [Tue, 14 Mar 2023 20:30:47 +0000 (13:30 -0700)]
Update debian/changelog for 28.2+1-13 release

2 years agoCherry-pick upstream fixes for command injection vulnerabilities
Sean Whitton [Tue, 14 Mar 2023 20:28:48 +0000 (13:28 -0700)]
Cherry-pick upstream fixes for command injection vulnerabilities

CVE-2023-27984, CVE-2023-27986

Closes: #1032538
2 years agoFix code injection vulnerability (CVE-2023-27986)
Ulrich Müller [Tue, 7 Mar 2023 17:25:37 +0000 (18:25 +0100)]
Fix code injection vulnerability (CVE-2023-27986)

This upstream patch has been incorporated to fix the problem:

  Fix Elisp code injection vulnerability in emacsclient-mail.desktop

  A crafted mailto URI could contain unescaped double-quote
  characters, allowing injection of Elisp code.  Therefore, any
  '\' and '"' characters are replaced by '\\' and '\"', using Bash
  pattern substitution (which is not available in the POSIX shell).

  We want to pass literal 'u=${1//\\/\\\\}; u=${u//\"/\\\"};' in the
  bash -c command, but in the desktop entry '"', '$', and '\' must
  be escaped as '\\"', '\\$', and '\\\\', respectively (backslashes
  are expanded twice, see the Desktop Entry Specification).

  Reported by Gabriel Corona <gabriel.corona@free.fr>.

  * etc/emacsclient-mail.desktop (Exec): Escape backslash and
  double-quote characters.

Origin: upstream, commit 3c1693d08b0a71d40a77e7b40c0ebc42dca2d2cc
Bug-Debian: https://bugs.debian.org/1032538
Forwarded: not-needed

2 years agoFix quoted argument in emacsclient-mail.desktop (CVE-2023-27985)
Ulrich Müller [Mon, 19 Dec 2022 15:51:20 +0000 (16:51 +0100)]
Fix quoted argument in emacsclient-mail.desktop (CVE-2023-27985)

This upstream patch has been incorporated to fix the problem:

  Fix quoted argument in emacsclient-mail.desktop Exec key

  Apparently the emacsclient-mail.desktop file doesn't conform to the
  Desktop Entry Specification at
  https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
  which says about the Exec key:

  | Field codes must not be used inside a quoted argument, the result of
  | field code expansion inside a quoted argument is undefined.

  However, the %u field code is used inside a quoted argument of the
  Exec key in both the [Desktop Entry] and [Desktop Action new-window]
  sections.
  * etc/emacsclient-mail.desktop (Exec): The Desktop Entry
  Specification does not allow field codes like %u inside a quoted
  argument. Work around it by passing %u as first parameter ($1)
  to the shell wrapper.
  * etc/emacsclient.desktop (Exec): Use `sh` rather than `placeholder`
  as the command name of the shell wrapper.  (Bug#60204)

Origin: upstream, commit d32091199ae5de590a83f1542a01d75fba000467
Bug: https://debbugs.gnu.org/60204
Bug-Debian: https://bugs.debian.org/1032538
Forwarded: not-needed

2 years agoAdjust debian/changelog for UNRELEASED 28.2+1-13 development
Sean Whitton [Tue, 14 Mar 2023 20:20:08 +0000 (13:20 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-13 development

2 years agoUpdate debian/changelog for 28.2+1-12 release
Sean Whitton [Thu, 2 Mar 2023 19:21:37 +0000 (12:21 -0700)]
Update debian/changelog for 28.2+1-12 release

2 years agoFix memory leak in etags.c introduced by recent security fix
Sean Whitton [Thu, 2 Mar 2023 17:27:38 +0000 (10:27 -0700)]
Fix memory leak in etags.c introduced by recent security fix

Thanks to Adrian Bunk for identifying the issue.

2 years agoFix memory leak in etags.c
Eli Zaretskii [Sun, 26 Feb 2023 18:03:20 +0000 (20:03 +0200)]
Fix memory leak in etags.c

This upstream patch has been incorporated to fix the problem:

  * lib-src/etags.c (process_file_name): Free malloc'ed vars (bug#61819).

Origin: upstream, commit 0fde314f6f6e6664cddab1b2f0fe20629cd39d14
Bug: https://debbugs.gnu.org/61819
Bug-Debian: https://bugs.debian.org/1031888
Forwarded: not-needed

2 years agoAdjust debian/changelog for UNRELEASED 28.2+1-12 development
Sean Whitton [Thu, 2 Mar 2023 17:23:25 +0000 (10:23 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-12 development

2 years agoUpdate debian/changelog for 28.2+1-11 release
Sean Whitton [Wed, 22 Feb 2023 18:02:13 +0000 (11:02 -0700)]
Update debian/changelog for 28.2+1-11 release

2 years agoCherry-pick upstream fixes for command injection vulnerabilities
Sean Whitton [Wed, 22 Feb 2023 17:59:29 +0000 (10:59 -0700)]
Cherry-pick upstream fixes for command injection vulnerabilities

CVE-2022-48337, CVE-2022-48338, CVE-2022-48339

Closes: #1031730
2 years agoFix etags local command injection vulnerability (CVE-2022-48337)
lu4nx [Tue, 6 Dec 2022 07:42:40 +0000 (15:42 +0800)]
Fix etags local command injection vulnerability (CVE-2022-48337)

This upstream patch has been incorporated to fix the problem:

  Fix etags local command injection vulnerability

  * lib-src/etags.c: (escape_shell_arg_string): New function.
  (process_file_name): Use it to quote file names passed to the
  shell.  (Bug#59817)

Origin: upstream, commit e339926272a598bd9ee7e02989c1662b89e64cf0
Bug: https://debbugs.gnu.org/59817
Bug-Debian: https://bugs.debian.org/1031730
Forwarded: not-needed

2 years agoFix ruby-mode.el command injection vulnerability (CVE-2022-48338)
Xi Lu [Fri, 23 Dec 2022 04:52:48 +0000 (12:52 +0800)]
Fix ruby-mode.el command injection vulnerability (CVE-2022-48338)

This upstream patch has been incorporated to fix the problem:

  Fix ruby-mode.el local command injection vulnerability (bug#60268)

  * lisp/progmodes/ruby-mode.el
  (ruby-find-library-file): Fix local command injection vulnerability.

Origin: upstream, commit 22fb5ff5126dc8bb01edaa0252829d853afb284f
Bug: https://debbugs.gnu.org/60268
Bug-Debian: https://bugs.debian.org/1031730
Forwarded: not-needed

2 years agoFix htmlfontify.el command injection vulnerability (CVE-2022-48339)
Xi Lu [Sat, 24 Dec 2022 08:28:54 +0000 (16:28 +0800)]
Fix htmlfontify.el command injection vulnerability (CVE-2022-48339)

This upstream patch has been incorporated to fix the problem:

  Fix htmlfontify.el command injection vulnerability.

  * lisp/htmlfontify.el (hfy-text-p): Fix command injection
  vulnerability.  (Bug#60295)

Origin: upstream, commit 807d2d5b3a7cd1d0e3f7dd24de22770f54f5ae16
Bug: https://debbugs.gnu.org/60295
Bug-Debian: https://bugs.debian.org/1031730
Forwarded: not-needed

2 years agoAdjust debian/changelog for UNRELEASED 28.2+1-11 development
Sean Whitton [Wed, 22 Feb 2023 17:44:26 +0000 (10:44 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-11 development

2 years agoUpdate debian/changelog for 28.2+1-10 release
Sean Whitton [Wed, 18 Jan 2023 00:33:03 +0000 (17:33 -0700)]
Update debian/changelog for 28.2+1-10 release

2 years agoFix copyright tests for 2023 onwards
Sean Whitton [Wed, 18 Jan 2023 00:29:36 +0000 (17:29 -0700)]
Fix copyright tests for 2023 onwards

Thanks to Mattias Engdegård for the fix, and Vincent Lefevre for
reporting the bug and posting the patch to the Debian BTS.

Closes: #1028607
2 years agoFix copyright tests for 2023 onwards
Mattias Engdegård [Sun, 1 Jan 2023 12:18:50 +0000 (13:18 +0100)]
Fix copyright tests for 2023 onwards

This upstream patch has been incorporated to fix the problem:

  ; * test/lisp/emacs-lisp/copyright-tests.el: Fix and future-safe.

Origin: upstream, commit: da77d70deeb2798693ec4f28a291befeb8e43989
Bug-Debian: https://bugs.debian.org/1028607
Forwarded: not-needed

2 years agoAdjust debian/changelog for UNRELEASED 28.2+1-10 development
Sean Whitton [Wed, 18 Jan 2023 00:26:06 +0000 (17:26 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-10 development

2 years agoUpdate debian/changelog for 28.2+1-9 release
Sean Whitton [Sun, 18 Dec 2022 22:37:23 +0000 (15:37 -0700)]
Update debian/changelog for 28.2+1-9 release

2 years agoBackport inhibit-automatic-native-compilation from Emacs 29
Sean Whitton [Sun, 18 Dec 2022 21:43:54 +0000 (14:43 -0700)]
Backport inhibit-automatic-native-compilation from Emacs 29

We intend to use the EMACS_INHIBIT_AUTOMATIC_NATIVE_COMPILATION
environment variable to address bugs like #1021842.

2 years agoRename to 'inhibit-automatic-native-compilation'
Lars Ingebrigtsen [Mon, 3 Oct 2022 17:49:53 +0000 (19:49 +0200)]
Rename to 'inhibit-automatic-native-compilation'

The following upstream patch has been backported:

  Rename to inhibit-automatic-native-compilation

  * src/comp.c (maybe_defer_native_compilation):
  (syms_of_comp):
  * lisp/startup.el (inhibit-native-compilation):
  (normal-top-level):
  * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load):
  * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Rename
  inhibit-native-compilation to inhibit-automatic-native-compilation.

Origin: upstream, commit f97993ee667f9be7589825f3a4fbc095d6944ec6
Forwarded: not-needed

2 years agoAdd 'inhibit-native-compilation'
Lars Ingebrigtsen [Mon, 3 Oct 2022 13:26:04 +0000 (15:26 +0200)]
Add 'inhibit-native-compilation'

The following upstream patch has been backported:

  Add new variable 'inhibit-native-compilation'

  * lisp/startup.el (normal-top-level): Set
  inhibit-native-compilation from environment variable.

  * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Don't write
  trampolines to disk.

  * lisp/progmodes/elisp-mode.el
  (emacs-lisp-native-compile-and-load): Adjust.

  * src/comp.c (syms_of_comp): New variable
  inhibit-native-compilation.
  (maybe_defer_native_compilation): Use it.

Origin: upstream, commit: 5fec9182dbeffa88cef6651d8c798ef9665d6681
Forwarded: not-needed

2 years agoAdjust debian/changelog for UNRELEASED 28.2+1-9 development
Sean Whitton [Sun, 18 Dec 2022 21:31:44 +0000 (14:31 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-9 development

3 years agoUpdate debian/changelog for 28.2+1-8 release
Sean Whitton [Fri, 2 Dec 2022 01:45:17 +0000 (18:45 -0700)]
Update debian/changelog for 28.2+1-8 release

3 years agoFix ctags local command execution vulnerability (CVE-2022-45939)
Sean Whitton [Fri, 2 Dec 2022 01:43:37 +0000 (18:43 -0700)]
Fix ctags local command execution vulnerability (CVE-2022-45939)

Closes: #1025009
3 years agoFix ctags local command execution vulnerability (CVE-2022-45939)
lu4nx [Fri, 25 Nov 2022 06:38:29 +0000 (14:38 +0800)]
Fix ctags local command execution vulnerability (CVE-2022-45939)

This upstream patch has been incorporated to fix the problem:

  Fixed ctags local command execute vulnerability

  * lib-src/etags.c:

  (clean_matched_file_tag): New function
  (do_move_file): New function
  (readline_internal):
  Add `leave_cr` parameter, if true, include the \r character

  * test/manual/etags/CTAGS.good_crlf: New file
  * test/manual/etags/CTAGS.good_update: New file
  * test/manual/etags/crlf: New file
  * test/manual/etags/Makefile: Add `ctags -u` test cases

Origin: upstream, commit: d48bb4874bc6cd3e69c7a15fc3c91cc141025c51
Bug: https://debbugs.gnu.org/59544
Bug-Debian: https://bugs.debian.org/1025009
Forwarded: not-needed

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-8 development
Sean Whitton [Fri, 2 Dec 2022 01:11:21 +0000 (18:11 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-8 development

3 years agoUpdate debian/changelog for 28.2+1-7 release
Sean Whitton [Mon, 28 Nov 2022 00:38:06 +0000 (17:38 -0700)]
Update debian/changelog for 28.2+1-7 release

3 years agoRun 'wrap-and-sort -st'
Sean Whitton [Sun, 27 Nov 2022 20:32:36 +0000 (13:32 -0700)]
Run 'wrap-and-sort -st'

Additionally apply the changes to d/copyright.in.

3 years agod/copyright: Fix the names of upstream's release tag and our tarball
Sean Whitton [Fri, 14 Oct 2022 20:52:38 +0000 (13:52 -0700)]
d/copyright: Fix the names of upstream's release tag and our tarball

Introduce a new substitution variable, DEBORIG_VERSION.

3 years agod/copyright: Fix format of Upstream-Contact field
Sean Whitton [Fri, 14 Oct 2022 20:42:49 +0000 (13:42 -0700)]
d/copyright: Fix format of Upstream-Contact field

3 years agoAdd liblcms2-dev build-dep
Sean Whitton [Sun, 27 Nov 2022 20:13:58 +0000 (13:13 -0700)]
Add liblcms2-dev build-dep

3 years agoDrop unused gcc-12 and libmagick++-6.q16-dev build-deps
Sean Whitton [Sun, 27 Nov 2022 20:13:44 +0000 (13:13 -0700)]
Drop unused gcc-12 and libmagick++-6.q16-dev build-deps

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-7 development
Sean Whitton [Sun, 27 Nov 2022 20:12:56 +0000 (13:12 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-7 development

3 years agoUpdate debian/changelog for 28.2+1-6 release
Sean Whitton [Thu, 17 Nov 2022 20:13:51 +0000 (13:13 -0700)]
Update debian/changelog for 28.2+1-6 release

3 years agoMark two flaky tests as unstable
Sean Whitton [Tue, 15 Nov 2022 23:33:37 +0000 (16:33 -0700)]
Mark two flaky tests as unstable

test-undo-region is failing on Debian arch:all autobuilders, and
process-tests/multiple-threads-waiting randomly fails locally and on
autobuilders.

Closes: #1024060
3 years agoMark flaky test process-tests/multiple-threads-waiting as unstable
Sean Whitton [Tue, 15 Nov 2022 23:26:59 +0000 (16:26 -0700)]
Mark flaky test process-tests/multiple-threads-waiting as unstable

It times out:

     passed  22/28  process-tests/fd-setsize-no-crash/make-serial-process (0.021449 sec)
  make[5]: *** [Makefile:182: src/process-tests.log] Error 134
    GEN      src/regex-emacs-tests.log
    GEN      src/search-tests.log
    GEN      src/syntax-tests.log
    GEN      src/textprop-tests.log
    GEN      src/thread-tests.log
    GEN      src/timefns-tests.log
    GEN      src/undo-tests.log
    GEN      src/xdisp-tests.log
    GEN      src/xfaces-tests.log
    GEN      src/xml-tests.log
  make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk/test'
  make[4]: [Makefile:335: check-doit] Error 2 (ignored)

  SUMMARY OF TEST RESULTS
  -----------------------
  Files examined: 375
  Ran 5408 tests, 28 failed to run, 5273 results as expected, 0 unexpected, 135 skipped
  1 files did not finish:
    src/process-tests.log
  make[4]: *** [Makefile:336: check-doit] Error 2

3 years agoMark test-undo-region as unstable
Sean Whitton [Tue, 15 Nov 2022 22:54:41 +0000 (15:54 -0700)]
Mark test-undo-region as unstable

It is repeatedly failing on Debian's arch:all autobuilders, though
seemingly nowhere else:

     passed  40/44  simple-transpose-subr (0.000396 sec)
  Test test-undo-region backtrace:
    signal(ert-test-failed (((should (= (length (delq nil (undo-make-sel
    ert-fail(((should (= (length (delq nil (undo-make-selective-list 1 9
    #f(compiled-function () #<bytecode 0x52f126616d2cdbd>)()
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name test-undo-region :documentation nil :
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
    ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
    ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
    command-line-1(("-L" ":/<<PKGBUILDDIR>>/debian/build
    command-line()
    normal-top-level()
  Test test-undo-region condition:
      (ert-test-failed
       ((should
         (=
   (length ...)
   2))
        :form
        (= 3 2)
        :value nil))
     FAILED  41/44  test-undo-region (0.000185 sec)

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-6 development
Sean Whitton [Tue, 15 Nov 2022 22:51:53 +0000 (15:51 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-6 development

3 years agoUpdate debian/changelog for 28.2+1-5 release
Sean Whitton [Sun, 13 Nov 2022 20:44:46 +0000 (13:44 -0700)]
Update debian/changelog for 28.2+1-5 release

3 years agoFix large core dumps from background processes
Sean Whitton [Sun, 13 Nov 2022 00:07:14 +0000 (17:07 -0700)]
Fix large core dumps from background processes

Add 0013-Fix-large-core-dumps-from-background-processes.patch to fix
the problem.

Closes: #1017711
3 years agoFix large core dumps from background processes
Eli Zaretskii [Thu, 10 Nov 2022 10:12:56 +0000 (12:12 +0200)]
Fix large core dumps from background processes

This upstream patch has been incorporated to fix the problem:

  Avoid dumping core upon SIGHUP in non-interactive sessions

  * src/emacs.c (terminate_due_to_signal): Don't special-case
  SIGINT.  Patch by Paul Eggert <eggert@cs.ucla.edu>.  (Bug#58956)

Origin: upstream, commit: 25b4cec31d580353995d87fe19ae4dab6e6e37de
Bug: https://debbugs.gnu.org/58956
Bug-Debian: https://bugs.debian.org/1017711
Forwarded: not-needed

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-5 development
Sean Whitton [Sun, 13 Nov 2022 00:00:52 +0000 (17:00 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-5 development

3 years agoUpdate debian/changelog for 28.2+1-4 release
Sean Whitton [Tue, 8 Nov 2022 19:33:42 +0000 (12:33 -0700)]
Update debian/changelog for 28.2+1-4 release

3 years agoFix eln files not being generated by native-comp-async
Sean Whitton [Tue, 8 Nov 2022 19:28:08 +0000 (12:28 -0700)]
Fix eln files not being generated by native-comp-async

Add 0012-Fix-eln-files-not-being-generated-when-native-comp-a.patch to
fix the problem.  Thanks to Youhei SASAKI and Tatsuya Kinoshita for
reporting the problem and indicating the upstream fix to backport.

Closes: #1023440
3 years agoFix eln files not being generated when native-comp-async runs
Andrea Corallo [Wed, 19 Oct 2022 20:08:41 +0000 (22:08 +0200)]
Fix eln files not being generated when native-comp-async runs

This upstream patch has been incorporated to fix the problem:

  * Fix async native compilation (bug#58637)

  * lisp/emacs-lisp/comp.el (comp--native-compile): Fix gate condition.
  (comp-run-async-workers): Add assetion.

Origin: upstream, commit: 56c63ca21b3e5e2d0bb05d3897ea287a754c5b29
Bug-Debian: https://bugs.debian.org/1023440
Forwarded: not-needed

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-4 development
Sean Whitton [Tue, 8 Nov 2022 19:25:26 +0000 (12:25 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-4 development

3 years agoUpdate debian/changelog for 28.2+1-3 release
Sean Whitton [Thu, 27 Oct 2022 22:41:53 +0000 (15:41 -0700)]
Update debian/changelog for 28.2+1-3 release

3 years agoAvoid fork bomb caused by native compilation trampolines
Sean Whitton [Thu, 27 Oct 2022 22:37:07 +0000 (15:37 -0700)]
Avoid fork bomb caused by native compilation trampolines

Add 0011-Avoid-fork-bomb-caused-by-native-compilation-trampol.patch to
fix the problem.

3 years agoAvoid fork bomb caused by native compilation trampolines
Andrea Corallo [Tue, 18 Oct 2022 13:14:32 +0000 (15:14 +0200)]
Avoid fork bomb caused by native compilation trampolines

This upstream patch has been incorporated to fix the problem:

  Set `comp-no-spawn' earlier using -no-comp-spawn

  * src/emacs.c (standard_args): Add '-no-comp-spawn' cmd line option.
  * lisp/startup.el (command-line): Parse '-no-comp-spawn' cmd line
  option.
  * lisp/emacs-lisp/comp.el (comp-run-async-workers, comp-final):
  Use '-no-comp-spawn'.

Origin: upstream, commit: 5ad5b797f78dacb9c901d3c63bee05b1762fa94f
Bug-Debian: https://bugs.debian.org/1017817
Bug-Debian: https://bugs.debian.org/1017845
Forwarded: not-needed

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-3 development
Sean Whitton [Thu, 27 Oct 2022 22:31:29 +0000 (15:31 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-3 development

3 years agoUpdate debian/changelog for 28.2+1-2 release
Sean Whitton [Wed, 26 Oct 2022 01:42:01 +0000 (18:42 -0700)]
Update debian/changelog for 28.2+1-2 release

3 years agoAvoid fork bomb caused by native compilation
Sean Whitton [Wed, 26 Oct 2022 01:38:51 +0000 (18:38 -0700)]
Avoid fork bomb caused by native compilation

Add 0010-Avoid-fork-bomb-caused-by-native-compilation.patch to fix the
problem.

Thanks to Aymeric Agon-Rambosson for help backporting the patch.

3 years agoAvoid fork bomb caused by native compilation
Andrea Corallo [Fri, 14 Oct 2022 22:59:55 +0000 (00:59 +0200)]
Avoid fork bomb caused by native compilation

This upstream patch has been incorporated to fix the problem:

  Prevent potential native compilation infinite recursions

  * lisp/emacs-lisp/comp.el (comp-no-spawn): New var.
  (comp-subr-trampoline-install, comp-final, comp-run-async-workers)
  (comp--native-compile): Update.

Origin: upstream, commit: 1a8015b83761f27d299b1ffa45fc045bb76daf8a
Bug-Debian: https://bugs.debian.org/1017817
Bug-Debian: https://bugs.debian.org/1017845
Forwarded: not-needed

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-2 development
Sean Whitton [Wed, 26 Oct 2022 01:36:55 +0000 (18:36 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-2 development

3 years agoUpdate debian/changelog for 28.2+1-1 release
Sean Whitton [Thu, 13 Oct 2022 23:32:50 +0000 (16:32 -0700)]
Update debian/changelog for 28.2+1-1 release

3 years agoAdd myself, Sean Whitton, to Uploaders field
Sean Whitton [Mon, 10 Oct 2022 00:23:18 +0000 (17:23 -0700)]
Add myself, Sean Whitton, to Uploaders field

3 years agoMerge upstream version 28.2
Sean Whitton [Mon, 10 Oct 2022 00:17:38 +0000 (17:17 -0700)]
Merge upstream version 28.2

3 years agopdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k
John Paul Adrian Glaubitz [Sat, 24 Sep 2022 18:37:18 +0000 (13:37 -0500)]
pdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k

Before the change builds would fail like this:

  (...)
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/vc-hooks.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/ediff-hook.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/uniquify.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/electric.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/emacs-lisp/eldoc.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/cus-start.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/tooltip.el (source)...
  Finding pointers to doc strings...
  Finding pointers to doc strings...done
  Dumping under the name bootstrap-emacs.pdmp
  dumping fingerprint: 7b5c59c589dc151eb1e4269bd83fbe809616b5cb9bb5c80014d5b560b391dfb6
  dump relocation out of range

[rlb@defaultvalue.org: create commit message]

Origin: debian
Bug: https://bugs.gnu.org/44531
Bug-Debian: http://bugs.debian.org/1019130
Forwarded: not-needed

3 years agoMark vc-bzr-test-fauilt-bzr-autoloads as unstable for now
Rob Browning [Sun, 16 Dec 2018 23:13:36 +0000 (17:13 -0600)]
Mark vc-bzr-test-fauilt-bzr-autoloads as unstable for now

Currently the test fails like this:

  Running 3 tests (2018-12-17 12:17:43-0600)
     passed  1/3  vc-bzr-test-bug9726
  Mark set
  Press C-c C-c when you are done editing.
  Enter a change comment.  Type C-c C-c when done
     passed  2/3  vc-bzr-test-bug9781
  Falling back on "slow" status detection ((file-missing "Opening input file" "No such file or directory" "/tmp/vc-bzr-testVlgmsb/bzr/.bzr/checkout/dirstate"))
  Error: (error "Running bzr status --no-classify loaddefs.el...FAILED (status 3)")
  Warnings in `bzr' output: bzr: ERROR: invalid header line: ''

  Error: (error "Running bzr status --no-classify loaddefs.el...FAILED (status 3)")
  Warnings in `bzr' output: bzr: ERROR: invalid header line: ''

  Test vc-bzr-test-faulty-bzr-autoloads backtrace:
    logand(nil 128)
    vc-mode-line("/tmp/vc-bzr-testVlgmsb/bzr/loaddefs.el" Bzr)
    vc-refresh-state()
    run-hooks(find-file-hook)
    after-find-file(t t)
    find-file-noselect-1(#<buffer loaddefs.el> "/tmp/vc-bzr-testVlgmsb/b
    find-file-noselect("/tmp/vc-bzr-testVlgmsb/bzr/loaddefs.el")
    autoload-find-generated-file()
    update-directory-autoloads("/tmp/vc-bzr-testVlgmsb/bzr/")
    (progn (update-directory-autoloads default-directory) t)
    (setq value-35 (progn (update-directory-autoloads default-directory)
    (unwind-protect (setq value-35 (progn (update-directory-autoloads de
    (if (unwind-protect (setq value-35 (progn (update-directory-autoload
    (let (form-description-36) (if (unwind-protect (setq value-35 (progn
    (let ((value-35 (gensym "ert-form-evaluation-aborted-"))) (let (form
    (progn (call-process vc-bzr-program nil nil nil "init") (let ((temp-
    (unwind-protect (progn (call-process vc-bzr-program nil nil nil "ini
    (let* ((homedir (make-temp-file "vc-bzr-test" t)) (bzrdir (expand-fi
    (lambda nil (let* ((fn-30 (function executable-find)) (args-31 (cond
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name vc-bzr-test-faulty-bzr-autoloads :doc
    ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi
    ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
    ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
    ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
    eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
    command-line-1(("-L" ":/home/locke/tmp/main-26.1/debian/build-src/te
    command-line()
    normal-top-level()
  Test vc-bzr-test-faulty-bzr-autoloads condition:
      (wrong-type-argument number-or-marker-p nil)
     FAILED  3/3  vc-bzr-test-faulty-bzr-autoloads

  Ran 3 tests, 2 results as expected, 1 unexpected (2018-12-17 12:17:46-0600)

  1 unexpected results:
     FAILED  vc-bzr-test-faulty-bzr-autoloads

3 years agoKill gpg agent in package-test.el to avoid a race
Rob Browning [Mon, 10 Oct 2016 22:35:56 +0000 (17:35 -0500)]
Kill gpg agent in package-test.el to avoid a race

package-test.el should no longer fail during clean up.

* Previously a delete-directories call raced with the gpg agent's own
  cleanup process (presumably triggered by the first deletion of one of
  the agent's sockets).  As a result, it looks like the agent might
  delete one of its sockets after delete-directories had decided to
  delete the socket, but before it made the attempt, causing an
  exception.

* To fix the problem, explicitly ask gpg-connect-agent to kill the agent
  before attempting to delete the gnupg home directory, and then delete
  via "rm -rf" to ignore any vanishing files.

3 years agoDon't try to build src/macuvs.h (via IVD_Sequences.txt)
Rob Browning [Wed, 22 Oct 2014 00:10:17 +0000 (19:10 -0500)]
Don't try to build src/macuvs.h (via IVD_Sequences.txt)

These are OS X specific, and were removed for now, due to uncertainty
over the licensing.

3 years agoModify the output of (version) to indicate Debian modifications
Rob Browning [Tue, 5 Apr 2011 03:46:28 +0000 (22:46 -0500)]
Modify the output of (version) to indicate Debian modifications

The output of (version) has been modified to indicate Debian modifications.

Author: Rob Browning <rlb@defaultvalue.org>
Added-by: Rob Browning <rlb@defaultvalue.org>
3 years agoAdjust documentation references for Debian
Rob Browning [Tue, 5 Apr 2011 03:46:25 +0000 (22:46 -0500)]
Adjust documentation references for Debian

Various documentation references have been adjusted for Debian.

References to /usr/local/... have been changed to /usr/... as
appropriate, etc.

3 years agoRemove files that appear to be incompatible with the DFSG
Rob Browning [Tue, 5 Apr 2011 03:46:24 +0000 (22:46 -0500)]
Remove files that appear to be incompatible with the DFSG

Files that appear to be incompatible with the DFSG have been removed.

A number of files have been removed from this package because their
licenses are not compatible with the Debian Free Software Guidelines
(DFSG), or because it wasn't completely clear that their licenses are
compatible.

In particular, all of the files which are covered under the GFDL and
have invariant sections have been removed in accordance with this
General Resolution: http://www.debian.org/vote/2006/vote_001.

The files that have been removed, but still appear to be
distributable, have been moved to packages in Debian's non-free
section.

Author: Rob Browning <rlb@defaultvalue.org>
Added-by: Rob Browning <rlb@defaultvalue.org>
Status: new

3 years agoRun debian-startup and set debian-emacs-flavor
Rob Browning [Tue, 5 Apr 2011 03:46:22 +0000 (22:46 -0500)]
Run debian-startup and set debian-emacs-flavor

Emacs runs debian-startup and sets debian-emacs-flavor.

* Emacs runs debian-startup during the startup process unless
  site-run-file is false.

* The global variable debian-emacs-flavor is bound to 'emacs.

Author: Rob Browning <rlb@defaultvalue.org>

3 years agoPrefer /usr/share/info/emacs/
Rob Browning [Sun, 7 Apr 2013 20:03:05 +0000 (15:03 -0500)]
Prefer /usr/share/info/emacs/

Emacs prefers /usr/share/info/emacs to /usr/share/info.

The value of Info-default-directory-list has been augmented via
lisp/info.el to include /usr/share/info/emacs before /usr/share/info.

3 years agorecord new upstream branch
Sean Whitton [Mon, 10 Oct 2022 00:14:25 +0000 (17:14 -0700)]
record new upstream branch

3 years agoMerge upstream version 28.2
Sean Whitton [Mon, 10 Oct 2022 00:01:23 +0000 (17:01 -0700)]
Merge upstream version 28.2

3 years agoAdjust debian/changelog for UNRELEASED 28.2+1-1 development
Sean Whitton [Sun, 9 Oct 2022 23:37:27 +0000 (16:37 -0700)]
Adjust debian/changelog for UNRELEASED 28.2+1-1 development

3 years agoUpdate debian/changelog for 28.1+1-4 release
Rob Browning [Tue, 27 Sep 2022 01:28:39 +0000 (20:28 -0500)]
Update debian/changelog for 28.1+1-4 release

3 years agoDon't crash when the ~/.emacs.d/eln-cache isn't writable
Rob Browning [Tue, 27 Sep 2022 01:24:16 +0000 (20:24 -0500)]
Don't crash when the ~/.emacs.d/eln-cache isn't writable

Add 0010-Emacs-should-no-longer-crash-when-the-eln-cache-isn-.patch to
fix the problem.

Thanks to David Bremner for helping pursue the issue.

3 years agoEmacs should no longer crash when the eln-cache isn't writable
Stefan Monnier [Sat, 3 Sep 2022 15:03:01 +0000 (11:03 -0400)]
Emacs should no longer crash when the eln-cache isn't writable

This upstream patch has been incorporated to fix the problem:

  * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully

  Otherwise Emacs may fail to start if it can't find a writable
  `~/.emacs.d/eln-cache` directory.
  Fixes bug#57562.  See also Debian's bug #1017739.

Origin: upstream, commit: aad38d6010d9eef07685fa52ce93bcf70512f88b
Bug: https://bugs.gnu.org/57562
Bug-Debian: http://bugs.debian.org/1017739
Forwarded: not-needed

3 years agoIgnore lintian shared-library-lacks-prerequisites for eln files
Rob Browning [Sun, 25 Sep 2022 18:41:56 +0000 (13:41 -0500)]
Ignore lintian shared-library-lacks-prerequisites for eln files

3 years agoFix pdumper alignment problem causing m68k build failures
Rob Browning [Sat, 24 Sep 2022 19:10:51 +0000 (14:10 -0500)]
Fix pdumper alignment problem causing m68k build failures

Add 0009-pdumper-set-DUMP_RELOC_ALIGNMENT_BITS-1-for-m68k.patch to
address the issue.

Thanks to John Paul Adrian Glaubitz for the patch.

Closes: 1019130
3 years agopdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k
John Paul Adrian Glaubitz [Sat, 24 Sep 2022 18:37:18 +0000 (13:37 -0500)]
pdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k

Before the change builds would fail like this:

  (...)
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/vc-hooks.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/ediff-hook.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/uniquify.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/electric.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/emacs-lisp/eldoc.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/cus-start.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/tooltip.el (source)...
  Finding pointers to doc strings...
  Finding pointers to doc strings...done
  Dumping under the name bootstrap-emacs.pdmp
  dumping fingerprint: 7b5c59c589dc151eb1e4269bd83fbe809616b5cb9bb5c80014d5b560b391dfb6
  dump relocation out of range

[rlb@defaultvalue.org: create commit message]

Origin: debian
Bug: https://bugs.gnu.org/44531
Bug-Debian: http://bugs.debian.org/1019130
Forwarded: not-needed

3 years agoDon't enable Debian systemd unit by default
Nicholas D Steeves [Thu, 15 Sep 2022 15:58:43 +0000 (11:58 -0400)]
Don't enable Debian systemd unit by default

3 years agoDisable debian s390x native compilation to avoid build crashes
Rob Browning [Sat, 24 Sep 2022 20:52:37 +0000 (15:52 -0500)]
Disable debian s390x native compilation to avoid build crashes

cf. https://debbugs.gnu.org/57789

3 years agoDisable debian mips64el native compilation given ABI incompatibility
Rob Browning [Sun, 18 Sep 2022 19:14:03 +0000 (14:14 -0500)]
Disable debian mips64el native compilation given ABI incompatibility

Currently ./configure fails on eller.debian.org (mipsel host with
mips64 sbuild chroot) with this in the config.log:

  Error: -march=mips1 is not compatible with the selected ABI

3 years agodebian/rules: don't set debian CFLAGS to -O0 on arm64 anymore
Rob Browning [Sun, 18 Sep 2022 19:08:38 +0000 (14:08 -0500)]
debian/rules: don't set debian CFLAGS to -O0 on arm64 anymore

It looks like this may be fixed now.  Let's see.

3 years agoAdjust debian/changelog for UNRELEASED 28.1+1-4 development
Rob Browning [Sun, 18 Sep 2022 19:02:40 +0000 (14:02 -0500)]
Adjust debian/changelog for UNRELEASED 28.1+1-4 development

3 years agoUpdate HISTORY for Emacs 28.2
Stefan Kangas [Mon, 12 Sep 2022 00:47:11 +0000 (02:47 +0200)]
Update HISTORY for Emacs 28.2

* etc/HISTORY: Update for the Emacs 28.2 release.

3 years agoAdjust debian/changelog for UNRELEASED 28.1+1-3 development
Rob Browning [Wed, 7 Sep 2022 21:08:28 +0000 (16:08 -0500)]
Adjust debian/changelog for UNRELEASED 28.1+1-3 development

3 years agodebian/copyright: fix DEP-5 format errors
Rob Browning [Wed, 7 Sep 2022 20:18:12 +0000 (15:18 -0500)]
debian/copyright: fix DEP-5 format errors

Have one upstream-contact with multiple values (DEP-5), and separate
paragraphs in comments with "  ." lines.

3 years agoBump Emacs version to 28.2
Stefan Kangas [Tue, 6 Sep 2022 22:25:16 +0000 (00:25 +0200)]
Bump Emacs version to 28.2

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 28.2.

3 years agoUpdate ChangeLog and AUTHORS for Emacs 28.2
Stefan Kangas [Tue, 6 Sep 2022 22:20:57 +0000 (00:20 +0200)]
Update ChangeLog and AUTHORS for Emacs 28.2

* ChangeLog.3:
* etc/AUTHORS:
* etc/NEWS: Update for Emacs 28.2.

3 years ago* doc/misc/idlwave.texi (Troubleshooting): Don't say "Emacsen".
Stefan Kangas [Tue, 6 Sep 2022 21:27:01 +0000 (23:27 +0200)]
* doc/misc/idlwave.texi (Troubleshooting): Don't say "Emacsen".

3 years ago; * doc/emacs/misc.texi (emacsclient Options): Fix typo.
Stefan Kangas [Mon, 5 Sep 2022 20:24:05 +0000 (22:24 +0200)]
; * doc/emacs/misc.texi (emacsclient Options): Fix typo.