[Bug 283220] sysutils/vimpager: Is it possible to add flavors?

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Jan 2025 13:10:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283220

Yusuf Yaman <nxjoseph@protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #256387|0                           |1
        is obsolete|                            |

--- Comment #6 from Yusuf Yaman <nxjoseph@protonmail.com> ---
Created attachment 256574
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256574&action=edit
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]:

-- 
You are receiving this mail because:
You are the assignee for the bug.