Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Feb 2022 04:49:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 261729] emulators/virtualbox-ose: VBoxSharedClipboard.so required for non-X11 builds
Message-ID:  <bug-261729-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261729

            Bug ID: 261729
           Summary: emulators/virtualbox-ose: VBoxSharedClipboard.so
                    required for non-X11 builds
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: vbox@FreeBSD.org
          Reporter: dereks@lifeofadishwasher.com
          Assignee: vbox@FreeBSD.org
             Flags: maintainer-feedback?(vbox@FreeBSD.org)

When built without X11 support VBoxSharedClipboard.so is not included.=20
However, when trying to edit a running VM in phpvirtualbox ClipboardMode
setting will fail.

  ...
  00:00:37.304454 SQW03    API method name:=20=20=20=20=20=20=20=20=20=20=20
IMachine::COMSETTER(ClipboardMode)
  00:00:37.304474 SQW03    API return code:            0x80004005
(NS_ERROR_FAILURE)
  ...

You can simulate this by running 'VBoxManage controlvm <VM> clipboard mode
disabled':

  $ VBoxManage controlvm <VMNAME> clipboard mode disabled=20=20=20=20=20=20=
=20=20
  VBoxManage: error: Code NS_ERROR_FAILURE (0x80004005) - Operation failed
(extended info not available)=20=20=20=20=20=20=20=20
  VBoxManage: error: Context: "COMSETTER(ClipboardMode)(mode)" at line 543 =
of
file VBoxManageControlVM.cpp

At some point vbox is trying to load VBoxSharedClipboard extension service.=
=20=20
Copying VBoxSharedClipboard.so from the FreeBSD repo package to
/usr/local/lib/virtualbox/ and reload the VM the modify to the running VM
applies without issue.  Is is also true when running the above with the pac=
kage
from FreeBSD pkg repo with the default options (this has X11 set).=20

With that said should VBoxSharedClipboard.so from pkg-plist be unconditiona=
lly
added?

  -%%X11%%lib/virtualbox/VBoxSharedClipboard.so
  +lib/virtualbox/VBoxSharedClipboard.so

There are ifdefs to not build code for clipboardboard support and make acce=
ss
to it VERR_NOT_IMPLEMENTED however it appears to still build even with
Config.kmk and LocalConfig.kmk setting VBOX_WITH_SHARED_CLIPBOARD =3D 0.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261729-7788>