Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 277655

Summary: net-p2p/btg fails with --as-needed
Product: Gentoo Linux Reporter: Mounir Lamouri (volkmar) (RETIRED) <volkmar>
Component: Current packagesAssignee: Mounir Lamouri (volkmar) (RETIRED) <volkmar>
Status: RESOLVED WONTFIX    
Severity: normal CC: esigra, net-p2p
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 326645    
Bug Blocks: 129413    
Attachments: patch for asneeded

Description Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-07-13 14:01:35 UTC
btg-1.0.0-r1 is failing in many ways with --as-needed

- system plotmm is not recognized
- upnp support is never enabled
- compilation failures

A bug is going to be open upstream and some patches will be wrote to fix it.

If you see any --as-needed bug for btg, please, use this bug.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-10-27 11:13:36 UTC
It should compile now (by: append-flags -pthread). Didn't check these other issues.
Comment 2 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-10-31 23:42:28 UTC
Another issue has been found with the test suite:

../daemon/.libs/libdaemon.a(libdaemon_la-sessionsaver.o): In function `btg::daemon::SessionSaver::loadSessions(btg::core::os::f
stream&)':
sessionsaver.cpp:(.text+0x1c4c): warning: memset used with constant zero length parameter; this could be due to transposed para
meters
sessionsaver.cpp:(.text+0x1c4c): undefined reference to `__warn_memset_zero_len'
collect2: ld returned 1 exit status
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-07-02 14:30:30 UTC
Created attachment 237277 [details, diff]
patch for asneeded

To be applied after the previous patches, and this includes the one sed the current ebuild has in src_prepare so it can be dropped (I fixed the error by hand before realizing it was already fixed with sed in the ebuild)
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-07-02 14:32:07 UTC
Note that I couldn't test this patch because:

a) The ebuild is missing a DEPEND for dev-cpp/asio, and asio doesn't compile with gcc-4.5 per bug 326629 
b) btg doesn't support current ~arch rb_libtorrent, I'm opening a bug for that now too
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-07-02 15:16:57 UTC
(In reply to comment #4)
> Note that I couldn't test this patch because:
> 
> a) The ebuild is missing a DEPEND for dev-cpp/asio, and asio doesn't compile
> with gcc-4.5 per bug 326629 

sorry, typo. s/gcc-4.5/openssl-1/ and 1.4.5 builds fine now, but still doesn't work with ~ərch rb_libtorrent.

Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-09-23 08:04:58 UTC
Removed from tree wrt #326645.