Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550692 - >x11-misc/synergy-1.7.0 should install libns.so in a plugins directory (where it can be found)
Summary: >x11-misc/synergy-1.7.0 should install libns.so in a plugins directory (where...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 577218 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-28 21:41 UTC by Jeremy Banks
Modified: 2020-11-29 22:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Banks 2015-05-28 21:41:43 UTC
Per http://synergy-project.org/wiki/Security versions of of Synergy from 1.7.0 and up use a new plugin system, and the encryption options depend on a new encryption plugin. The present ebuild does not install the plugins along with the binaries, and does not generate an SSL certificate.



Reproducible: Always

Steps to Reproduce:
1. Install synergy-1.7.3
2. launch qsynergy
3. Select Edit->Settings from the menus

Actual Results:  
Netwowrk Security section of the settings window is greyed out (disabled)

Expected Results:  
Network Security section of the settings window should not be disabled; the option to enable or disable SSL encryption should be selectable.

Information about the plugins setup in >=synergy-1.7.0 can be found here: http://synergy-project.org/wiki/Plugins

Instructions on installing the security plugin can be found here: http://synergy-project.org/wiki/Security#For_1.7.0_and_above

From the above, it appears that the default assumption by Synergy is that it's profile and plugins info will be going into ~/.synergy. I haven't yet found how to do make changes to a user's home directory in the ebuild documentation, and I have my doubts that such is even the right thing to do. Per the above linked documentation, it is possible to change the profile/plugin directories, but I'm not certain where in the file system the appropriate place would be if it can't be a user's home dir. /usr/lib/synergy? /etc/synergy? Elsewhere?

emerge --info follows:
Portage 2.3.6-r9 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.9.2, glibc-2.20-r1, 3.17.0-pf4 x86_64)
=================================================================
System uname: Linux-3.17.0-pf4-x86_64-Intel-R-_Core-TM-_i5_CPU_M_540_@_2.53GHz-with-gentoo-2.2.0
KiB Mem:     8157508 total,   4213464 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Unknown
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p39
dev-java/java-config:     2.2.0-r1000
dev-lang/perl:            5.20.2-r1
dev-lang/python:          2.7.10-r1000, 3.3.6-r1000
dev-util/cmake:           3.2.1
sys-apps/baselayout:      2.2.0-r6
sys-apps/openrc:          0.12.4-r4
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69-r1
sys-devel/automake:       1.11.6-r1, 1.13.4, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3, 2.25-r1
sys-devel/gcc:            4.6.4-r2, 4.8.4, 4.9.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 4.0 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo anders-larsson gamerlay steam-overlay java proaudio
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
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/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3 -l2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/anders-larsson /var/lib/layman/gamerlay /var/lib/layman/steam /var/lib/layman/java /var/lib/layman/proaudio"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac acl alsa amd64 apng berkdb bluray bzip2 cdda cddb cdio cdr consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread encode exif faac faad ffmpeg flac gdbm gif gpm ico iconv icu ieee1394 introspection ios ipod ipv6 jack jpeg jpeg2k kde ladspa lame libass libguess libmpeg2 lv2 mad matroska mjpeg mmx modules mp3 mpeg mtp mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pcre pdf png policykit postproc pppd python quicktime readline resolvconf samba semantic-desktop sndfile sse sse2 ssl svg taglib tcpd theora tiff truetype twolame udev unicode v4l vorbis vpx wav wavpack webp wifi win32codecs wmf x264 x265 xattr xml xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-29 04:56:31 UTC
This is probably because we're using our own install rules. I see such a plugin is being built.
Comment 2 Lee Trager 2015-07-20 04:48:28 UTC
Its because the default configuration of Synergy is to download libns.so from the web and install it into your home directory. Because Gentoo isn't a supported distribution of Synergy you see the error message in the wizard.

http://synergy-project.org/wiki/Plugins

You can change where Synergy looks for plugins by passing --plugin-dir but this would be a huge pain for users. I've opened to ask Synergy to support searching a system installed location https://github.com/synergy/synergy/issues/4880

I've worked around this by copying libns.so out of the Gentoo build environment into ~/.synergy/plugins
Comment 3 wyvern5 2015-08-20 23:51:00 UTC
Can we at least install the plugin somewhere via the normal build so I can launch synergy with --plugin-dir manually?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-17 07:08:13 UTC
*** Bug 577218 has been marked as a duplicate of this bug. ***
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-17 07:12:16 UTC
It should be safe to install into /usr/<libdir>/synergy/plugins but maybe that needs a patch as by default ../synergy/plugins/ is searched, which would assume that /usr/bin is the CWD.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-17 07:42:51 UTC
But there is more trouble: if you have other plugins installed in $HOME/.synergy/plugins/ then the /usr/<libdir>/synergy/plugins/ directory is ignored while searching for plugins. So you'd have to copy the plugins (i.e. libns.so) from there to your local directory, too, for the local plugins to be used, and then manually set the plugins directory.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-17 08:14:55 UTC
1.8.1-r1 installs just that, but you will have to tell synergy to find it in /usr/<libdir>/synergy/plugins manually for now.

Anyone want to come up with a proper patch? :)
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-17 08:57:28 UTC
Shared libraries on Linux are normally +x, so that should have been doexe, not doins.
Comment 9 Akos Szalkai 2016-07-19 15:02:21 UTC
But then the insinto should be changed to exeinto in the previous line.  Right now libns.so gets installed into / (the root directory).
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-19 18:12:31 UTC
Ugh, you're right.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-19 18:28:09 UTC
(In reply to Akos Szalkai from comment #9)
> But then the insinto should be changed to exeinto in the previous line. 
> Right now libns.so gets installed into / (the root directory).

So that's in -r3.
Comment 12 Dennis Schridde 2020-02-02 16:22:58 UTC
Comment #11 from 3.5 years ago suggests that this is fixed.  Is that correct?
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-11-29 22:36:23 UTC
Feel free to reopen if there's still a problem.