[arch-commits] Commit in vim/trunk (PKGBUILD use-perls-inline-functions.patch)

Evangelos Foutras foutrelis at archlinux.org
Tue May 25 00:03:00 UTC 2021


    Date: Tuesday, May 25, 2021 @ 00:02:59
  Author: foutrelis
Revision: 416276

upgpkg: vim 8.2.2885-1: bump patch version; build for Perl 5.34

Added:
  vim/trunk/use-perls-inline-functions.patch
Modified:
  vim/trunk/PKGBUILD

----------------------------------+
 PKGBUILD                         |   13 ++++-
 use-perls-inline-functions.patch |   84 +++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-24 19:17:34 UTC (rev 416275)
+++ PKGBUILD	2021-05-25 00:02:59 UTC (rev 416276)
@@ -9,7 +9,7 @@
 
 pkgbase=vim
 pkgname=('vim' 'gvim' 'vim-runtime')
-pkgver=8.2.2859
+pkgver=8.2.2885
 _versiondir=82
 pkgrel=1
 pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor'
@@ -19,14 +19,17 @@
 makedepends=('glibc' 'libgcrypt' 'gpm' 'python2' 'python' 'ruby' 'libxt' 'gtk3' 'lua'
              'gawk' 'tcl' 'pcre' 'zlib' 'libcanberra')
 source=(https://github.com/vim/vim/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz
+        use-perls-inline-functions.patch
         vimrc
         archlinux.vim
         vimdoc.hook)
-sha256sums=('65d03672ee6f6d44ec6fadbdf04c9b76a943bdfeee51e74fb68563f591edcf54'
+sha256sums=('029f2785403e9677a33100c959de4bde1c1f920f0b10b6f3870f92e8bb24045c'
+            '709bd36ef796b5e71df08b4a76675ee86a7afdac5627f2dc05c320b8f012a385'
             'b16e85e457397ab2043a7ee0a3c84307c6b4eac157fd0b721694761f25b3ed5b'
             'cc3d931129854c298eb22e993ec14c2ad86cc1e70a08a64496f5e06559289972'
             '8e9656934d9d7793063230d15a689e10455e6db9b9fe73afa0f294792795d8ae')
-sha512sums=('5b89235d0d4a0ef7bb5a6f583746dd2b4faa0ab68363c0ff6e9e5d9f260551577928b2e3e639a2ac8a4f3450cb2160e8159f34ea55028f0b24a8d4c1da9d83dd'
+sha512sums=('daee8c437336b90ae50a2404c317ba39d62c70d18dd9e4bc20289e1ae3a614255d27b0da97e2ea363c4fb9b813d8a653111176ac1a2109745fb4e2c4be96b599'
+            'd09f21d139d1105276486e416a662baf611fd6e5c6574a3ccc469b06d90a83cb92ebf0b550c535b9d90d1378ca013f373b62f0d484a3a6918c9c0454028745a5'
             '4b5bed0813f22af9e158ea9aa56a4a9862dd786ba2d201f20159ccf652da6190164aaed0b6b7217d578f7b25c33a8adcc307bfcf3caa8d173a7ff29e2a00fee7'
             'fe091d289d876f45319c898f6021ef86d6a238b540c225a279c46efc5c36fa7d868cd0cee73a111811c4be90df160f85340bb251be3a437727dbe5c699950363'
             'a02ad0d66f300160911aeb81d8886c6c558436ac4ee3fcd161dd65c6b1e5d1f41b9005a7f5bb5ba68d57027fc1c8e43daabf055bd6207fb5a216a67f758df8d1')
@@ -38,6 +41,10 @@
     sed -E 's|^.*(#define VIMRC_FILE.*").*$|\1|g' -i feature.h
     autoconf
   )
+
+  # https://github.com/vim/vim/issues/8250
+  patch -d vim-${pkgver} -Np1 <use-perls-inline-functions.patch
+
   cp -a vim-${pkgver} gvim-${pkgver}
 }
 

Added: use-perls-inline-functions.patch
===================================================================
--- use-perls-inline-functions.patch	                        (rev 0)
+++ use-perls-inline-functions.patch	2021-05-25 00:02:59 UTC (rev 416276)
@@ -0,0 +1,84 @@
+diff -upr vim-8.2.2885.orig/src/if_perl.xs vim-8.2.2885/src/if_perl.xs
+--- vim-8.2.2885.orig/src/if_perl.xs	2021-05-24 23:56:15.000000000 +0300
++++ vim-8.2.2885/src/if_perl.xs	2021-05-25 02:49:30.913667666 +0300
+@@ -37,13 +37,6 @@
+ 
+ #include "vim.h"
+ 
+-/* Work around for perl-5.18.
+- * Don't include "perl\lib\CORE\inline.h" for now,
+- * include it after Perl_sv_free2 is defined. */
+-#ifdef DYNAMIC_PERL
+-# define PERL_NO_INLINE_FUNCTIONS
+-#endif
+-
+ #ifdef _MSC_VER
+ // Work around for using MSVC and ActivePerl 5.18.
+ # define __inline__ __inline
+@@ -651,66 +644,6 @@ static struct {
+     {"", NULL},
+ };
+ 
+-/* Work around for perl-5.18.
+- * For now, only the definitions of S_SvREFCNT_dec are needed in
+- * "perl\lib\CORE\inline.h". */
+-# if (PERL_REVISION == 5) && (PERL_VERSION >= 18)
+-static void
+-S_SvREFCNT_dec(pTHX_ SV *sv)
+-{
+-    if (LIKELY(sv != NULL)) {
+-	U32 rc = SvREFCNT(sv);
+-	if (LIKELY(rc > 1))
+-	    SvREFCNT(sv) = rc - 1;
+-	else
+-	    Perl_sv_free2(aTHX_ sv, rc);
+-    }
+-}
+-# endif
+-
+-/* perl-5.32 needs Perl_SvREFCNT_dec */
+-# if (PERL_REVISION == 5) && (PERL_VERSION >= 32)
+-#  define Perl_SvREFCNT_dec S_SvREFCNT_dec
+-# endif
+-
+-/* perl-5.26 also needs S_TOPMARK and S_POPMARK. */
+-# if (PERL_REVISION == 5) && (PERL_VERSION >= 26)
+-PERL_STATIC_INLINE I32
+-S_TOPMARK(pTHX)
+-{
+-    DEBUG_s(DEBUG_v(PerlIO_printf(Perl_debug_log,
+-				 "MARK top  %p %" IVdf "\n",
+-				  PL_markstack_ptr,
+-				  (IV)*PL_markstack_ptr)));
+-    return *PL_markstack_ptr;
+-}
+-
+-PERL_STATIC_INLINE I32
+-S_POPMARK(pTHX)
+-{
+-    DEBUG_s(DEBUG_v(PerlIO_printf(Perl_debug_log,
+-				 "MARK pop  %p %" IVdf "\n",
+-				  (PL_markstack_ptr-1),
+-				  (IV)*(PL_markstack_ptr-1))));
+-    assert((PL_markstack_ptr > PL_markstack) || !"MARK underflow");
+-    return *PL_markstack_ptr--;
+-}
+-# endif
+-
+-/* perl-5.32 needs Perl_POPMARK */
+-# if (PERL_REVISION == 5) && (PERL_VERSION >= 32)
+-#  define Perl_POPMARK S_POPMARK
+-
+-/* perl-5.32 needs Perl_SvTRUE */
+-PERL_STATIC_INLINE bool
+-Perl_SvTRUE(pTHX_ SV *sv) {
+-    if (!LIKELY(sv))
+-        return FALSE;
+-    SvGETMAGIC(sv);
+-    return SvTRUE_nomg_NN(sv);
+-}
+-# endif
+-
+ /*
+  * Make all runtime-links of perl.
+  *



More information about the arch-commits mailing list