Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435724 - =net-misc/gns3-0.8.3 version bump
Summary: =net-misc/gns3-0.8.3 version bump
Status: RESOLVED DUPLICATE of bug 448538
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ján Bednár
URL: www.gns3.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 09:10 UTC by Aaron Bauman (RETIRED)
Modified: 2013-01-18 09:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (gns3-0.8.3.ebuild,1.16 KB, text/plain)
2012-09-21 09:11 UTC, Aaron Bauman (RETIRED)
Details
illegal install patch (gns3-0.8.3_install_path.patch,1.74 KB, patch)
2012-09-21 09:12 UTC, Aaron Bauman (RETIRED)
Details | Diff
gns3-0.8.3.ebuild (gns3-0.8.3.ebuild,1.30 KB, text/plain)
2012-09-24 12:15 UTC, Aaron Bauman (RETIRED)
Details
install path fix (gns3-0.8.3_install_path.patch,1.74 KB, patch)
2012-09-24 12:16 UTC, Aaron Bauman (RETIRED)
Details | Diff
Defaults.py Patch (gns3-0.8.3_defaults.patch,2.43 KB, text/plain)
2012-09-24 12:17 UTC, Aaron Bauman (RETIRED)
Details
latest ebuild with pemu support (gns3-0.8.3.ebuild,1.65 KB, text/plain)
2012-09-24 13:50 UTC, Aaron Bauman (RETIRED)
Details
dependency change (gns3-0.8.3.ebuild,1.65 KB, text/plain)
2012-09-24 13:58 UTC, Aaron Bauman (RETIRED)
Details
gns3-0.8.3.ebuild (gns3-0.8.3.ebuild,1.65 KB, text/plain)
2012-09-24 13:58 UTC, Aaron Bauman (RETIRED)
Details
install path fix (gns3-0.8.3_install_path.patch,2.15 KB, text/plain)
2012-09-24 16:14 UTC, Aaron Bauman (RETIRED)
Details
gns3-0.8.3.ebuild (gns3-0.8.3.ebuild,1.71 KB, text/plain)
2012-09-24 17:36 UTC, Aaron Bauman (RETIRED)
Details
Ebuild with updated dependencies (gns3-0.8.3.ebuild,1.76 KB, text/plain)
2012-10-27 20:26 UTC, Ondrej Filip
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Bauman (RETIRED) gentoo-dev 2012-09-21 09:10:47 UTC
GNS3 0.8.3 has been released with many new features and bug fixes.  I have attempted to modify the current 0.8.2 in Portage and have gotten as far as the following error upon running gns3.

Banana gns3 # gns3
---------Traceback lines (saved in exception.log)----------
Traceback (most recent call last):

  File "/usr/bin/gns3", line 83, in <module>
    import GNS3.Main

  File "/usr/lib64/python2.7/site-packages/GNS3/Main.py", line 65, in <module>
    app.run(file)

  File "/usr/lib64/python2.7/site-packages/GNS3/Application.py", line 446, in run
    confo.vboxwrapper_path = ConfDB().get('VBox/vboxwrapper_path', Defaults.VBOXWRAPPER_DEFAULT_PATH)

AttributeError: 'module' object has no attribute 'VBOXWRAPPER_DEFAULT_PATH'

-----------------------------------------------------------

Attached is my current ebuild and patches.  Mostly modified from the current Portage tree.
Comment 1 Aaron Bauman (RETIRED) gentoo-dev 2012-09-21 09:11:56 UTC
Created attachment 324476 [details]
ebuild
Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2012-09-21 09:12:34 UTC
Created attachment 324478 [details, diff]
illegal install patch
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2012-09-21 10:28:55 UTC
Able to start GNS3 by commenting out the following lines in /usr/lib64/python2.7/site-packages/GNS3/Application.py 


#        confo.vboxwrapper_path = ConfDB().get('VBox/vboxwrapper_path', Defaults.VBOXWRAPPER_DEFAULT_PATH)
#        confo.vboxwrapper_workdir = ConfDB().get('VBox/vboxwrapper_working_directory', Defaults.VBOXWRAPPER_DEFAULT_WORKDIR)


#        confo.vboxwrapper_path = os.path.expandvars(os.path.expanduser(confo.vboxwrapper_path))
#        confo.vboxwrapper_workdir = os.path.expandvars(os.path.expanduser(confo.vboxwrapper_workdir))


It breaks the UI though such as Edit->Prefences.  Hope this helps any developer who may pick this up before I figure it out!
Comment 4 Aaron Bauman (RETIRED) gentoo-dev 2012-09-21 14:58:49 UTC
Found that the logic in Defaults.py is not assigning a proper value to the VBOXWRAPPER_DEFAULT_PATH variable.  The following allows the program to run but vboxapi is not loading which I believe is an issue with my kernel sources.  Will confirm this later.

line 86 and beyond of Defaults.py


# Default path to vboxwrapper
#if sys.platform.startswith('win'):
#    VBOXWRAPPER_DEFAULT_PATH = unicode('vboxwrapper.exe')
#elif sys.platform.startswith('darwin') and hasattr(sys, "frozen"):
#    VBOXWRAPPER_DEFAULT_PATH = os.getcwdu() + os.sep + '../Resources/VBoxWrapper/Contents/MacOS/VBoxWrapper'
#else:
    # look for vboxwrapper in the current working directory
    #vboxwrapper_path = os.getcwdu() + os.sep + 'vboxwrapper/vboxwrapper.py'
    #if os.path.exists(qemuwrapper_path):
    #    VBOXWRAPPER_DEFAULT_PATH = vboxwrapper_path
    #elif platform.system() == 'Linux':
QEMUWRAPPER_DEFAULT_PATH = unicode("/usr/libexec/gns3/qemuwrapper.py")
    #else:
VBOXWRAPPER_DEFAULT_PATH = unicode("/usr/libexec/gns3/vboxwrapper.py") # libexec is standard on BSD platforms
Comment 5 Aaron Bauman (RETIRED) gentoo-dev 2012-09-21 15:06:26 UTC
as a note on the previous comment uncommenting that logic will cause the 

---------Traceback lines (saved in exception.log)----------
Traceback (most recent call last):

  File "/usr/bin/gns3", line 83, in <module>
    import GNS3.Main

  File "/usr/lib64/python2.7/site-packages/GNS3/Main.py", line 65, in <module>
    app.run(file)

  File "/usr/lib64/python2.7/site-packages/GNS3/Application.py", line 446, in run
    confo.vboxwrapper_path = ConfDB().get('VBox/vboxwrapper_path', Defaults.VBOXWRAPPER_DEFAULT_PATH)

AttributeError: 'module' object has no attribute 'VBOXWRAPPER_DEFAULT_PATH'
Comment 6 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 12:15:38 UTC
Created attachment 324808 [details]
gns3-0.8.3.ebuild

updated ebuild.
Comment 7 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 12:16:46 UTC
Created attachment 324810 [details, diff]
install path fix

fixes illegal install path.  taking from 0.8.2 in Portage tree
Comment 8 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 12:17:24 UTC
Created attachment 324812 [details]
Defaults.py Patch

Patch fixes VBOX and QEMU defaults not being properly detected.
Comment 9 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 13:50:32 UTC
Created attachment 324836 [details]
latest ebuild with pemu support

adds support for pemu
Comment 10 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 13:58:03 UTC
Created attachment 324838 [details]
dependency change

changed qemu dependency to 1.2.0 vice >= as this pulled in qemu-9999
Comment 11 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 13:58:38 UTC
Created attachment 324840 [details]
gns3-0.8.3.ebuild

changed qemu dependency to 1.2.0 vice >= as this pulled in qemu-9999
Comment 12 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 16:14:06 UTC
Created attachment 324852 [details]
install path fix

updated install patch to fix wrapper_dir in setup.py.
Comment 13 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 17:36:23 UTC
Created attachment 324860 [details]
gns3-0.8.3.ebuild

add virtualbox dependency
Comment 14 Aaron Bauman (RETIRED) gentoo-dev 2012-09-24 19:19:21 UTC
Still working on getting vboxapi to be recognized by GNS3.  Everything else is good.  Please add to Portage for testing.
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2012-09-25 08:41:46 UTC
I haven't heard of Jan for a while. I will wait for a little bit longer otherwise I will ask for a new maintainer
Comment 16 Ján Bednár 2012-09-25 12:01:44 UTC
(In reply to comment #15)
> I haven't heard of Jan for a while. I will wait for a little bit longer
> otherwise I will ask for a new maintainer

I've moved to a foreign country to a different customer and my Gentoo PC is in box for past couple of months. But I'm still here and from next Monday I should have new flat with internet access ready. Then I will unpack my Gentoo PC and check ebuild and patches from Aaron.
Thank you Aaron.
Comment 17 Aaron Bauman (RETIRED) gentoo-dev 2012-09-25 15:31:02 UTC
Jan, if all is well I will gladly assist or takeover the maintaining of GNS3.
Comment 18 Ondrej Filip 2012-10-27 20:26:15 UTC
Created attachment 327546 [details]
Ebuild with updated dependencies

Thank you Aaron that you took the time to update the ebuild. I recommend altering dependencies for virtualbox so that virtualbox-bin version is accepted.
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2012-10-28 09:26:03 UTC
(In reply to comment #18)
> Created attachment 327546 [details]
> Ebuild with updated dependencies
> 
> Thank you Aaron that you took the time to update the ebuild. I recommend
> altering dependencies for virtualbox so that virtualbox-bin version is
> accepted.

A couple of review comments:

src_unpack() {
 unpack ${A}
}

is pointless. This is the default

Move the ebuild to EAPI4 and drop all the || dies after the do* commands. Then we can commit it :)
Comment 20 Aaron Bauman (RETIRED) gentoo-dev 2012-12-25 15:44:55 UTC
Markos, sounds great.  I will modify the ebuild for 0.8.3.1 with your suggestions.
Comment 21 Markos Chandras (RETIRED) gentoo-dev 2013-01-18 09:09:41 UTC

*** This bug has been marked as a duplicate of bug 448538 ***