This package need to be upgraded to spectrum 2 but i don't use it anymore.
Search Criteria
Package Details: spectrum 1.4.8-7
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2015-04-08)
| Package Base: | spectrum |
|---|---|
| Description: | XMPP libpurple transport/gateway. |
| Upstream URL: | http://spectrum.im |
| Category: | network |
| Licenses: | |
| Submitter: | sonny |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 12 |
| First Submitted: | 2011-02-24 23:20 |
| Last Updated: | 2013-09-22 13:39 |
Dependencies (5)
Required by (0)
Sources
- gcc47.patch
- https://github.com/downloads/hanzz/libtransport/spectrum-1.4.8.tar.gz
- logrotate.spectrum
- spectrum.tmpfiles
- spectrum@.service
Latest Comments
Comment by cdemoulins
Comment by crt3
Spectrum fails to build.
CMakeFiles/spectrum.dir/build.make:192: recipe for target 'CMakeFiles/spectrum.dir/src/sql.cpp.o' failed
make[2]: *** [CMakeFiles/spectrum.dir/src/sql.cpp.o] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/spectrum.dir/all' failed
make[1]: *** [CMakeFiles/spectrum.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build .
==> Restart building spectrum ? [y/N]
==> ---------------------------------
==>
Comment by cdemoulins
Fixed.
Comment by Schnouki
Hi, I just noticed something wrong in the service file: for ExecStop and ExecReload there's a / missing in the command, it's /usr/binsystemctl instead of /usr/bin/systemctl. Could you please fix that?
(Really sorry about it, actually I made that mistake when submitting this service file almost a year...)
Comment by sonny
Please update spectrum source url to
https://github.com/downloads/hanzz/libtransport/spectrum-1.4.8.tar.gz
Comment by cdemoulins
Be careful, the systemd integration work only if the pid file is “/run/spectrum/$protocol.pid”.
Comment by cdemoulins
Thanks Schnouki, it was on my todo list.
Comment by Schnouki
Hello world, I just migrated my server to systemd, so I write a unit for spectrum. Two things actually:
- a tmpfiles.d config file: http://pastebin.com/KxqiBU3N
- the service itself: http://pastebin.com/JhbrNPtY
You can enable multiple instances/protocols separately: "systemctl start spectrum@irc" (and/or "systemctl enable spectrum@irc") will start/enable spectrum with config file /etc/spectrum/irc.cfg and pidfile /run/spectrum/irc.pid. I'm using it to run 2 instances of spectrum (for irc and msn) and it seems to work fine so far.
Could you please include these files in your package?
Thanks.
Comment by cdemoulins
I'm working on this, in the mean time, i maybe found the source of the problem.
Could you try to update libpurple-minimal to 2.10.4 (you just need to update the version in the PKGBUILD) and rebuild spectrum.
Comment by vinilox
@cdemoulins it would be very great if you provide the binary package on archlinuxfr ! :)
Comment by cdemoulins
You must have a package on your computer that active the “functionality” because i can't reproduce your library issue.
I can provide a binary package on the archlinuxfr repository if you want.
Anonymous comment
# ldd /usr/bin/spectrum|grep far
libgstfarsight-0.10.so.0 => /usr/lib/libgstfarsight-0.10.so.0 (0x00007f0ec7b55000)
# pacman -Qi spectrum
Name : spectrum
Version : 1.4.8-3
[...]
Installed Size : 1620.00 KiB
Packager : Unknown Packager
Architecture : x86_64
Build Date : Sat 16 Jun 2012 12:12:00 PM CEST
Install Date : Sat 16 Jun 2012 12:12:33 PM CEST
Comment by cdemoulins
I don't have any dependencies on libgstfarsight or libfarstream.
Could you send me the output of the command : 'ldd /usr/bin/spectrum'
Anonymous comment
dirtyhack:
ln -s /usr/lib/libfarstream-0.1.so /usr/lib/libgstfarsight-0.10.so.0
Anonymous comment
spectrum: error while loading shared libraries: libgstfarsight-0.10.so.0: cannot open shared object file: No such file or directory
farsight is now called farstream -.-"
Comment by cdemoulins
I fixed the errors with a small patch.
Comment by gsa
When compiling on 32-bit Arch, GCC 4.7.0 produces error:
==> Starting make...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found gloox: /usr/lib/libgloox.so /usr/include
-- Found libpurple: /usr/lib/libpurple.so, /usr/include/libpurple
-- checking for module 'glib-2.0'
-- found glib-2.0, version 2.30.2
-- Found GLIB2: /usr/lib/libglib-2.0.so;/usr/lib/libgthread-2.0.so
-- Found libPoco: /usr/include, /usr/lib/libPocoData.so;/usr/lib/libPocoFoundation.so
-- Found libPocoSQLite/libPocoDataSQLite: /usr/lib/libPocoDataSQLite.so
-- SQLite storage backend will be available
-- Found libPocoMySQL/libPocoDataMySQL: /usr/lib/libPocoDataMySQL.so
-- MySQL storage backend will be available
-- Found libPocoODBC/libPocoDataODBC: /usr/lib/libPocoDataODBC.so
-- ODBC storage backend will be available
-- Found libev: /usr/lib/libev.so
-- Found PythonInterp: /usr/bin/python (found version "3.2.2")
-- Python site-packages directory: /usr/lib/python2.7/site-packages
-- Found GLIB2: /usr/include/glib-2.0;/usr/lib/glib-2.0/include /usr/lib/libglib-2.0.so;/usr/lib/libgthread-2.0.so
-- Found Magick++: /usr/include/ImageMagick/usr/lib/libMagick++.so
-- Transport will be installed into: /usr
Supported features
--------------------------------
Debugging symbols: no (run cmake with -DCMAKE_BUILD_TYPE=Debug option)
Translations: yes
Avatars resizing: yes
libev (epoll, kpoll, ...): yes
SQLite3: yes
MySQL: yes
--------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /home/el/spectrum/src/spectrum-1.4.8
Scanning dependencies of target man
Scanning dependencies of target translations
Scanning dependencies of target spectrum
[ 0%] Built target man
[ 0%] Built target translations
[ 1%] [ 2%] [ 4%] Building CXX object CMakeFiles/spectrum.dir/src/rostermanager.cpp.o
Building CXX object CMakeFiles/spectrum.dir/src/settingsmanager.cpp.o
Building CXX object CMakeFiles/spectrum.dir/src/configfile.cpp.o
[ 5%] [ 7%] Building CXX object CMakeFiles/spectrum.dir/src/geventloop.cpp.o
Building CXX object CMakeFiles/spectrum.dir/src/spectrummucconversation.cpp.o
[ 8%] Building CXX object CMakeFiles/spectrum.dir/src/thread.cpp.o
[ 10%] Building CXX object CMakeFiles/spectrum.dir/src/capabilitymanager.cpp.o
[ 11%] Building CXX object CMakeFiles/spectrum.dir/src/configuration.cpp.o
[ 13%] Building CXX object CMakeFiles/spectrum.dir/src/accountcollector.cpp.o
[ 14%] Building CXX object CMakeFiles/spectrum.dir/src/spectrumbuddy.cpp.o
[ 16%] Building CXX object CMakeFiles/spectrum.dir/src/abstractconversation.cpp.o
[ 17%] Building CXX object CMakeFiles/spectrum.dir/src/filetransferrepeater.cpp.o
[ 19%] Building CXX object CMakeFiles/spectrum.dir/src/sql.cpp.o
[ 20%] Building CXX object CMakeFiles/spectrum.dir/src/dnsresolver.cpp.o
[ 22%] Building CXX object CMakeFiles/spectrum.dir/src/filetransfermanager.cpp.o
[ 23%] Building CXX object CMakeFiles/spectrum.dir/src/vcardhandler.cpp.o
[ 25%] Building CXX object CMakeFiles/spectrum.dir/src/protocolmanager.cpp.o
In file included from /home/el/spectrum/src/spectrum-1.4.8/src/utf8.h:31:0,
from /home/el/spectrum/src/spectrum-1.4.8/src/filetransfermanager.cpp:31:
/home/el/spectrum/src/spectrum-1.4.8/src/utf8/checked.h: In instantiation of ‘output_iterator utf8::replace_invalid(octet_iterator, octet_iterator, output_iterator, utf8::uint32_t) [with octet_iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; output_iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; utf8::uint32_t = unsigned int]’:
/home/el/spectrum/src/spectrum-1.4.8/src/filetransfermanager.cpp:265:79: required from here
/home/el/spectrum/src/spectrum-1.4.8/src/utf8/checked.h:82:21: error: ‘append’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/el/spectrum/src/spectrum-1.4.8/src/utf8/checked.h:107:20: note: ‘template<class octet_iterator> octet_iterator utf8::append(utf8::uint32_t, octet_iterator)’ declared here, later in the translation unit
/home/el/spectrum/src/spectrum-1.4.8/src/utf8/checked.h:88:21: error: ‘append’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/home/el/spectrum/src/spectrum-1.4.8/src/utf8/checked.h:107:20: note: ‘template<class octet_iterator> octet_iterator utf8::append(utf8::uint32_t, octet_iterator)’ declared here, later in the translation unit
make[2]: *** [CMakeFiles/spectrum.dir/src/filetransfermanager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/spectrum.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Used package versions:
[el@1810tz spectrum]$ pacman -Q | egrep "(make|gcc|auto)"
autoconf 2.68-2
automake 1.11.4-1
cmake 2.8.7-2
gcc 4.7.0-4
gcc-libs 4.7.0-4
make 3.82-4
Comment by sonny
Here we go. Sorry for the delay.
@miniature I've added you as a contributor, is that ok?
Comment by cdemoulins
Same error for me. Could you please update your package. Thanks.
Comment by vinilox
@miniature Thank you :)
Anonymous comment
I have the same build error, patching CMakeLists.txt to use 'python2' instead of the PYTHON_EXECUTABLE variable works though:
Add `sed -i -e 's/${PYTHON_EXECUTABLE}/python2/g' CMakeLists.txt` right above the cmake line in the PKGBUILD.
Comment by vinilox
@sonny Log : And do you need something else ?
==> Starting make...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found gloox: /usr/lib/libgloox.so /usr/include
-- Found libpurple: /usr/lib/libpurple.so, /usr/include/libpurple
-- checking for module 'glib-2.0'
-- found glib-2.0, version 2.30.1
-- Found GLIB2: /usr/lib/libglib-2.0.so;/usr/lib/libgthread-2.0.so
-- Found libPoco: /usr/include, /usr/lib/libPocoData.so;/usr/lib/libPocoFoundation.so
-- Found libPocoSQLite/libPocoDataSQLite: /usr/lib/libPocoDataSQLite.so
-- SQLite storage backend will be available
-- Found libPocoMySQL/libPocoDataMySQL: /usr/lib/libPocoDataMySQL.so
-- MySQL storage backend will be available
-- Found libPocoODBC/libPocoDataODBC: /usr/lib/libPocoDataODBC.so
-- ODBC storage backend will be available
-- Found libev: /usr/lib/libev.so
-- Found PythonInterp: /usr/bin/python (found version "3.2.2")
File "<string>", line 1
from distutils.sysconfig import get_python_lib; print get_python_lib()
^
SyntaxError: invalid syntax
-- Python site-packages directory:
-- Found GLIB2: /usr/include/glib-2.0;/usr/lib/glib-2.0/include /usr/lib/libglib-2.0.so;/usr/lib/libgthread-2.0.so
-- Found Magick++: /usr/include/ImageMagick/usr/lib/libMagick++.so
-- Transport will be installed into: /usr
CMake Error at CMakeLists.txt:163 (INSTALL):
install DIRECTORY given no DESTINATION!
Supported features
--------------------------------
Debugging symbols: no (run cmake with -DCMAKE_BUILD_TYPE=Debug option)
Translations: yes
Avatars resizing: yes
libev (epoll, kpoll, ...): yes
SQLite3: yes
MySQL: yes
--------------------------------
-- Configuring incomplete, errors occurred!
Comment by sonny
@vinilox I don't have any problems here.
Is there any more details you could give me?
Comment by vinilox
Doesn't build :
File "<string>", line 1
from distutils.sysconfig import get_python_lib; print get_python_lib()
^
SyntaxError: invalid syntax
-- Python site-packages directory:
-- Found GLIB2: /usr/include/glib-2.0;/usr/lib/glib-2.0/include /usr/lib/libglib-2.0.so;/usr/lib/libgthread-2.0.so
-- Found Magick++: /usr/include/ImageMagick/usr/lib/libMagick++.so
-- Transport will be installed into: /usr
CMake Error at CMakeLists.txt:163 (INSTALL):
install DIRECTORY given no DESTINATION!
Comment by sonny
Changelog for the new PKGBUILD:
Removed the patch from maleadt since it's not needed with spectrum-1.4.8
Fix the sed (to fit spectrum-1.4.8) command for setting python 2 as the env in /usr/bin/spectrumctl
libev added as a dependcy
Comment by sonny
Upgraded, thanks maleadt.
Comment by maleadt
Poco changed its library names from Poco$BACKEND to PocoData$BACKEND. This makes building spectrum fail with a "could not find any backend" error. Fix for this:
poco_cmake.patch: http://pastebin.com/VbWged04
PKGBUILD: http://pastebin.com/bUXiuE7V
Comment by sonny
Comment by sonny
Package release 2 includes my email address and "replaces=('spectrum-git')" to avoid conflicts.