LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-29-2022, 03:45 AM   #1
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
Vim9 in Slackware-15.0


Now that Vim9 is out, but stable versions of Slackware generally only get security patches, what's the future of Vim9 in Slackware-15.0, how will it happen?

Will Pat make an exception and bump it to Vim9 in 15.0 if it behaves well for a while in -current?

Will Vim9 rather be provided as extra/ package a la llvm in 14.2?

Will it be rather possible to install Vim9 alongside Vim8?

Will it appear on SBo and make its way into next stable Slackware version through -current?
 
Old 06-29-2022, 05:34 AM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 458

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by FlinchX View Post
Will it be rather possible to install Vim9 alongside Vim8?
There would be some file conflicts to work out (binaries and man pages), but at least everything in /usr/share/vim would be separated. /usr/bin/ctags appears to retain the same version from Vim8. I'm not sure what would be appropriate for /usr/bin/xxd, though.
 
Old 06-29-2022, 08:53 AM   #3
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
You can just grab the source directory from -current and build it on 15.0 yourself. I did this for a few years during the 14.2->15.0 transition. I haven't yet restarted the practice because 15.0 isn't that old. Maybe I'll reconsider since Vim9 is now released. But actually the version of Vim in Slackware 15.0 (8.2.4649) isn't all that different from Vim 9.0:

https://www.vim.org/vim90.php
Quote:
Vim 9.0 released
After many years of gradual improvement Vim now takes a big step with a major release. Besides many small additions the spotlight is on a new incarnation of the Vim script language: Vim9 script.

The previous release was version 8.2 in December 2019. Since the latest source code is always available on GitHub, many have already picked up later patch versions (there are more than 5000 of them!). Therefore the changes have already been tried out by many users. On top of that bugs have been fixed, security issues have been addressed, and many tests have been added. Code coverage has been dramatically increased. This version is more reliable than any before.
 
Old 06-30-2022, 08:35 AM   #4
pm_a_cup_of_tea
Member
 
Registered: May 2021
Posts: 58

Rep: Reputation: Disabled
Quote:
Originally Posted by drumz View Post
You can just grab the source directory from -current and build it on 15.0 yourself.

https://www.vim.org/vim90.php
I did this with emacs28. Downloaded the slackbuild and source, build it as you would an SBo package then use upgradepkg to install. Its really as simple as that

Last edited by pm_a_cup_of_tea; 06-30-2022 at 08:37 AM.
 
Old 07-01-2022, 02:18 AM   #5
at0
LQ Newbie
 
Registered: May 2012
Posts: 16

Rep: Reputation: Disabled
Vim 9.0 is now available in Slackware-current.

I've built both vim and gvim packages on Slackware-15.0 using sources from https://mirrors.slackware.com/slackw...source/ap/vim/.

However for the moment it is necessary to correct *.SlackBuild scripts - the Vim version (VIMBRANCH) inside is incorrect - 8.2 (should be 9.0) and scripts try to get source from github instead of using available *.tar.lz archive.

Last edited by at0; 07-01-2022 at 04:12 AM.
 
Old 07-01-2022, 08:27 AM   #6
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by at0 View Post
Vim 9.0 is now available in Slackware-current.

I've built both vim and gvim packages on Slackware-15.0 using sources from https://mirrors.slackware.com/slackw...source/ap/vim/.

However for the moment it is necessary to correct *.SlackBuild scripts - the Vim version (VIMBRANCH) inside is incorrect - 8.2 (should be 9.0) and scripts try to get source from github instead of using available *.tar.lz archive.
I didn't try it yet, but are you sure you got an up-to-date SlackBuild?

https://git.slackware.nl/current/tre...SlackBuild#n26
Code:
VIMBRANCH=9.0
https://git.slackware.nl/current/tre...SlackBuild#n33
Code:
if [ -r vim-${VIMBRANCH}*.tar.?z ]; then # if there's a source archive already, use the version number from it:
  VERSION=$(echo vim-${VIMBRANCH}*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
else # need to fetch the latest source archive for this branch:
Edit:
And here is the only change made to vim.SlackBuild:
https://git.slackware.nl/current/dif...ed604115aede58
Code:
diff --git a/source/ap/vim/vim.SlackBuild b/source/ap/vim/vim.SlackBuild
index 64ad16bb..503f5cf6 100755
--- a/source/ap/vim/vim.SlackBuild
+++ b/source/ap/vim/vim.SlackBuild
@@ -23,7 +23,7 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PKGNAM=vim
-VIMBRANCH=8.2
+VIMBRANCH=9.0
 CTAGSVER=5.8
 BUILD=${BUILD:-1}

Last edited by drumz; 07-01-2022 at 08:29 AM.
 
Old 07-01-2022, 11:14 AM   #7
at0
LQ Newbie
 
Registered: May 2012
Posts: 16

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by drumz View Post
I didn't try it yet, but are you sure you got an up-to-date SlackBuild?

https://git.slackware.nl/current/tre...SlackBuild#n26
Code:
VIMBRANCH=9.0
Thanks. At the moment of writing that was the case. I've used lftp -c 'open -e mirror ...' to get that folder from http://mirrors.slackware.com.
Neither direct download of *.SlackBuild's resolved that problem.

However it's quite possible that the mirror I've got sources from was not yet fully updated.

For the moment I also get *.SlackBuilds with correct VIMBRANCH=9.0.

Good to know that was just my "problem" though.

Last edited by at0; 07-01-2022 at 11:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Slackware Slackware Slackware!!!!! monkeymartin Slackware 5 03-28-2003 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration