Package: vim / 2:8.1.0875-5

Metadata

Package Version Patches format
vim 2:8.1.0875-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
upstream/Support defining compilation date in SOURCE_DATE_EPOCH.patch | (download)

src/config.h.in | 3 3 + 0 - 0 !
src/configure.ac | 10 10 + 0 - 0 !
src/version.c | 8 8 + 0 - 0 !
3 files changed, 21 insertions(+)

 support defining compilation date in $source_date_epoch

There is an ongoing effort[0] to make FOSS software reproducibly
buildable.  In order to make Vim build reproducibly, it is necessary to
allow defining the date/time that is part of VIM_VERSION_LONG as part of
the build process.

This commit enables that by adding support for the SOURCE_DATE_EPOCH
spec[1].  When the $SOURCE_DATE_EPOCH environment variable is defined,
it will be used to populate the BUILD_DATE preprocessor define.

If BUILD_DATE is not defined, the existing behavior of relying on the
preprocessor's __DATE__/__TIME__ symbols will be used.

[0]: https://reproducible-builds.org/
[1]: https://reproducible-builds.org/specs/source-date-epoch/

debian/Support sourcing a vimrc.tiny when Vim is invoked as vi.patch | (download)

src/main.c | 14 13 + 1 - 0 !
src/os_unix.h | 3 3 + 0 - 0 !
src/structs.h | 3 3 + 0 - 0 !
3 files changed, 19 insertions(+), 1 deletion(-)

 support sourcing a vimrc.tiny when vim is invoked as vi

This is used only in the vim-tiny package to allow a specific
configuration for vim-tiny's vi.  The vim-tiny package is substantially
debian/Detect the rst filetype using the contents of the file.patch | (download)

runtime/scripts.vim | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 detect the rst filetype using the contents of the file

Closes: #382541

debian/Add recognition of more LaTeX commands for tex filetype d.patch | (download)

runtime/autoload/dist/ft.vim | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 add recognition of more latex commands for tex filetype detection

Since filetype detection of TeX files defaults to plaintex, we've added
detection of some additional LaTeX commands to help sway the detection
to LaTeX.

Closes: #384479
Signed-off-by: James McCoy <jamessan@debian.org>

debian/Document Debian s decision to disable modelines by defaul.patch | (download)

runtime/doc/options.txt | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 document debian's decision to disable modelines by default

Modelines have historically been a source of vulnerabilities in Vim.
As long as it remains a "blacklist suspected/proven dangerous options"
instead of a "whitelist allowed options" piece of functionality,
Debian's system-wide vimrc will maintain this setting.  As such, the
documentation needs to be updated to reflect the induced behavior.

Closes: #472522
Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.0878 test for has bsd fails on some BSD systems.patch | (download)

src/testdir/test_functions.vim | 2 2 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 4 insertions(+)

 patch 8.1.0878: test for has('bsd') fails on some bsd systems

Problem:    Test for has('bsd') fails on some BSD systems.
Solution:   Adjust the uname match. (James McCoy, closes #3909)

patch 8.1.0884 double check for bsd systems.patch | (download)

src/testdir/test_functions.vim | 1 0 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 2 insertions(+), 1 deletion(-)

 patch 8.1.0884: double check for bsd systems

Problem:    Double check for bsd systems.
Solution:   Delete the old line.

patch 8.1.0948 when built without eval Vim clean produces.patch | (download)

runtime/defaults.vim | 51 28 + 23 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 30 insertions(+), 23 deletions(-)

 patch 8.1.0948: when built without +eval "vim --clean" produces
 errors

Problem:    When built without +eval "Vim --clean" produces errors. (James
            McCoy)
Solution:   Do not enable filetype detection.

upstream/deb release names.patch | (download)

runtime/syntax/debchangelog.vim | 4 2 + 2 - 0 !
runtime/syntax/debsources.vim | 7 4 + 3 - 0 !
2 files changed, 6 insertions(+), 5 deletions(-)

 add ubuntu's eoan and debian's buster, bullseye, bookworm releases

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1046 the secure variable is used inconsistently.patch | (download)

src/buffer.c | 2 1 + 1 - 0 !
src/option.c | 9 4 + 5 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 7 insertions(+), 6 deletions(-)

 patch 8.1.1046: the "secure" variable is used inconsistently

Problem:    the "secure" variable is used inconsistently. (Justin M. Keyes)
Solution:   Set it to one instead of incrementing.

(cherry picked from commit 82b033eff82d3ed0da77fd5f5a1c023766acabba)

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1365 source command doesn t check for the sandb.patch | (download)

src/getchar.c | 6 6 + 0 - 0 !
src/testdir/test_source.vim | 9 9 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 17 insertions(+)

 patch 8.1.1365: source command doesn't check for the sandbox

Problem:    Source command doesn't check for the sandbox. (Armin Razmjou)
Solution:   Check for the sandbox when sourcing a file.

(cherry picked from commit 53575521406739cf20bbe4e384d88e7dca11f040)

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1366 using expressions in a modeline is unsafe.patch | (download)

runtime/doc/options.txt | 69 58 + 11 - 0 !
src/option.c | 35 22 + 13 - 0 !
src/option.h | 1 1 + 0 - 0 !
src/testdir/test49.in | 2 1 + 1 - 0 !
src/testdir/test_modeline.vim | 93 85 + 8 - 0 !
src/version.c | 2 2 + 0 - 0 !
6 files changed, 169 insertions(+), 33 deletions(-)

 patch 8.1.1366: using expressions in a modeline is unsafe

Problem:    Using expressions in a modeline is unsafe.
Solution:   Disallow using expressions in a modeline, unless the
            'modelineexpr' option is set.  Update help, add more tests.

(cherry picked from commit 110289e78195b6d01e1e6ad26ad450de476d41c1)

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1367 can set modelineexpr in modeline.patch | (download)

src/option.c | 2 1 + 1 - 0 !
src/testdir/test_modeline.vim | 1 1 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 4 insertions(+), 1 deletion(-)

 patch 8.1.1367: can set 'modelineexpr' in modeline

Problem:    can set 'modelineexpr' in modeline.
Solution:   Add P_SECURE flag.

(cherry picked from commit 7e800c6047c8a9cc3e5cbc019a4dc91ec36616b1)

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1368 modeline test fails with python but withou.patch | (download)

src/testdir/test_modeline.vim | 2 1 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 3 insertions(+), 1 deletion(-)

 patch 8.1.1368: modeline test fails with python but without
 pythonhome

Problem:    Modeline test fails with python but without pythonhome.
Solution:   Correct test argument.

(cherry picked from commit e09244ee3567d658c293fb1ae0d47a1a8be870ac)

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1382 error when editing test file.patch | (download)

src/testdir/test49.in | 2 1 + 1 - 0 !
src/testdir/test49.vim | 3 1 + 2 - 0 !
src/testdir/test_vimscript.vim | 1 0 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 patch 8.1.1382: error when editing test file

Problem:    Error when editing test file.
Solution:   Remove part of modeline.

(cherry picked from commit 3020a87cb121123abf1e9a1eca0eddac241fc481)

Signed-off-by: James McCoy <jamessan@debian.org>

patch 8.1.1401 misspelled mkspellmem as makespellmem.patch | (download)

runtime/doc/options.txt | 8 2 + 6 - 0 !
src/testdir/test_modeline.vim | 2 1 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 5 insertions(+), 7 deletions(-)

 patch 8.1.1401: misspelled mkspellmem as makespellmem

Problem:    Misspelled mkspellmem as makespellmem.
Solution:   Drop duplicate help entry, fix test. (Naruhiko Nishino, Ken
            Takata, closes #4437)

(cherry picked from commit 076073950c44ea0e35bc39d539dc7ab41bf9c7ec)

Signed-off-by: James McCoy <jamessan@debian.org>