| Summary: | emulators/virtualbox-ose: VBoxSharedClipboard.so required for non-X11 builds | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Derek Schrock <dereks> | ||||||||
| Component: | Individual Port(s) | Assignee: | Virtualbox Team (Nobody) <vbox> | ||||||||
| Status: | Closed FIXED | ||||||||||
| Severity: | Affects Some People | CC: | madpilot, vbox | ||||||||
| Priority: | --- | Keywords: | needs-qa | ||||||||
| Version: | Latest | Flags: | madpilot:
maintainer-feedback+
madpilot: merge-quarterly+ |
||||||||
| Hardware: | Any | ||||||||||
| OS: | Any | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Derek Schrock
2022-02-05 04:49:32 UTC
Found out that setting 'VBOX_WITH_SHARED_CLIPBOARD = 0' is incorrect.
'VBOX_WITH_SHARED_CLIPBOARD=' needs added to LocalConfig.kmk to set it as undefined.
With this:
+post-patch-X11-off:
+ @${ECHO_CMD} 'VBOX_WITH_SHARED_CLIPBOARD=' >> ${WRKSRC}/LocalConfig.kmk
+
VBoxSharedClipboard.so is not built.
vboxmanage doesn't have any clipboard options as well.
It appears to be fully disabled now.
I'm wondering why when building with --enable-headless and --disable-qt why shared clipboard support is still built. It seems that there are parts that still use it even though you don't have a GUI. I'm still researching this. But it's possible that it shouldn't be disabled and included to the base package?
clipboard support is still enabled since vbox still provides access to the console via VRDP method. So I believe the original issue is still in play: VBoxSharedClipboard.so should be included unconditionally. Created attachment 231572 [details]
Always include VBoxSharedClipboard.so
VBoxSharedClipboard.so is requires for headless/VRDP access as well.
ping? Thanks Derek, can you: - Confirm the build passes poudriere in both X11 ON and OFF cases - Bump the port PORTREVISION Created attachment 232921 [details]
Always include VBoxSharedClipboard.so (with rev bump)
Yes, with X11 on and X11 (including QT5, NLS) off. File is included in both packages. Tested with poudriere, 13amd64, interactive jail.
root@13amd64-testing-vbox:~ # pkg query '%Ok=%Ov' virtualbox-ose | fgrep X11 ; pkg info -l virtualbox-ose | fgrep VBoxSharedClipboard.so
X11=on
/usr/local/lib/virtualbox/VBoxSharedClipboard.so
root@13amd64-testing-vbox:~ # pkg query '%Ok=%Ov' virtualbox-ose | fgrep X11 ; pkg info -l virtualbox-ose | fgrep VBoxSharedClipboard.so
X11=off
/usr/local/lib/virtualbox/VBoxSharedClipboard.so
Bumped revision.
Created attachment 234694 [details]
Always include VBoxSharedClipboard.so v3 rebased on main (62c09d7c530)
Rebased previous patch on main (62c09d7c530)
THanks for the patch. I'm testing the upgrade of Virtualbox to the recently released new version. I'll see if I can include this with the update. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5f02996b2b84deafaca8c5d6c3a2486695cb67ef commit 5f02996b2b84deafaca8c5d6c3a2486695cb67ef Author: Derek Schrock <dereks@lifeofadishwasher.com> AuthorDate: 2022-07-21 08:52:18 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2022-07-21 08:59:19 +0000 emulators/virtualbox-ose: Add VBoxSharedClipboard.so to non X11 builds This library is built when X11 is disabled too, since the functionality can also be used by remote protocols. PR: 261729 MFH: 2022Q3 emulators/virtualbox-ose/Makefile | 1 + emulators/virtualbox-ose/pkg-plist | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) Patch committed. Thanks! A commit in branch 2022Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e82b9ce753e0a15cf5d703f8a90d132b95b7ac52 commit e82b9ce753e0a15cf5d703f8a90d132b95b7ac52 Author: Derek Schrock <dereks@lifeofadishwasher.com> AuthorDate: 2022-07-21 08:52:18 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2022-07-21 09:03:07 +0000 emulators/virtualbox-ose: Add VBoxSharedClipboard.so to non X11 builds This library is built when X11 is disabled too, since the functionality can also be used by remote protocols. PR: 261729 MFH: 2022Q3 (cherry picked from commit 5f02996b2b84deafaca8c5d6c3a2486695cb67ef) emulators/virtualbox-ose/Makefile | 1 + emulators/virtualbox-ose/pkg-plist | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) |