Bug 271085 - multimedia/obs-studio conflict with neovim due to luajit dependency
Summary: multimedia/obs-studio conflict with neovim due to luajit dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-26 19:52 UTC by keltir
Modified: 2023-07-16 16:57 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Replace "LIB_DEPENDS_${ARCH}=libluajit-5.1.so:lang/luajit" with "USES=luajit" (1.02 KB, patch)
2023-07-03 22:45 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description keltir 2023-04-26 19:52:26 UTC
Hello,

I have obs-studio installed and, but I can't install neovim because:
"pkg install neovim
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (2 conflicting)
  - luajit-devel-2.1.0.20230416_1 conflicts with luajit-2.0.5_6 on /usr/local/bin/luajit
  - luajit-devel-2.1.0.20230416_1 conflicts with luajit-2.0.5_6 on /usr/local/bin/luajit
Checking integrity... done (0 conflicting)
The following 12 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
        luajit: 2.0.5_6
        obs-studio: 29.0.2

New packages to be INSTALLED:
        libtermkey: 0.22
        libvterm: 0.3.1
        luajit-devel: 2.1.0.20230416_1
        luv: 1.44.2.1_1
        msgpack-c: 6.0.0
        neovim: 0.9.0
        tree-sitter: 0.20.8
        unibilium: 2.1.1

Installed packages to be REINSTALLED:
        libltdl-2.4.7
        pkg-1.19.1_1

Number of packages to be removed: 2
Number of packages to be installed: 8
Number of packages to be reinstalled: 2

The process will require 5 MiB more space. "

I asked on the discord server and got the following reply:
"neovim's port Makefile has a USES=luajit line, which is the common way to depend on luajit.  It makes the port depend on luajit-devel by default (or luajit-openresty for powerpc64).   The obs-studio port has a bunch of hardcoded LIB_DEPENDS_* lines where it depends on luajit instead of luajit-devel.  That should probably be removed and replaced with USES=luajit"

So I decided to report this issue.
Please take a look if you have time.

Thanks!
Comment 1 keltir 2023-04-26 22:14:06 UTC
I changed Makefile in obs-studio port and build a package in jails. then installed it alongside neovim on my system.
both programs seems to be working for me.
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2023-07-03 22:45:30 UTC
Created attachment 243190 [details]
Replace "LIB_DEPENDS_${ARCH}=libluajit-5.1.so:lang/luajit" with "USES=luajit"

Same was discussed today in IRC (#freebsd @ Libera.Chat).
As result I made patch and tested build in poudriere 13.2 amd64.
Then I search in bugzila and found this PR.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2023-07-15 10:52:45 UTC
ping
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2023-07-16 16:52:54 UTC
Committed.

Thanks for the patch!
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-07-16 16:53:57 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f4e2e277e3c807fa9099e3a586bf284f4eb642c

commit 8f4e2e277e3c807fa9099e3a586bf284f4eb642c
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-07-16 16:51:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-16 16:51:33 +0000

    multimedia/obs-studio: Fix conflict caused by luajit

    USES=luajit resolves it.

    PR:             271085

 multimedia/obs-studio/Makefile | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-07-16 16:53:58 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7c673ea6efffaf1b20eed505f8c16ad506f818fb

commit 7c673ea6efffaf1b20eed505f8c16ad506f818fb
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-07-16 16:51:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-16 16:53:20 +0000

    multimedia/obs-studio: Fix conflict caused by luajit

    USES=luajit resolves it.

    PR:             271085
    (cherry picked from commit 8f4e2e277e3c807fa9099e3a586bf284f4eb642c)

 multimedia/obs-studio/Makefile | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-07-16 16:57:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ebaa79bde4ad4c9fbb6ca41cb3430865b8c55752

commit ebaa79bde4ad4c9fbb6ca41cb3430865b8c55752
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-16 16:55:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-16 16:55:41 +0000

    multimedia/obs-studio: Bump

    PR:             271085

 multimedia/obs-studio/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 8 commit-hook freebsd_committer freebsd_triage 2023-07-16 16:57:01 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=92f051ee10af2d46fa20fa2508417d8ca4dcf57b

commit 92f051ee10af2d46fa20fa2508417d8ca4dcf57b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-16 16:55:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-16 16:56:30 +0000

    multimedia/obs-studio: Bump

    PR:             271085
    (cherry picked from commit ebaa79bde4ad4c9fbb6ca41cb3430865b8c55752)

 multimedia/obs-studio/Makefile | 1 +
 1 file changed, 1 insertion(+)