Bug 195753 - [patch] deskutils/vboxgtk - cannot create a VM via vboxgtk
Summary: [patch] deskutils/vboxgtk - cannot create a VM via vboxgtk
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-06 17:56 UTC by kappei84
Modified: 2017-03-04 14:40 UTC (History)
2 users (show)

See Also:


Attachments
VboxGtk uses the last Oracle VBoxManage API set when creating a VM (3.04 KB, patch)
2014-12-06 17:56 UTC, kappei84
no flags Details | Diff
vboxgtk dao patch (3.13 KB, patch)
2015-07-26 19:01 UTC, kappei84
no flags Details | Diff
vboxgtk gui patch (2.26 KB, patch)
2015-07-27 07:06 UTC, kappei84
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kappei84 2014-12-06 17:56:36 UTC
Created attachment 150275 [details]
VboxGtk uses the last Oracle VBoxManage API set when creating a VM

To whom it may concern,

I think that the vboxgtk port is broken as it makes use of an old interface contract for VBoxManage APIs. Some of the methods used in the python code are either not existing anymore or the parameter set has changed.

Many users from other distributions (e.g. Linux) had the same problem as mine. In particular, when one tries to create a VM, the following error message is displayed "Could not create the VM - This parameter must be a string or Unicode object". I tried to contact the creator of the application to submit my patch and fix the various issues, but I have never received an answer. 

I had several tests on my local machine and the code seems to be stable and working. It would be nice to see how this is working on a larger scale and more testing. 

Attached is the patch to fix the error.
Regards,
Daniele Mazzotti.
Comment 1 John Marino freebsd_committer freebsd_triage 2015-02-06 16:28:20 UTC
okay.
The port is unmaintained.
Generally you should provide a patch to the port, not a patch to the software (in other words, a patch that would add a patch to the software in the files/ directory).

However, I'll just assume this works and promote the PR to the next level.
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2015-02-09 21:27:00 UTC
I tried to build the port with the patch as files/patch-vboxgtk_dao.py,
but the port itself is failing. For example see

http://people.freebsd.org/~pi/logs/deskutils__vboxgtk-93a-1423502811.txt
Comment 3 kappei84 2015-02-10 19:44:41 UTC
Hi,

in my opinion the problem is not in the patch. The error seems to be related to a missing file:

error: can't copy 'data/vboxgtk.desktop': doesn't exist or not a regular file

If I look at the directory structure I can see a file named 'vboxgtk.desktop.in' under /data. Maybe this is just existing on my PC, but this seems to explain the problem.

Perhaps the makefile needs to be fixed as well?

Cheers,
Daniele.
Comment 4 kappei84 2015-07-26 19:01:27 UTC
Created attachment 159266 [details]
vboxgtk dao patch
Comment 5 kappei84 2015-07-26 19:22:41 UTC
In order to compile the port:


1. paste the patches 'vbox gtk dao patch' and 'vbox gtk gui patch' under /usr/ports/deskutils/vboxgtk/files;
2. as root cd to /usr/ports/deskutils/vboxgtk/;
3. make clean (not necessary);
4. make install clean (if the port has never been installed before); 
5. make deinstall && make install clean (if the port was already installed);
6. vboxgtk.

The list of above mentioned steps worked in my case. The port built fine and run fine too.

Daniele.
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-26 21:41:11 UTC
I tried the patch by putting it in files/patch-vboxgtk-dao.py, but it does not apply.
Comment 7 kappei84 2015-07-27 07:06:58 UTC
Created attachment 159298 [details]
vboxgtk gui patch
Comment 8 kappei84 2015-07-27 07:08:46 UTC
I have added the second patch (I had an issue with the upload on bugzilla yesterday evening).

@Kurt: what is the error you get?
Comment 9 kappei84 2015-07-28 18:25:59 UTC
(In reply to Kurt Jaeger from comment #6)

I have added the second patch (I had an issue with the upload on bugzilla yesterday evening).

What is the error you get?