Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618630 - net-misc/gns3-server-2.0 version bump
Summary: net-misc/gns3-server-2.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://docs.gns3.com/1jtdTQAcKa7JmQT...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-16 08:55 UTC by needle
Modified: 2017-07-10 00:40 UTC (History)
1 user (show)

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


Attachments
gns3-server-2.0.2.ebuild (gns3-server-2.0.2.ebuild,1.68 KB, text/plain)
2017-06-11 21:25 UTC, Kenton Groombridge
Details
gns3-server-setup.py-exclude-tests.patch (gns3-server-setup.py-exclude-tests.patch,416 bytes, patch)
2017-06-11 21:27 UTC, Kenton Groombridge
Details | Diff
gns3-gui-2.0.2.ebuild (gns3-gui-2.0.2.ebuild,1.27 KB, text/plain)
2017-06-11 21:27 UTC, Kenton Groombridge
Details
net-misc/ubridge-0.9.11.ebuild (ubridge-0.9.11.ebuild,732 bytes, text/plain)
2017-06-11 21:28 UTC, Kenton Groombridge
Details
ubridge-Makefile-fixup.patch (ubridge-Makefile-fixup.patch,915 bytes, patch)
2017-06-11 21:29 UTC, Kenton Groombridge
Details | Diff
dynamips-0.2.16.ebuild (dynamips-0.2.16.ebuild,844 bytes, text/plain)
2017-06-11 21:30 UTC, Kenton Groombridge
Details
dynamips-0.2.16-build.log (dynamips-0.2.16-build.log,2.15 KB, text/plain)
2017-06-14 14:02 UTC, needle
Details
dynamips-0.2.16-build.log (dynamips-0.2.16-build.log,2.15 KB, text/x-log)
2017-06-14 14:04 UTC, needle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description needle 2017-05-16 08:55:02 UTC
GNS3 version 2.0 has been released at 2-nd May.
https://docs.gns3.com/1jtdTQAcKa7JmQTNH2LoxQmOYalts7O0urmZ9CNnoEpU/index.html

Please update the ebuild.
Thank you.
Comment 1 Kenton Groombridge 2017-06-11 21:25:49 UTC
Created attachment 476116 [details]
gns3-server-2.0.2.ebuild

I am not an ebuild expert, but I think these are pretty close to being good to go. Also included the newest dynamips.
Comment 2 Kenton Groombridge 2017-06-11 21:27:21 UTC
Created attachment 476118 [details, diff]
gns3-server-setup.py-exclude-tests.patch
Comment 3 Kenton Groombridge 2017-06-11 21:27:56 UTC
Created attachment 476120 [details]
gns3-gui-2.0.2.ebuild
Comment 4 Kenton Groombridge 2017-06-11 21:28:43 UTC
Created attachment 476122 [details]
net-misc/ubridge-0.9.11.ebuild
Comment 5 Kenton Groombridge 2017-06-11 21:29:06 UTC
Created attachment 476124 [details, diff]
ubridge-Makefile-fixup.patch
Comment 6 Kenton Groombridge 2017-06-11 21:30:34 UTC
Created attachment 476126 [details]
dynamips-0.2.16.ebuild

Latest version of dynamips
Comment 7 Kenton Groombridge 2017-06-14 00:16:24 UTC
In order for a regular user to use ubridge, it has be set SUID, but I didn't want to install it that way by default, so you will have to change it manually.
Comment 8 needle 2017-06-14 14:02:45 UTC
Created attachment 476330 [details]
dynamips-0.2.16-build.log
Comment 9 needle 2017-06-14 14:03:35 UTC
Hello Kenton,

that is a lot of new ebuilds that are required to update. 
I have tested the new ebuilds that are attached to this bugreport.

One by one:

dynamips-0.2.16.ebuild
===
- does not install, it asks for a specific patch named "0.2.16-docs.patch" in the files directory, I have copied if from the previous ebuild 0.2.14-r1, however it does not apply the patch.

---

>>> Preparing source in /var/tmp/portage/app-emulation/dynamips-0.2.16/work/dynamips-0.2.16 ...
 * Applying 0.2.16-docs.patch ...

 * Failed Patch: 0.2.16-docs.patch !
 *  ( /usr/local/portage/app-emulation/dynamips/files/0.2.16-docs.patch )

---
build.log attached as dynamips-0.2.16-build.log
Comment 10 needle 2017-06-14 14:04:16 UTC
Created attachment 476332 [details]
dynamips-0.2.16-build.log
Comment 11 needle 2017-06-14 14:17:03 UTC
All other submitted ebuilds build correctly and install
- ubridge-0.9.11
- gns3-gui-2.0.02
- gns3-server-2.0.2

---

First start of gns3, a popup dialog in the gui asks for changing permission to /usr/bin/ubridge to root:admin. Then asks for a password.

This dialog fails to change the group changing. I could not find out where it exactly fails, I suspect it can not change the group assignment becasue there is no admin group.

The from ebuild installed binary has following user:group permmision

/usr/bin % ls -l | grep ubridge                                                                                                                                                                                                     
-rwxr-xr-x   1 root     root         69824 Jun 14 15:42 ubridge*

---

Second problem while running gns3, this is a gns3-server error message in the application:

It checks the explicit verion of aiohttp-cors==0.5.1, because only aiohttp-cors==0.5.0 is installed the server has been stopped.

---
=> Local server process has stopped
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 859, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (aiohttp-cors 0.5.0 (/usr/lib64/python3.4/site-packages), Requirement.parse('aiohttp-cors==0.5.1'), {'gns3-server'})
Comment 12 needle 2017-06-14 14:18:35 UTC
Thank you for the effort Kenton.

emerge --info from testing system:

emerge --info
Portage 2.3.5 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r3, 4.4.52-gentoo x86_64)
=================================================================
System uname: Linux-4.4.52-gentoo-x86_64-Intel-R-_Core-TM-_i5-4278U_CPU_@_2.60GHz-with-gentoo-2.3
KiB Mem:     8135444 total,   4202076 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Wed, 14 Jun 2017 13:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

needless
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X aac acpi alsa amd64 apm asm bash-completion berkdb bonobo bzip2 cairo cddb cjk cli cpudetection cracklib crypt cue cups curl custom-flags cxx dga directfb diskio dri drm egl eglfs encode expat faad fbcon flac fontforge fortran fuse gallium gdbm gif glamor gpm gtk gtk2 gtkstyle hscolour iconv imagemagick ipv6 jpeg jpeg2k lame laptop libcaca libclamav libgda libmms libnotify libsamplerate libsndfile lm_sensors logrotate lua lzo mad mbox modpack modules mp3 mpeg mplayer multilib musepack museplug ncurses noamazon nptl nsplugin nspluginwrapper ogg oggvorbis opengl openmp openssl pam pango pcre pdf png python3 qemu qt5 readline savedconfig schroedinger screen seccomp sensord session sox sql sqlite sqlite3 ssl svg tcpd tga threads tiff truetype udev unicode vaapi vim-syntax vorbis wavpack wifi xattr xcomposite xft xml xorg zip zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 needle 2017-06-14 14:26:02 UTC
(In reply to needle from comment #11)
> All other submitted ebuilds build correctly and install
> - ubridge-0.9.11
> - gns3-gui-2.0.02
> - gns3-server-2.0.2
> 
> ---
> 
> First start of gns3, a popup dialog in the gui asks for changing permission
> to /usr/bin/ubridge to root:admin. Then asks for a password.
> 
> This dialog fails to change the group changing. I could not find out where
> it exactly fails, I suspect it can not change the group assignment becasue
> there is no admin group.
> 
> The from ebuild installed binary has following user:group permmision
> 
> /usr/bin % ls -l | grep ubridge                                             
> 
> -rwxr-xr-x   1 root     root         69824 Jun 14 15:42 ubridge*
> 
> ---
GUI Dialog:

uBridge requires root permissions to interact with network interfaces. Set root permissions to uBridge?  All admin users on the system will be able to read packet from the network interfaces.

Error Message from GNS3-console:

Could not execute command "sudo chown root:admin /usr/bin/ubridge": Command '['sudo', 'chown', 'root:admin', '/usr/bin/ubridge']' returned non-zero exit status 1
Comment 14 needle 2017-06-14 14:31:19 UTC
(In reply to needle from comment #9)
> Hello Kenton,
> 
> that is a lot of new ebuilds that are required to update. 
> I have tested the new ebuilds that are attached to this bugreport.
> 
> One by one:
> 
> dynamips-0.2.16.ebuild
> ===
> - does not install, it asks for a specific patch named "0.2.16-docs.patch"
> in the files directory, I have copied if from the previous ebuild 0.2.14-r1,
> however it does not apply the patch.
> 
> ---
> 
> >>> Preparing source in /var/tmp/portage/app-emulation/dynamips-0.2.16/work/dynamips-0.2.16 ...
>  * Applying 0.2.16-docs.patch ...
> 
>  * Failed Patch: 0.2.16-docs.patch !
>  *  ( /usr/local/portage/app-emulation/dynamips/files/0.2.16-docs.patch )
> 
> ---
> build.log attached as dynamips-0.2.16-build.log

I have commented out the patch in this particular ebuild, which only applies some docs. Then done ebuild digest, and installed that ebuild. dynamips-0.2.6. works OK with my testing version 
GNS3-1.5.2. I have tested some labs and IOS Images work fine with the new dynamips version.

If applying the docs-patch is still required? I have no answer to this question.