"I believe PKGBUILD has support for cloning a subset of a git repo."
It does not.
Git Clone URL: | https://aur.archlinux.org/neovim-git.git (read-only, click to copy) |
---|---|
Package Base: | neovim-git |
Description: | Fork of Vim aiming to improve user experience, plugins, and GUIs |
Upstream URL: | https://neovim.io |
Keywords: | editor |
Licenses: | custom:neovim |
Conflicts: | neovim |
Provides: | neovim, vim-plugin-runtime |
Submitter: | fhahn |
Maintainer: | Farzat |
Last Packager: | Farzat |
Votes: | 256 |
Popularity: | 1.83 |
First Submitted: | 2014-02-21 19:50 (UTC) |
Last Updated: | 2024-03-11 05:36 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 40 Next › Last »
"I believe PKGBUILD has support for cloning a subset of a git repo."
It does not.
I have noticed then when I install this package, it clones the whole neovim repo and all its history, rather than the HEAD of a specific branch. I think this could be a nice quality of life change, which should significantly improve the download speed when installing this package.
I believe PKGBUILD has support for cloning a subset of a git repo. The simplest of which is probably just running a custom git command like git clone git@github.com:neovim/neovim.git --single-branch --branch master
. Some quick googling shows me that there is no support for pull requests in the AUR, but I could try putting together a patch if that is helpful to the maintainer.
We get it, no need to submit the same orphan request and post the same patch dozens of times (@pjvds @just1602 not even the correct patch, by the way). Remember that Arch is run by volunteers and spamming will not get things moving faster. Posting errors here is also silly if you have not built in a clean environment.
Instead, what you can do is edit the PKGBUILD
on your own system to update the deps and makedeps (this is a VCS package after all, you do not need to wait for it to be updated on aurweb, because editing it once will work for the future unless the build process changes), and always build in a clean chroot.
Edit: I've adopted the package and corrected the deps.
If you are trying to use the below fixes and they are not working because it still detects it as libvterm 0.1.4 then do this.
Go into src/build
remove CMakeCache.txt
try the fixes again
Latest patch to make it working:
From 9301d687356c1c1da517871e7ac97609409299ea Mon Sep 17 00:00:00 2001
From: Pieter Joost van de Sande <pj@born2code.net>
Date: Wed, 12 Oct 2022 21:31:18 +0200
Subject: [PATCH 1/1] support 0.8 versions
---
.SRCINFO | 6 +++---
PKGBUILD | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index ccc6b4e..627af00 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = neovim-git
pkgdesc = Fork of Vim aiming to improve user experience, plugins, and GUIs.
- pkgver = 0.7.0.r67.g5c53e29ca9
+ pkgver = 0.8.0.r138.g0ef6aaa3a7
pkgrel = 1
url = https://neovim.io
install = neovim-git.install
@@ -18,7 +18,7 @@ pkgbase = neovim-git
depends = libluv
depends = libtermkey
depends = libuv
- depends = libvterm-0.1
+ depends = libvterm
depends = luajit
depends = msgpack-c
depends = unibilium
@@ -29,7 +29,7 @@ pkgbase = neovim-git
optdepends = xclip: for clipboard support (or xsel) (see :help provider-clipboard)
optdepends = xsel: for clipboard support (or xclip) (see :help provider-clipboard)
optdepends = wl-clipboard: for clipboard support on wayland (see :help clipboard)
- provides = neovim=0.7.0.r67.g5c53e29ca9
+ provides = neovim=0.8.0.r138.g0ef6aaa3a7
provides = vim-plugin-runtime
conflicts = neovim
options = !strip
diff --git a/PKGBUILD b/PKGBUILD
index 9253d50..5e362cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,14 @@
# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
pkgname=neovim-git
-pkgver=0.7.0.r67.g5c53e29ca9
+pkgver=0.8.0.r138.g0ef6aaa3a7
pkgrel=1
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs.'
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://neovim.io'
backup=('etc/xdg/nvim/sysinit.vim')
license=('custom:neovim')
-depends=('libluv' 'libtermkey' 'libuv' 'libvterm-0.1' 'luajit' 'msgpack-c' 'unibilium' 'tree-sitter')
+depends=('libluv' 'libtermkey' 'libuv' 'libvterm' 'luajit' 'msgpack-c' 'unibilium' 'tree-sitter')
makedepends=('cmake' 'git' 'gperf' 'lua51-mpack' 'lua51-lpeg')
optdepends=('python2-neovim: for Python 2 plugin support (see :help provider-python)'
'python-neovim: for Python 3 plugin support (see :help provider-python)'
--
2.38.0
For those that modified the PKGBUILD and still get errors about libvterm, remember to also delete the build
folder inside src
(relative to the PKGBUILD location).
@ndom91, I'm not an expert at all with Arch packages, but maybe try only with the PKGBUILD
modfication, because on my machine it works, and I update neovim
every day with this package.
EDIT : I think I had this error while fixing the package, and I simply had to clean the build files before building the package again.
EDIT2 : I just checkout the code from https://aur.archlinux.org/neovim-git.git
and only edit the PKGBUILD
file to check if it works, and it did. I only change the dependency name, it's makepkg
that change the pkgver in the diff.
diff --git a/PKGBUILD b/PKGBUILD
index 9253d50..fb21a97 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,14 @@
# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
pkgname=neovim-git
-pkgver=0.7.0.r67.g5c53e29ca9
+pkgver=0.8.0.r100.g09dffb9db7
pkgrel=1
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs.'
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://neovim.io'
backup=('etc/xdg/nvim/sysinit.vim')
license=('custom:neovim')
-depends=('libluv' 'libtermkey' 'libuv' 'libvterm-0.1' 'luajit' 'msgpack-c' 'unibilium' 'tree-sitter')
+depends=('libluv' 'libtermkey' 'libuv' 'libvterm' 'luajit' 'msgpack-c' 'unibilium' 'tree-sitter')
makedepends=('cmake' 'git' 'gperf' 'lua51-mpack' 'lua51-lpeg')
optdepends=('python2-neovim: for Python 2 plugin support (see :help provider-python)'
'python-neovim: for Python 3 plugin support (see :help provider-python)'
EDIT3: I just try to do the same thing on my laptop and I had to manually uninstall libvterm-0.1
, then install libvterm
and the build want well. There's probably a way to handle that in the PKGBUILD, but I don't know how to do so.
I tried @just1602's .SRCINFO
and PKGBUILD
modifications, i.e. primarily changing the depends from libvterm-0.1
to libvterm
package, but compilation still failed with it complaining about only finding libvterm v0.1.4
when trying to run makepkg -si
in the directory 🤔
Error while building
CMake Error at cmake/LibFindMacros.cmake:263 (message):
REQUIRED PACKAGE NOT FOUND
LIBVTERM 0.1.4 was found but version 0.3 is the minimum requirement. This
package is REQUIRED and you need to install it or adjust CMake
configuration in order to continue building nvim.
Relevant CMake configuration variables:
LIBVTERM_INCLUDE_DIR=/usr/include
LIBVTERM_LIBRARY=/usr/lib/libvterm.so
You may use CMake GUI, cmake -D or ccmake to modify the values. Delete
CMakeCache.txt to discard all values and force full re-detection if
necessary.
Call Stack (most recent call first):
cmake/FindLIBVTERM.cmake:10 (libfind_process)
CMakeLists.txt:503 (find_package)
I can also verify that this package fails to build now, can we get the patches by @just1602 implemented?
Pinned Comments
fwalch commented on 2016-07-04 19:52 (UTC) (edited on 2016-07-04 19:54 (UTC) by fwalch)