Bug 283220 - sysutils/vimpager: Update to 2.06.20241028
Summary: sysutils/vimpager: Update to 2.06.20241028
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Zsolt Udvari
URL: https://forums.freebsd.org/threads/ad...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-09 11:50 UTC by Yusuf Yaman
Modified: 2025-04-17 14:17 UTC (History)
2 users (show)

See Also:


Attachments
sysutils/vimpager.patch: work in progress patch (1.98 KB, patch)
2024-12-09 11:56 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager: work in progress patch and also updated (1.76 KB, patch)
2025-01-03 18:55 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Work In Progress patch (2.72 KB, patch)
2025-01-09 13:10 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Work In Progress patch (2.72 KB, patch)
2025-01-09 15:24 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Work In Progress patch (2.72 KB, patch)
2025-01-09 15:25 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Work In Progress patch (2.76 KB, patch)
2025-01-09 15:27 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy}, Adopt port (2.95 KB, patch)
2025-01-09 15:40 UTC, Yusuf Yaman
no flags Details | Diff
PKG install log, flavors are matching with vim (12.44 KB, text/plain)
2025-01-09 15:41 UTC, Yusuf Yaman
no flags Details
PKG install log, flavors are matching with vim (11.44 KB, text/plain)
2025-01-09 15:45 UTC, Yusuf Yaman
no flags Details
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy} (3.54 KB, patch)
2025-01-09 15:50 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy} (4.06 KB, patch)
2025-01-09 15:57 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy} (3.93 KB, patch)
2025-01-09 16:09 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch (3.97 KB, patch)
2025-01-09 16:15 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch (3.80 KB, patch)
2025-01-09 17:55 UTC, Yusuf Yaman
no flags Details | Diff
sysutils/vimpager.patch (3.80 KB, patch)
2025-01-09 18:03 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff
PKG install log, flavors are matching with vim (2.24 KB, text/plain)
2025-03-28 16:30 UTC, Yusuf Yaman
no flags Details
sysutils/vimpager.patch (3.45 KB, patch)
2025-04-14 06:22 UTC, Yusuf Yaman
nxjoseph: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman 2024-12-09 11:50:45 UTC

    
Comment 1 Yusuf Yaman 2024-12-09 11:55:31 UTC
Hi. I wanted to enable clipboard support for vim by installing x11 flavor of vim which is a build of vim with clipboard support and then you need to add a line to .vimrc and it's OK now.

But, I use vimpager instead of less on my system and vimpager depends of console (default flavor of vim) flavor so I had to edit vimpager port's Makefile to change VIM_RUN_DEPENDS to vim:editors/vim-x11 and it said vim-x11 couldn't be found but it still kept on my system (vimpager didn't delete itself while vim-console is not installed), not a good way of doing it but it worked temporarily for me.

I wanted to add flavors to vimpager like vim port has but I can't make it work properly, I mean, when i install one flavor  of vimpager, it doesn't directly install that equal vim flavor. for example, i install vimpager-x11 but it still installs vim-console. They  don't match each other.

I will attach my work in progress patch here.

Thanks in advance.
Comment 2 Yusuf Yaman 2024-12-09 11:56:16 UTC
Created attachment 255741 [details]
sysutils/vimpager.patch: work in progress patch
Comment 3 Yusuf Yaman 2024-12-11 16:37:58 UTC
I found a workaround for keeping any vim flavor while vimpager should be kept. Locking vimpager with pkg does not uninstall vimpager when you install a flavor of editors/vim.
Comment 4 Yusuf Yaman 2024-12-15 19:09:47 UTC
This temporary workaround does affect "pkg check -ad", it says: "vim should be installed because it's wanted by vimpager".
Comment 5 Yusuf Yaman 2025-01-03 18:55:08 UTC
Created attachment 256387 [details]
sysutils/vimpager: work in progress patch and also updated
Comment 6 Yusuf Yaman 2025-01-09 13:10:57 UTC
Created attachment 256574 [details]
sysutils/vimpager.patch: Work In Progress patch

When I use # make FLAVOR=x11, it does try to build x11 flavor of editors/vim but when I package all flavors of sysutils/vimpager and editors/vim to /usr/ports/packages local repository and then install any flavor of sysutils/vimpager with pkg, it still depends on vanilla editors/vim. It doesn't match with editors/vim's flavor. I wonder if this would make a problem FreeBSD build system builds it when my patch that improperly (?) added flavors support to sysutils/vimpager. The port has no maintainer and if I could get this flavor support working properly (?), I would want to take maintainership of this port.

I found out that a port does it like that below but in just one RUN_DEPENDS.
Code:

# cat ../../output
./editors/cream/Makefile:RUN_DEPENDS=   ${LOCALBASE}/bin/gvim:editors/vim@gtk3
# pkg ins cream
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating custom repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01
Fetching data.pkg: 100%    5 KiB   4.7kB/s    00:01
Processing entries: 100%
The provides database is up-to-date.
custom repository update completed. 17 packages processed.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        cream: 0.43 [FreeBSD]
        vim-gtk3: 9.1.0764 [FreeBSD]

Number of packages to be installed: 2

The process will require 43 MiB more space.
10 MiB to be downloaded.

Proceed with this action? [y/N]:

# pkg ins -r custom vimpager-x11
Updating custom repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01
Fetching data.pkg: 100%    5 KiB   4.7kB/s    00:01
Processing entries: 100%
The provides database is up-to-date.
custom repository update completed. 17 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        vim: 9.1.0915 [custom]
        vimpager-x11: 2.06.20241028 [custom]

Number of packages to be installed: 2

The process will require 41 MiB more space.

Proceed with this action? [y/N]:
Comment 7 Yusuf Yaman 2025-01-09 15:24:46 UTC
Created attachment 256575 [details]
sysutils/vimpager.patch: Work In Progress patch
Comment 8 Yusuf Yaman 2025-01-09 15:25:52 UTC
Created attachment 256576 [details]
sysutils/vimpager.patch: Work In Progress patch

Added NeoVim to comment back (also added neovim support back) to notice users that vimpager is supporting neovim too
Comment 9 Yusuf Yaman 2025-01-09 15:27:52 UTC
Created attachment 256577 [details]
sysutils/vimpager.patch: Work In Progress patch

attachment is reuploaded, previous attachment was same with old one.
Comment 10 Yusuf Yaman 2025-01-09 15:40:09 UTC
Created attachment 256578 [details]
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy}, Adopt port
Comment 11 Yusuf Yaman 2025-01-09 15:41:36 UTC
Created attachment 256579 [details]
PKG install log, flavors are matching with vim
Comment 12 Yusuf Yaman 2025-01-09 15:45:06 UTC
Created attachment 256580 [details]
PKG install log, flavors are matching with vim

Script ran with sh for better readability
Comment 13 Yusuf Yaman 2025-01-09 15:50:14 UTC
Created attachment 256581 [details]
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy}

This is a git patch.
Comment 14 Yusuf Yaman 2025-01-09 15:57:43 UTC
Created attachment 256582 [details]
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy}

Updated pkg-plist.
Added ChangeLog to commit message.

- Fixes for vimcat.
- Fix vim bug: hang on blank Ins in scripts.
- Added flavor support to enable compatibility
  with flavors of editors/vim.
- Pet port{fmt,lint,clippy}.
- Submitter becomes maintainer.

ChangeLog:
https://github.com/rkitover/vimpager/compare/85004fd...ce697c4cf34549796e1b533be3e337ca24b62c09
Comment 15 Yusuf Yaman 2025-01-09 16:09:44 UTC
Created attachment 256584 [details]
sysutils/vimpager.patch: Update to 20241028, Add flavor support to enable compatibility with editors/vim flavors, Pet port{fmt,lint,clipy}

fixed stage-qa errors.

diff --git a/sysutils/vimpager/Makefile b/sysutils/vimpager/Makefile
index 2e5dfae627ba..1235cbc210da 100644
--- a/sysutils/vimpager/Makefile
+++ b/sysutils/vimpager/Makefile
@@ -30,6 +30,12 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 FLAVORS=	console gtk2 gtk3 motif tiny x11
 FLAVOR?=	${FLAVORS:[1]}
 
+gtk2_PKGNAMESUFFIX=	-gtk2
+gtk3_PKGNAMESUFFIX=	-gtk3
+motif_PKGNAMESUFFIX=	-motif
+tiny_PKGNAMESUFFIX=	-tiny
+x11_PKGNAMESUFFIX=	-x11
+
 USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	rkitover
@@ -57,15 +63,10 @@ NEOVIM_RUN_DEPENDS=	${LOCALBASE}/bin/nvim:editors/neovim
 
 .if ${PORT_OPTIONS:MVIM}
 console_RUN_DEPENDS=	${LOCALBASE}/bin/vim:editors/vim@console
-gtk2_PKGNAMESUFFIX=	-gtk2
 gtk2_RUN_DEPENDS=	${LOCALBASE}/bin/vim:editors/vim@gtk2
-gtk3_PKGNAMESUFFIX=	-gtk3
 gtk3_RUN_DEPENDS=	${LOCALBASE}/bin/vim:editors/vim@gtk3
-motif_PKGNAMESUFFIX=	-motif
 motif_RUN_DEPENDS=	${LOCALBASE}/bin/vim:editors/vim@motif
-tiny_PKGNAMESUFFIX=	-tiny
 tiny_RUN_DEPENDS=	${LOCALBASE}/bin/vim:editors/vim@tiny
-x11_PKGNAMESUFFIX=	-x11
 x11_RUN_DEPENDS=	${LOCALBASE}/bin/vim:editors/vim@x11
 .endif
Comment 16 Yusuf Yaman 2025-01-09 16:15:39 UTC
Created attachment 256585 [details]
sysutils/vimpager.patch

Fixed patch.
Comment 17 Yusuf Yaman 2025-01-09 17:55:04 UTC
Created attachment 256586 [details]
sysutils/vimpager.patch

Used a short GH_TAGNAME commit hash.
Removed extinct CONFLICTS_INSTALL line.
Port is working correctly for me.

diff --git a/sysutils/vimpager/Makefile b/sysutils/vimpager/Makefile
index 1235cbc210da..5d5a3bd7872c 100644
--- a/sysutils/vimpager/Makefile
+++ b/sysutils/vimpager/Makefile
@@ -39,11 +39,10 @@ x11_PKGNAMESUFFIX=	-x11
 USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	rkitover
-GH_TAGNAME=	ce697c4cf34549796e1b533be3e337ca24b62c09
+GH_TAGNAME=	ce697c4
 
 # Register conflicts with all other flavors
-CONFLICTS_INSTALL=	${FLAVORS:N${FLAVOR}:S/^/vim-/} \
-			${FLAVORS:N${FLAVOR}:S/^/vimpager-/}
+CONFLICTS_INSTALL=	${FLAVORS:N${FLAVOR}:S/^/vimpager-/}
 
 NO_ARCH=	yes
 
diff --git a/sysutils/vimpager/distinfo b/sysutils/vimpager/distinfo
index 956c9e4677ff..17be52c72c7c 100644
--- a/sysutils/vimpager/distinfo
+++ b/sysutils/vimpager/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1735906352
-SHA256 (rkitover-vimpager-2.06.20241028-ce697c4cf34549796e1b533be3e337ca24b62c09_GH0.tar.gz) = 98531800fff14aa0f9c8a23e3b0970cc7c95b42318438e4d0a90fc3373dace97
-SIZE (rkitover-vimpager-2.06.20241028-ce697c4cf34549796e1b533be3e337ca24b62c09_GH0.tar.gz) = 164351
+TIMESTAMP = 1736445105
+SHA256 (rkitover-vimpager-2.06.20241028-ce697c4_GH0.tar.gz) = 03f5bb333f128a6c66a34df8f4c29f9c5ed16145d9f87788bb6ddea62cdc584d
+SIZE (rkitover-vimpager-2.06.20241028-ce697c4_GH0.tar.gz) = 164295
Comment 18 Yusuf Yaman 2025-01-09 18:03:03 UTC
Created attachment 256588 [details]
sysutils/vimpager.patch

Just removed one asterisk from git commit message.
Comment 19 Yusuf Yaman 2025-01-13 17:47:38 UTC
It passes poudriere testport on 14.1-RELEASE.
Comment 20 Yusuf Yaman 2025-03-28 16:30:48 UTC
Created attachment 259127 [details]
PKG install log, flavors are matching with vim
Comment 21 Zsolt Udvari freebsd_committer freebsd_triage 2025-04-14 05:44:59 UTC
Hi Yusuf,
thanks for patch. I'd suggest NEOVIM should as a flavor not an option so can remove the OPTIONS.
In the comments can use ${FLAVOR:U} doesn't need many ifs and the PKGNAMESUFFIX too. Maybe the information about flavor in comment isn't needed.
Comment 22 Yusuf Yaman 2025-04-14 06:21:40 UTC
(In reply to Zsolt Udvari from comment #21)
Hi, Zsolt.


> I'd suggest NEOVIM should as a flavor not an option so can remove the OPTIONS.

There is DOCS option, should i remove it too? I added neovim as flavor instead an option.

> In the comments can use ${FLAVOR:U} doesn't need many ifs

Okay, I just used ${FLAVOR:U} in the only one comment and it handled other comments too.

> and the PKGNAMESUFFIX too.

Portlint didn't like this change and warned me, i think it's fine that way.  

> Maybe the information about flavor in comment isn't needed.

I think it does no harm.
Comment 23 Yusuf Yaman 2025-04-14 06:22:25 UTC
Created attachment 259540 [details]
sysutils/vimpager.patch
Comment 24 Zsolt Udvari freebsd_committer freebsd_triage 2025-04-17 14:17:38 UTC
(In reply to Yusuf Yaman from comment #23)
Thanks.
I tried to build:
WARNING: pandoc is not available, man pages and html will not be generated. If you want to install the man pages and html, install pandoc and re-run make.

Would you like add pandoc to DOCS_RUN_DEPENDS? And for testing, devel/bats-core (IMHO should work instead of bats).