Bug#834250: btfs: FTBFS: btfs.cc:580:19: error: no match for 'operator=' (operand types are 'boost::shared_ptr' and 'libtorrent::torrent_info*')

2016-08-18 Thread peter green

It looks like this has been fixed upstream

https://github.com/johang/btfs/issues/28

However my attempts to backport the fixes failed to result in a 
succesful build. Maybe it's time for the maintainer to update the 
package to a newer upstream.




Bug#834250: btfs: FTBFS: btfs.cc:580:19: error: no match for 'operator=' (operand types are 'boost::shared_ptr' and 'libtorrent::torrent_info*')

2016-08-13 Thread Chris Lamb
Source: btfs
Version: 2.4-1
Severity: serious
Justification: fails to build from source
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Dear Maintainer,

btfs fails to build from source in unstable/amd64:

  [..]

  btfs.cc:66:41: warning: 'const libtorrent::torrent_info& 
libtorrent::torrent_handle::get_torrent_info() const' is deprecated 
[-Wdeprecated-declarations]
for (; piece < handle.get_torrent_info().num_pieces(); piece++) {
   ^
  In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
   from /usr/include/libtorrent/session.hpp:53,
   from btfs.cc:31:
  /usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
 const torrent_info& get_torrent_info() const;
 ^~~~
  btfs.cc: In function 'void jump(int, int)':
  btfs.cc:83:35: warning: 'const libtorrent::torrent_info& 
libtorrent::torrent_handle::get_torrent_info() const' is deprecated 
[-Wdeprecated-declarations]
int pl = handle.get_torrent_info().piece_length();
 ^
  In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
   from /usr/include/libtorrent/session.hpp:53,
   from btfs.cc:31:
  /usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
 const torrent_info& get_torrent_info() const;
 ^~~~
  btfs.cc: In constructor 'btfs::Read::Read(char*, int, int, int)':
  btfs.cc:100:62: warning: 'const libtorrent::torrent_info& 
libtorrent::torrent_handle::get_torrent_info() const' is deprecated 
[-Wdeprecated-declarations]
libtorrent::torrent_info metadata = handle.get_torrent_info();
^
  In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
   from /usr/include/libtorrent/session.hpp:53,
   from btfs.cc:31:
  /usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
 const torrent_info& get_torrent_info() const;
 ^~~~
  btfs.cc:102:54: warning: 'libtorrent::file_entry 
libtorrent::torrent_info::file_at(int) const' is deprecated 
[-Wdeprecated-declarations]
libtorrent::file_entry file = metadata.file_at(index);
^
  In file included from btfs.cc:30:0:
  /usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
 file_entry file_at(int index) const { return m_files.at_deprecated(index); 
}
^~~
  btfs.cc: In function 'void setup()':
  btfs.cc:175:56: warning: 'const libtorrent::torrent_info& 
libtorrent::torrent_handle::get_torrent_info() const' is deprecated 
[-Wdeprecated-declarations]
libtorrent::torrent_info ti = handle.get_torrent_info();
  ^
  In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
   from /usr/include/libtorrent/session.hpp:53,
   from btfs.cc:31:
  /usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
 const torrent_info& get_torrent_info() const;
 ^~~~
  btfs.cc:186:32: warning: 'libtorrent::file_entry 
libtorrent::torrent_info::file_at(int) const' is deprecated 
[-Wdeprecated-declarations]
 char *p = strdup(ti.file_at(i).path.c_str());
  ^
  In file included from btfs.cc:30:0:
  /usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
 file_entry file_at(int index) const { return m_files.at_deprecated(index); 
}
^~~
  btfs.cc:206:27: warning: 'libtorrent::file_entry 
libtorrent::torrent_info::file_at(int) const' is deprecated 
[-Wdeprecated-declarations]
 files["/" + ti.file_at(i).path] = i;
 ^
  In file included from btfs.cc:30:0:
  /usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
 file_entry file_at(int index) const { return m_files.at_deprecated(index); 
}
^~~
  btfs.cc: In function 'void* alert_queue_loop(void*)':
  btfs.cc:318:30: warning: 'void 
libtorrent::session_handle::pop_alerts(std::deque*)' is 
deprecated [-Wdeprecated-declarations]
 session->pop_alerts();
^
  In file included from /usr/include/libtorrent/session.hpp:53:0,
   from btfs.cc:31:
  /usr/include/libtorrent/session_handle.hpp:916:8: note: declared here
 void pop_alerts(std::deque* alerts);
  ^~
  btfs.cc: In function 'int btfs_getattr(const char*, stat*)':
  btfs.cc:352:28: warning: 'const libtorrent::torrent_info& 
libtorrent::torrent_handle::get_torrent_info() const' is deprecated 
[-Wdeprecated-declarations]