Author Topic: [PACKAGED] qBittorrent 3.0.6 and libtorrent-rasterbar 0.16.4 - Is it OK?  (Read 3069 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
I believe I have succeeded in building qBittorrent 3.0.6 and libtorrent-rasterbar 0.16.4.
Thanks to everyone who guided me through this.
However this may not be the end as there might be many things wrong with this.
Request you to please test the results and give your opinion. Install the libraries first and then qBittorrent

qBittorrent
SPEC - http://dl.dropbox.com/u/37931428/qBittorrent/pclos-qbittorrent.spec
LOG - http://dl.dropbox.com/u/37931428/qBittorrent/pclos-qbittorrent.spec.log
RPM - http://dl.dropbox.com/u/37931428/qBittorrent/qbittorrent-3.0.6-1slingshot2013.i586.rpm
SRPM - http://dl.dropbox.com/u/37931428/qBittorrent/qbittorrent-3.0.6-1slingshot2013.src.rpm

libtorrent-rasterbar
SPEC - http://dl.dropbox.com/u/37931428/libtorrent-rasterbar/pclos-libtorrent-rasterbar.spec
LOG - http://dl.dropbox.com/u/37931428/libtorrent-rasterbar/pclos-libtorrent-rasterbar.spec.log
RPMs - http://dl.dropbox.com/u/37931428/libtorrent-rasterbar/libtorrent-rasterbar6-0.16.4-1slingshot2013.i586.rpm
http://dl.dropbox.com/u/37931428/libtorrent-rasterbar/libtorrent-rasterbar-devel-0.16.4-1slingshot2013.i586.rpm
http://dl.dropbox.com/u/37931428/libtorrent-rasterbar/python-libtorrent-rasterbar-0.16.4-1slingshot2013.i586.rpm
SRPM - http://dl.dropbox.com/u/37931428/libtorrent-rasterbar/libtorrent-rasterbar-0.16.4-1slingshot2013.src.rpm

-SS.


The discussion that resulted in this follows:
-------------------------------------------------------------------------------

NOTE : I am doing this experiment with an intention of updating the wiki page on packaging. I want to update that page further from an absolute dummy's point of view. Please consider me as good as a newborn :)

So I went through the wiki page. But it still does not say the actual commands one has to use.
I did the following:
1. Installed pkgutils-kde on a separate test install partition.
2. Entered sling-shot where needed but the user account was testinstall
3. Skimmed RPM_Build_Manual_Rev2.pdf
4. Downloaded qbittorrent-2.9.11-1pclos2012 to /home/Downloads.
4. Navigated to /home/Downloads in Konsole as testinstall.
5. Ran rpm -ivh qbit*******
6. Went to /home/src/rpms/SPECS
7. Opened the .spec file and just changed the version number to 3.0.3
8. Downloaded new qbittorrent-3.0.3.tar.xz and placed it in /home/src/rpm/SOURCES.
9. Navigated to it in Konsole and ran rpm -ba qbit******.spec
10. Spits out -ba unknown option
11. SCRATCH HEAD at first then scratch some smaller pair of round shapes.
12. Eureka! We are trying build. So ran rpmbuild -ba qbit****.spec
13. Progress :)
14. Now I got to know a list of things missing. Around 5 I guess. And most were devel packages and may 2 libs. There was some confusion with glib2 where what I had was libglib and required was glib 2.0 or something. I went ahead with whatever was available.
15. This time build progressed a little further before throwing a long list of error at my face as shown below :
« Last Edit: January 12, 2013, 09:17:35 AM by sling-shot »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #1 on: September 18, 2012, 10:30:48 AM »
[testinstall@localhost SPECS]$ rpmbuild -ba pclos-qbittorrent.spec
Executing(%prep): /bin/sh -e /home/testinstall/src/tmp/rpm-tmp.5GfqTa
+ umask 022
+ cd /home/testinstall/src/rpm/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/testinstall/src/rpm/BUILD
+ rm -rf qbittorrent-3.0.3
+ /usr/bin/xz -dc /home/testinstall/src/rpm/SOURCES/qbittorrent-3.0.3.tar.xz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd qbittorrent-3.0.3
+ exit 0
Executing(%build): /bin/sh -e /home/testinstall/src/tmp/rpm-tmp.bOkEi4
+ umask 022
+ cd /home/testinstall/src/rpm/BUILD
+ cd qbittorrent-3.0.3
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ ./configure --prefix=/usr
Configuring qbittorrent ...
Verifying Qt 4 build environment ... ok
Checking for Qt >= 4.6 ... yes
Checking for QtDBus >= 4.5 ... yes
Checking for pkg-config executable ... yes
Checking for libtorrent-rasterbar >= 0.15.0 ... yes
Checking for libboost ... yes
Checking for GeoIP Database (optional) ... yes
Checking for qtsingleapplication library ... [shipped]  yes

Good, your configure finished.  Now run /usr/bin/gmake.

+ make -j2
cd src/ && /usr/lib/qt4/bin/qmake /home/testinstall/src/rpm/BUILD/qbittorrent-3.0.3/src/src.pro -o Makefile
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.
Project MESSAGE: GeoIP database will not be embedded in qBittorrent executable.
cd src/ && make -f Makefile
make[1]: Entering directory `/home/testinstall/src/rpm/BUILD/qbittorrent-3.0.3/src'
/usr/lib/qt4/bin/uic preferences/options.ui -o ui_options.h
/usr/lib/qt4/bin/uic properties/propertieswidget.ui -o ui_propertieswidget.h
/usr/lib/qt4/bin/uic properties/trackersadditiondlg.ui -o ui_trackersadditiondlg.h
/usr/lib/qt4/bin/uic properties/peer.ui -o ui_peer.h
/usr/lib/qt4/bin/uic searchengine/search.ui -o ui_search.h
/usr/lib/qt4/bin/uic searchengine/engineselect.ui -o ui_engineselect.h
/usr/lib/qt4/bin/uic searchengine/pluginsource.ui -o ui_pluginsource.h
/usr/lib/qt4/bin/uic rss/rss.ui -o ui_rss.h
/usr/lib/qt4/bin/uic rss/rsssettingsdlg.ui -o ui_rsssettingsdlg.h
/usr/lib/qt4/bin/uic rss/automatedrssdownloader.ui -o ui_automatedrssdownloader.h
/usr/lib/qt4/bin/uic rss/cookiesdlg.ui -o ui_cookiesdlg.h
/usr/lib/qt4/bin/uic torrentcreator/createtorrent.ui -o ui_createtorrent.h
/usr/lib/qt4/bin/uic mainwindow.ui -o ui_mainwindow.h
/usr/lib/qt4/bin/uic about.ui -o ui_about.h
/usr/lib/qt4/bin/uic preview.ui -o ui_preview.h
/usr/lib/qt4/bin/uic login.ui -o ui_login.h
/usr/lib/qt4/bin/uic downloadfromurldlg.ui -o ui_downloadfromurldlg.h
/usr/lib/qt4/bin/uic bandwidth_limit.ui -o ui_bandwidth_limit.h
/usr/lib/qt4/bin/uic updownratiodlg.ui -o ui_updownratiodlg.h
/usr/lib/qt4/bin/uic confirmdeletiondlg.ui -o ui_confirmdeletiondlg.h
/usr/lib/qt4/bin/uic torrentimportdlg.ui -o ui_torrentimportdlg.h
/usr/lib/qt4/bin/uic executionlog.ui -o ui_executionlog.h
/usr/lib/qt4/bin/uic addnewtorrentdialog.ui -o ui_addnewtorrentdialog.h
g++ -c -pipe -Wformat -Wformat-security -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DVERSION=\"v3.0.3\" -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DVERSION_BUGFIX=3 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtDBus -I/usr/lib/qt4/include -I/usr/include/libtorrent -I/usr/include -Iqtnotify -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I. -I. -o notifications.o qtnotify/notifications.cpp
g++ -c -pipe -Wformat -Wformat-security -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DVERSION=\"v3.0.3\" -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DVERSION_BUGFIX=3 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtDBus -I/usr/lib/qt4/include -I/usr/include/libtorrent -I/usr/include -Iqtnotify -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I. -I. -o qtsingleapplication.o qtsingleapp/qtsingleapplication.cpp
g++ -c -pipe -Wformat -Wformat-security -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DVERSION=\"v3.0.3\" -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DVERSION_BUGFIX=3 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtDBus -I/usr/lib/qt4/include -I/usr/include/libtorrent -I/usr/include -Iqtnotify -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I. -I. -o qtlocalpeer.o qtsingleapp/qtlocalpeer.cpp
g++ -c -pipe -Wformat -Wformat-security -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DVERSION=\"v3.0.3\" -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DVERSION_BUGFIX=3 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtDBus -I/usr/lib/qt4/include -I/usr/include/libtorrent -I/usr/include -Iqtnotify -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I. -I. -o qbtsession.o qtlibtorrent/qbtsession.cpp
In file included from /usr/include/boost/filesystem/path.hpp:24:0,
                 from /usr/include/libtorrent/torrent_info.hpp:45,
                 from ./misc.h:35,
                 from ./filesystemwatcher.h:25,
                 from qtlibtorrent/qbtsession.cpp:41:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
g++ -c -pipe -Wformat -Wformat-security -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DVERSION=\"v3.0.3\" -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DVERSION_BUGFIX=3 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtDBus -I/usr/lib/qt4/include -I/usr/include/libtorrent -I/usr/include -Iqtnotify -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I. -I. -o qtorrenthandle.o qtlibtorrent/qtorrenthandle.cpp
In file included from /usr/include/boost/filesystem/path.hpp:24:0,
                 from /usr/include/libtorrent/torrent_info.hpp:45,
                 from ./misc.h:35,
                 from qtlibtorrent/qtorrenthandle.cpp:38:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
In file included from /usr/include/libtorrent/torrent_info.hpp:61:0,
                 from ./misc.h:35,
                 from ./filesystemwatcher.h:25,
                 from qtlibtorrent/qbtsession.cpp:41:
/usr/include/libtorrent/file_storage.hpp:110:8: error: ‘void libtorrent::file_storage::add_file(const boost::filesystem::wpath&, libtorrent::size_type, int, time_t, const boost::filesystem::path&)’ cannot be overloaded
/usr/include/libtorrent/file_storage.hpp:106:8: error: with ‘void libtorrent::file_storage::add_file(const boost::filesystem::path&, libtorrent::size_type, int, time_t, const boost::filesystem::path&)’
In file included from ./misc.h:35:0,
                 from ./filesystemwatcher.h:25,
                 from qtlibtorrent/qbtsession.cpp:41:
/usr/include/libtorrent/torrent_info.hpp:195:3: error: ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::wpath&)’ cannot be overloaded
/usr/include/libtorrent/torrent_info.hpp:193:3: error: with ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::path&)’
/usr/include/libtorrent/torrent_info.hpp:204:3: error: ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::wpath&, boost::system::error_code&)’ cannot be overloaded
/usr/include/libtorrent/torrent_info.hpp:202:3: error: with ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::path&, boost::system::error_code&)’
In file included from /usr/include/libtorrent/torrent_info.hpp:61:0,
                 from ./misc.h:35,
                 from qtlibtorrent/qtorrenthandle.cpp:38:
/usr/include/libtorrent/file_storage.hpp:110:8: error: ‘void libtorrent::file_storage::add_file(const boost::filesystem::wpath&, libtorrent::size_type, int, time_t, const boost::filesystem::path&)’ cannot be overloaded
/usr/include/libtorrent/file_storage.hpp:106:8: error: with ‘void libtorrent::file_storage::add_file(const boost::filesystem::path&, libtorrent::size_type, int, time_t, const boost::filesystem::path&)’
In file included from ./misc.h:35:0,
                 from qtlibtorrent/qtorrenthandle.cpp:38:
/usr/include/libtorrent/torrent_info.hpp:195:3: error: ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::wpath&)’ cannot be overloaded
/usr/include/libtorrent/torrent_info.hpp:193:3: error: with ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::path&)’
/usr/include/libtorrent/torrent_info.hpp:204:3: error: ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::wpath&, boost::system::error_code&)’ cannot be overloaded
/usr/include/libtorrent/torrent_info.hpp:202:3: error: with ‘libtorrent::torrent_info::torrent_info(const boost::filesystem::path&, boost::system::error_code&)’
In file included from ./misc.h:36:0,
                 from ./filesystemwatcher.h:25,
                 from qtlibtorrent/qbtsession.cpp:41:
/usr/include/libtorrent/torrent_handle.hpp:585:8: error: ‘void libtorrent::torrent_handle::move_storage(const boost::filesystem::wpath&) const’ cannot be overloaded
/usr/include/libtorrent/torrent_handle.hpp:581:8: error: with ‘void libtorrent::torrent_handle::move_storage(const boost::filesystem::path&) const’
/usr/include/libtorrent/torrent_handle.hpp:586:8: error: ‘void libtorrent::torrent_handle::rename_file(int, const boost::filesystem::wpath&) const’ cannot be overloaded
/usr/include/libtorrent/torrent_handle.hpp:582:8: error: with ‘void libtorrent::torrent_handle::rename_file(int, const boost::filesystem::path&) const’
In file included from ./misc.h:36:0,
                 from qtlibtorrent/qtorrenthandle.cpp:38:
/usr/include/libtorrent/torrent_handle.hpp:585:8: error: ‘void libtorrent::torrent_handle::move_storage(const boost::filesystem::wpath&) const’ cannot be overloaded
/usr/include/libtorrent/torrent_handle.hpp:581:8: error: with ‘void libtorrent::torrent_handle::move_storage(const boost::filesystem::path&) const’
/usr/include/libtorrent/torrent_handle.hpp:586:8: error: ‘void libtorrent::torrent_handle::rename_file(int, const boost::filesystem::wpath&) const’ cannot be overloaded
/usr/include/libtorrent/torrent_handle.hpp:582:8: error: with ‘void libtorrent::torrent_handle::rename_file(int, const boost::filesystem::path&) const’
qtlibtorrent/qtorrenthandle.cpp: In member function ‘QString QTorrentHandle::filename_at(unsigned int) const’:
qtlibtorrent/qtorrenthandle.cpp:324:88: error: no matching function for call to ‘misc::toQStringU(boost::filesystem::path)’
./misc.h:69:25: note: candidates are: static QString misc::toQStringU(const std::string&)
./misc.h:73:25: note:                 static QString misc::toQStringU(const char*)
qtlibtorrent/qbtsession.cpp: In constructor ‘QBtSession::QBtSession()’:
qtlibtorrent/qbtsession.cpp:120:3: error: ‘default_name_check’ is not a member of ‘boost::filesystem::path’
qtlibtorrent/qbtsession.cpp:120:47: error: ‘no_check’ is not a member of ‘boost::filesystem’
qtlibtorrent/qbtsession.cpp: At global scope:
qtlibtorrent/qbtsession.cpp:894:16: warning: unused parameter ‘fromScanDir’
qtlibtorrent/qbtsession.cpp:894:16: warning: unused parameter ‘filePath’
qtlibtorrent/qbtsession.cpp: In member function ‘void QBtSession::setProxySettings(libtorrent::proxy_settings)’:
qtlibtorrent/qbtsession.cpp:2064:37: warning: ‘void libtorrent::session::set_tracker_proxy(const libtorrent::proxy_settings&)’ is deprecated (declared at /usr/include/libtorrent/session.hpp:412)
qtlibtorrent/qbtsession.cpp:2068:31: warning: ‘void libtorrent::session::set_peer_proxy(const libtorrent::proxy_settings&)’ is deprecated (declared at /usr/include/libtorrent/session.hpp:408)
qtlibtorrent/qbtsession.cpp:2069:35: warning: ‘void libtorrent::session::set_web_seed_proxy(const libtorrent::proxy_settings&)’ is deprecated (declared at /usr/include/libtorrent/session.hpp:410)
qtlibtorrent/qbtsession.cpp:2070:30: warning: ‘void libtorrent::session::set_dht_proxy(const libtorrent::proxy_settings&)’ is deprecated (declared at /usr/include/libtorrent/session.hpp:423)
qtlibtorrent/qtorrenthandle.cpp:326:1: warning: control reaches end of non-void function
make[1]: *** [qtorrenthandle.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [qbtsession.o] Error 1
make[1]: Leaving directory `/home/testinstall/src/rpm/BUILD/qbittorrent-3.0.3/src'
make: *** [sub-src-make_default] Error 2
error: Bad exit status from /home/testinstall/src/tmp/rpm-tmp.bOkEi4 (%build)


RPM build errors:
    Bad exit status from /home/testinstall/src/tmp/rpm-tmp.bOkEi4 (%build)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #2 on: September 18, 2012, 10:31:52 AM »
OOPS! That turned out longer than expected. Should have used Pastebin instead. Sorry :(
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #3 on: September 18, 2012, 11:01:37 AM »
14. Now I got to know a list of things missing. Around 5 I guess. And most were devel packages and may 2 libs. There was some confusion with glib2 where what I had was libglib and required was glib 2.0 or something. I went ahead with whatever was available.

When pkgutils-kde4 (or pkgutils-thunar) is installed it provides a Right Click menu for .spec files which has Install Dependencies.  This will run the "addpkg" command (part of pkgutils) on the spec file to install the necessary build dependencies  ;)

Terry.
« Last Edit: September 18, 2012, 11:03:59 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Online muungwana

  • Hero Member
  • *****
  • Posts: 6238
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #4 on: September 18, 2012, 11:10:33 AM »
Quote
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3

The above line looks like the root cause of the problem. It seem you have version 3 of whatever it is while this package used other version( i assume earlier versions)

Is this package the latest released version of the package? The solution i think is to either try to build the latest version or wait for them to update it to use newer versions of boots file system functionality.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #5 on: September 19, 2012, 04:48:42 AM »
From the install.txt for qbittorrent 3.0.3
Code: [Select]
qBittorrent - A BitTorrent client in C++ / Qt4
------------------------------------------

1) Compile and install qBittorrent with Qt4 Graphical Interface

  $ ./configure
  $ make && make install
  $ qbittorrent

  will install and execute qBittorrent hopefully without any problems.

  Dependencies:
    - Qt >= 4.6.0 (libqtgui, libqtcore, libqtnetwork, libqtxml, libqtdbus/optional)

    - pkg-config executable

    - libtorrent-rasterbar by Arvid Norberg (>= 0.15.0)
        -> http://www.libtorrent.net
        Be careful: another library (the one used by rTorrent) uses a similar name.

    - libboost 1.34.x (libboost-filesystem°) + libasio
      or
    - libboost >= 1.35.x (libboost-system, libboost-filesystem°)
     
    °libboost-filesystem is not needed if libtorrent-rasterbar >= v0.16.x is used

    - python >= 2.3 (needed by search engine)
        * Run time only dependency

    - geoip-database (optional)
        * If qBittorrent cannot find this database, it will try to resolve countries using the Internet but it will be a lot slower.
        * Run time only dependency

Actual content of /usr/include/boost/filesystem/config.hpp on my system :
Code: [Select]
//  boost/filesystem/v3/config.hpp  ----------------------------------------------------//

//  Copyright Beman Dawes 2003

//  Distributed under the Boost Software License, Version 1.0.
//  See http://www.boost.org/LICENSE_1_0.txt

//  Library home page: http://www.boost.org/libs/filesystem

//--------------------------------------------------------------------------------------//

#ifndef BOOST_FILESYSTEM3_CONFIG_HPP
#define BOOST_FILESYSTEM3_CONFIG_HPP

# if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION != 3
#   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
# endif

# if !defined(BOOST_FILESYSTEM_VERSION)
#   define BOOST_FILESYSTEM_VERSION 3
# endif

#define BOOST_FILESYSTEM_I18N  // aid users wishing to compile several versions

// This header implements separate compilation features as described in
// http://www.boost.org/more/separate_compilation.html

#include <boost/config.hpp>
#include <boost/system/api_config.hpp>  // for BOOST_POSIX_API or BOOST_WINDOWS_API
#include <boost/detail/workaround.hpp>

//  BOOST_FILESYSTEM_DEPRECATED needed for source compiles -----------------------------//

# ifdef BOOST_FILESYSTEM_SOURCE
#   define BOOST_FILESYSTEM_DEPRECATED
# endif

//  throw an exception  ----------------------------------------------------------------//
//
//  Exceptions were originally thrown via boost::throw_exception().
//  As throw_exception() became more complex, it caused user error reporting
//  to be harder to interpret, since the exception reported became much more complex.
//  The immediate fix was to throw directly, wrapped in a macro to make any later change
//  easier.

#define BOOST_FILESYSTEM_THROW(EX) throw EX

# if defined( BOOST_NO_STD_WSTRING )
#   error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support
# endif

//  This header implements separate compilation features as described in
//  http://www.boost.org/more/separate_compilation.html

//  normalize macros  ------------------------------------------------------------------//

#if !defined(BOOST_FILESYSTEM_DYN_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK) \
  && !defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_ALL_STATIC_LINK)
# define BOOST_FILESYSTEM_STATIC_LINK
#endif

#if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_FILESYSTEM_DYN_LINK)
# define BOOST_FILESYSTEM_DYN_LINK
#elif defined(BOOST_ALL_STATIC_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK)
# define BOOST_FILESYSTEM_STATIC_LINK
#endif

#if defined(BOOST_FILESYSTEM_DYN_LINK) && defined(BOOST_FILESYSTEM_STATIC_LINK)
# error Must not define both BOOST_FILESYSTEM_DYN_LINK and BOOST_FILESYSTEM_STATIC_LINK
#endif

#if defined(BOOST_ALL_NO_LIB) && !defined(BOOST_FILESYSTEM_NO_LIB)
# define BOOST_FILESYSTEM_NO_LIB
#endif

//  enable dynamic linking  ------------------------------------------------------------//

#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
# if defined(BOOST_FILESYSTEM_SOURCE)
#   define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT
# else
#   define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT
# endif
#else
# define BOOST_FILESYSTEM_DECL
#endif

//  enable automatic library variant selection  ----------------------------------------//

#if !defined(BOOST_FILESYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) \
  && !defined(BOOST_FILESYSTEM_NO_LIB)
//
// Set the name of our library, this will get undef'ed by auto_link.hpp
// once it's done with it:
//
#define BOOST_LIB_NAME boost_filesystem
//
// If we're importing code from a dll, then tell auto_link.hpp about it:
//
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
#  define BOOST_DYN_LINK
#endif
//
// And include the header that does the work:
//
#include <boost/config/auto_link.hpp>
#endif  // auto-linking disabled

#endif // BOOST_FILESYSTEM3_CONFIG_HPP
Every single line here appears with a hash in front of it. It means that the whole file is commented out and not read right?

The other requirements are all met. Then why is this error being thrown? Should I remove those comments and try?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #6 on: September 19, 2012, 05:12:02 AM »
In C++ the hash is a pre-processor directive not a comment (comments are //)

The error is being thrown because the Makefile has -DBOOST_FILESYSTEM_VERSION=2 which implies that the application needs to be built against Boost File System Version 2.  This is confirmed in the src.pro file (which is used to create the Makefile):

Code: [Select]
# Fixes compilation with Boost >= v1.46 where boost
# filesystem v3 is the default.
DEFINES += BOOST_FILESYSTEM_VERSION=2

Our libboost-devel is version 1.50 which is Boost File System Version 3.  The Boost File System states that Version 2 is no longer supported after 1.49.  I take this to mean that 1.46-1.49 supported both versions (hence the comment in src.pro).
I doubt any of us has a "magic answer" to this.  It needs (time consuming) research to figure out what the issue is.
Welcome to the world of packaging  ;D

Terry
« Last Edit: September 19, 2012, 05:55:31 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1899
  • Certified Windows Hater
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #7 on: September 19, 2012, 05:15:19 AM »
I think such a section in our Wiki page will encourage many more users (including me) to start packaging. I've been reading some things about packaging lately trying to learn a few things and maybe (like you) try to build some packages. But a step-by-step guide with some examples and/or tips from experienced packagers would be the ideal first step for wannabe packagers.

PS: This manual you mentioned (RPM Build Manual Rev2)... is it a free e-book?
For the whole world, you are someone.
For someone, you are the whole world.

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #8 on: September 19, 2012, 05:54:05 AM »
OFFTOPIC :
------------
I think such a section in our Wiki page will encourage many more users (including me) to start packaging. I've been reading some things about packaging lately trying to learn a few things and maybe (like you) try to build some packages. But a step-by-step guide with some examples and/or tips from experienced packagers would be the ideal first step for wannabe packagers.

PS: This manual you mentioned (RPM Build Manual Rev2)... is it a free e-book?


Get it here :
http://www.montanalinux.org/files/RPM_Build_Manual_Rev2.pdf


ONTOPIC :
-----------
Thanks TerryN. I will try to adjust that parameter and see. It believe what is actually needed is Boost v3. But why is that particular thing pointing to v2 needs to be found out.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #9 on: September 19, 2012, 05:59:08 AM »
Thanks TerryN. I will try to adjust that parameter and see. It believe what is actually needed is Boost v3. But why is that particular thing pointing to v2 needs to be found out.

The comment in src.pro suggests to me that qbittorrent requires version 2 (i.e. it will not work with Version 3)

There is also this in the install.txt
Quote
  °libboost-filesystem is not needed if libtorrent-rasterbar >= v0.16.x is used

which may give an indication of what the qbittorrent devs are thinking.

Terry.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #10 on: September 19, 2012, 06:29:44 AM »
In C++ the hash is a pre-processor directive not a comment (comments are //)

The error is being thrown because the Makefile has -DBOOST_FILESYSTEM_VERSION=2 which implies that the application needs to be built against Boost File System Version 2.  This is confirmed in the src.pro file (which is used to create the Makefile):

Code: [Select]
# Fixes compilation with Boost >= v1.46 where boost
# filesystem v3 is the default.
DEFINES += BOOST_FILESYSTEM_VERSION=2

Our libboost-devel is version 1.50 which is Boost File System Version 3.  The Boost File System states that Version 2 is no longer supported after 1.49.  I take this to mean that 1.46-1.49 supported both versions (hence the comment in src.pro).
I doubt any of us has a "magic answer" to this.  It needs (time consuming) research to figure out what the issue is.
Welcome to the world of packaging  ;D

Terry


I opened the src.pro file and commented out that particular line. But it still throws the same error. I thought it should have thrown a different error ;)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #11 on: September 19, 2012, 06:43:18 AM »
sling-shot and agmg,     
I'd recommend that you explore the right click menu provided by pkgutils-kde/pkgutils-thunar. The deeper you look into these, the more you will come to understand, IMO.     

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1899
  • Certified Windows Hater
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #12 on: September 19, 2012, 06:46:15 AM »
sling-shot and agmg,     
I'd recommend that you explore the right click menu provided by pkgutils-kde/pkgutils-thunar. The deeper you look into these, the more you will come to understand, IMO.     

Thanks for the tip Neal... much appreciated as always :)
For the whole world, you are someone.
For someone, you are the whole world.

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #13 on: September 19, 2012, 06:55:46 AM »
sling-shot and agmg,     
I'd recommend that you explore the right click menu provided by pkgutils-kde/pkgutils-thunar. The deeper you look into these, the more you will come to understand, IMO.     

Thanks.

When I run rpm -ivh command on the src.rpm of older qbittorrent version in the repository, it says user Neal does not exist or something. Does that mean you had packaged it earlier?
Right now, I am unable to build even the older version here, although it should as it was built successfully, probably by you, earlier :)
Hmmm....

This needs a large contiguous parcel of free time to figure out unlike my present bit by bit approach. I will try alternative and smaller looking packages first and come back later.

In the meantime if there is any other information, please give :)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: FirstEffort - Getting errors trying to package qbittorent update
« Reply #14 on: September 19, 2012, 07:04:21 AM »
Grab the pkgutils src.rpm. Extract it with the right click "install for build" entry. Or open it with File Roller. Open the spec file. In it you will see the list of utilities installed (%files) - mkrepo for example. Look for those in your system. Open each and review it. In this way, you can learn what commands are used and how.