Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412755 - =net-p2p/deluge-1.3* should depend on <net-libs/rb_libtorrent-0.16.0
Summary: =net-p2p/deluge-1.3* should depend on <net-libs/rb_libtorrent-0.16.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 414997
  Show dependency tree
 
Reported: 2012-04-20 09:19 UTC by Bernard Cafarelli
Modified: 2012-06-15 23:56 UTC (History)
6 users (show)

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


Attachments
Fix for magnet links (rb_libtorrent-0.16.0-magnetlinks.patch,633 bytes, patch)
2012-05-13 18:14 UTC, Holger Hoffstätte
Details | Diff
Fix for ebuild to include patch (rb_libtorrent-0.16.0.ebuild.patch,326 bytes, patch)
2012-05-13 18:16 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Cafarelli gentoo-dev 2012-04-20 09:19:02 UTC
1.3.3 (in-tree) and 1.3.5 (upstream current version) do not work correctly with rb_libtorrent-0.16.0

Some bugs found:
http://dev.deluge-torrent.org/ticket/2083
http://forum.deluge-torrent.org/viewtopic.php?f=8&t=39665
https://bugs.archlinux.org/task/29414

Upstream recommends 0.15.x for the 1.3 branch
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-04-20 09:24:18 UTC
rb_libtorrent is not slotted, so setting < dependencies would not be legal, so this leaves us with package.masking (and possible lastriting) deluge
Comment 2 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-04-20 17:51:58 UTC
(In reply to comment #1)
> rb_libtorrent is not slotted, so setting < dependencies would not be legal,
> so this leaves us with package.masking (and possible lastriting) deluge

The devmanual says nothing about < not being legal unless the package is slotted.

http://devmanual.gentoo.org/general-concepts/dependencies/index.html

I think a DEPEND="<net-libs/rb_libtorrent-0.16.0" would be legal and perfectly acceptable. At some pont, the only version below that that would need to be maintained would be 0.15.10 (or a later version if the 0.15 branch continues) and basically, if you want to use deluge (and not qbittorrent or any of the other consumers of rb_libtorrent), you're stuck with <0.16.0 (for now at least).
Comment 3 Pacho Ramos gentoo-dev 2012-04-20 18:24:28 UTC
I am completely against lastritting this, I would wait a bit more to leave upstream time to update it
Comment 4 Pacho Ramos gentoo-dev 2012-04-20 18:25:33 UTC
Was this even reported to upstream?
Comment 5 Pacho Ramos gentoo-dev 2012-04-20 18:25:52 UTC
(In reply to comment #4)
> Was this even reported to upstream?

ignore this please :S
Comment 6 Pacho Ramos gentoo-dev 2012-04-20 18:27:24 UTC
And I also think we should be able to use "<" depend (like a ton of packages are already doing in the tree)
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-04-21 11:50:02 UTC
(In reply to comment #6)
> And I also think we should be able to use "<" depend (like a ton of packages
> are already doing in the tree)

Bug 311241, Comment #5

A package can't force downgrade on another package on a same stabilization level. Most definately not if it's headers and/or library, like rb_libtorrent is.
What you are suggesting is fine is same as if I had "fixed" the libpng 1.5 bugs by just setting < dependencies and calling it a day...

The options here are to:

1. package.mask new rb_libtorrent and wait for all reverse dependencies to become compatible
2. package.mask deluge waiting for compatible version
3. drop KEYWORDS to "" in every deluge ebuild (same as 2. but in a different way)
4. package.mask deluge for removal (which is why treecleaner@ is now in CC)

Once 1, 2, 3 or 4 is done, then you can set the < depend since it won't be forcing a downgrade on the same stabilization level anymore
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-04-21 11:51:20 UTC
This is really packaging ABC, I'm actually quite disappointed something this obvious isn't clear to everyone. It's common sense!
Comment 9 Pacho Ramos gentoo-dev 2012-04-21 12:11:47 UTC
Is this is official policy, we need to start doing the same for many more packages (I remember a lot of sci* packages were forcing "<" deps and looks like nobody cared of that)
Comment 10 Pacho Ramos gentoo-dev 2012-04-21 12:16:49 UTC
(In reply to comment #9)
> Is this is official policy, we need to start doing the same for many more
> packages (I remember a lot of sci* packages were forcing "<" deps and looks
> like nobody cared of that)

Is -> If

Also, starting to "try to clean packages" only 10 days after 0.16 release looks too fast to me (we don't even have that recommended 0.15.10 in stable yet)

And, are the rest of packages in the tree depending on net-libs/rb_libtorrent still working ok with 0.16.0?
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-04-21 12:26:11 UTC
(In reply to comment #9)
> Is this is official policy, we need to start doing the same for many more
> packages (I remember a lot of sci* packages were forcing "<" deps and looks
> like nobody cared of that)

Of course it's an official policy to not break the tree integrity (which is what setting < dependencies on same stabilization level essentially is).

It seems to me that the first failure here was the bump of rb_libtorrent-0.16.0 to ~arch instead of package.mask for testing.

I try to catch many as these cases I can, but absolutely if some sci@ or others have slipped through, they should be addressed
Comment 12 Pacho Ramos gentoo-dev 2012-04-21 12:37:56 UTC
OK, then will try to report this issues when I found them, maybe a tracker (assigned to QA and with a reasoning) would be better. Could you please open that tracker bug with explanation about the problem and options to handle it? (looks like slotting if possible, dropping keywords, masking for removal...)

Regarding this exact issue, I would vote for hardmasking rb_libtorrent-0.16, looks like it has a few consumers in the tree and deluge looks like a important one to me, also, deluge has an active upstream and they are aware of the problem, and nothing is forcing us (yet) to move to 0.16 soon
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2012-04-22 17:04:24 UTC
Another option is using the included libtorrent...if that makes you more happy...
Comment 14 Holger Hoffstätte 2012-04-29 13:38:39 UTC
The patch mentioned in http://dev.deluge-torrent.org/ticket/2083 restores Magnet link handling. With this patch Deluge works just fine (for me) against 0.16.0.
Comment 15 Craig Andrews gentoo-dev 2012-05-04 00:34:49 UTC
IMHO, it sounds like the bug is in net-libs/rb_libtorrent, not in deluge. I reported the bug in libtorrent: https://code.google.com/p/libtorrent/issues/detail?id=317
Comment 16 Craig Andrews gentoo-dev 2012-05-04 03:06:02 UTC
From the libtorrent bug tracker: https://code.google.com/p/libtorrent/issues/detail?id=317#c1

"Thanks. This has already been fixed in the release branch and will be in 0.16.1"

So it looks like the resolution to this issue should be that net-libs/rb_libtorrent is bumped to 0.16.1 (once 0.16.1 is released, of course), and nothing should be done to deluge.
Comment 17 Pacho Ramos gentoo-dev 2012-05-13 17:41:28 UTC
Reassigning to rb_libtorrent maintainers then
Comment 18 Markos Chandras (RETIRED) gentoo-dev 2012-05-13 17:53:05 UTC
There is nothing for us ( rb_littorrent maintainers ) to do here. There is no new release of rb_libtorrent so I see no reason for us to be here. This bug should be handled by net-p2p@ team and closed once the new rb_litorrent hits the tree
Comment 19 Pacho Ramos gentoo-dev 2012-05-13 18:01:10 UTC
Cannot the patch be applied to our  version?
Comment 20 Holger Hoffstätte 2012-05-13 18:14:46 UTC
Created attachment 311651 [details, diff]
Fix for magnet links
Comment 21 Holger Hoffstätte 2012-05-13 18:16:44 UTC
Created attachment 311653 [details, diff]
Fix for ebuild to include patch
Comment 22 Holger Hoffstätte 2012-05-13 18:17:30 UTC
 (In reply to comment #19)
> Cannot the patch be applied to our  version?

Sure it can, see attachments. Works for me just fine.
Comment 23 Holger Hoffstätte 2012-06-11 18:27:57 UTC
rb_libtorrent-0.16.1 is out and contains the upstream fix I attached previously, as well as several others. It works fine with deluge 1.3.5 and makes this bug obsolete.
Comment 24 Markos Chandras (RETIRED) gentoo-dev 2012-06-15 23:56:29 UTC
0.16.1 is now in tree