Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381837 - net-p2p/deluge USE=-gtk should not install GTK+ related files
Summary: net-p2p/deluge USE=-gtk should not install GTK+ related files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paolo Pedroni
URL:
Whiteboard:
Keywords:
: 578074 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-05 00:04 UTC by Tim Harder
Modified: 2022-05-10 19:40 UTC (History)
4 users (show)

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


Attachments
deluge.patch (deluge.patch,5.97 KB, patch)
2016-03-19 20:44 UTC, .
Details | Diff
deluge-fix-bug-381837 (deluge-fix-bug-381837.patch,16.42 KB, patch)
2016-06-01 11:54 UTC, Paolo Pedroni
Details | Diff
deluge-remove-old.patch (deluge-remove-old.patch,3.50 KB, patch)
2016-06-01 11:56 UTC, Paolo Pedroni
Details | Diff
deluge-fix-bug-381837.patch (deluge-fix-bug-381837.patch,6.67 KB, patch)
2016-06-17 13:01 UTC, Paolo Pedroni
Details | Diff
deluge-remove-old.patch (deluge-remove-old.patch,3.54 KB, patch)
2016-06-17 13:03 UTC, Paolo Pedroni
Details | Diff
deluge-sync-live-ebuild.patch (deluge-sync-live-ebuild.patch,5.14 KB, patch)
2016-06-17 13:04 UTC, Paolo Pedroni
Details | Diff
deluge-add-stable-live-ebuild.patch (deluge-add-stable-live-ebuild.patch,5.12 KB, patch)
2016-06-17 13:06 UTC, Paolo Pedroni
Details | Diff
0001-net-p2p-deluge-Make-UI-installation-USE-conditional.patch (0001-net-p2p-deluge-Make-UI-installation-USE-conditional.patch,6.73 KB, patch)
2016-06-20 10:13 UTC, Paolo Pedroni
Details | Diff
0002-net-p2p-deluge-Remove-old.patch (0002-net-p2p-deluge-Remove-old.patch,3.88 KB, patch)
2016-06-20 10:13 UTC, Paolo Pedroni
Details | Diff
0003-net-p2p-deluge-Sync-live-ebuild-to-latest-changes.patch (0003-net-p2p-deluge-Sync-live-ebuild-to-latest-changes.patch,5.44 KB, patch)
2016-06-20 10:14 UTC, Paolo Pedroni
Details | Diff
0004-net-p2p-deluge-Add-stable-live-ebuild.patch (0004-net-p2p-deluge-Add-stable-live-ebuild.patch,5.46 KB, patch)
2016-06-20 10:15 UTC, Paolo Pedroni
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Harder gentoo-dev 2011-09-05 00:04:10 UTC
Specifically the main problem is that /usr/bin/deluge-gtk is still installed when the gtk use flag is disabled.
Comment 1 Benda Xu gentoo-dev 2013-04-01 08:31:13 UTC
Hmm, this is annoying. There seems to be no way in the build system to disable gtk?
Comment 2 Paolo Pedroni 2016-02-29 14:51:52 UTC
My plan to "solve" this is to remove "gtk" USE flag and install everything unconditionally. Any objections?
Comment 3 . 2016-03-04 22:44:46 UTC
(In reply to Paolo Pedroni from comment #2)
> My plan to "solve" this is to remove "gtk" USE flag and install everything
> unconditionally. Any objections?
Yes. I, for one, don't want GTK on a headless device.

It'd be probably too much hacking to prevent it from building, but it's easy to do it like debian does - simply prevent incriminating files from installing.

Also please note that it doesn't affect just deluge-gtk, but deluge-web, deluge-console and deluged as well. Every component should be optional, but at least one selected.
Comment 4 Paolo Pedroni 2016-03-07 08:16:01 UTC
(In reply to Jan Chren (rindeal) from comment #3)
> (In reply to Paolo Pedroni from comment #2)
> > My plan to "solve" this is to remove "gtk" USE flag and install everything
> > unconditionally. Any objections?
> Yes. I, for one, don't want GTK on a headless device.
> 
> It'd be probably too much hacking to prevent it from building, but it's easy
> to do it like debian does - simply prevent incriminating files from
> installing.
> 
> Also please note that it doesn't affect just deluge-gtk, but deluge-web,
> deluge-console and deluged as well. Every component should be optional, but
> at least one selected.

I'll take a look at the Debian Package, then, and I'll see if it easy to implement, but it's going to take some time.
Comment 5 Benda Xu gentoo-dev 2016-03-07 09:14:24 UTC
(In reply to Paolo Pedroni from comment #4)
> (In reply to Jan Chren (rindeal) from comment #3)
> > (In reply to Paolo Pedroni from comment #2)
> > > My plan to "solve" this is to remove "gtk" USE flag and install everything
> > > unconditionally. Any objections?
> > Yes. I, for one, don't want GTK on a headless device.
> > 
> > It'd be probably too much hacking to prevent it from building, but it's easy
> > to do it like debian does - simply prevent incriminating files from
> > installing.
> > 
> > Also please note that it doesn't affect just deluge-gtk, but deluge-web,
> > deluge-console and deluged as well. Every component should be optional, but
> > at least one selected.
> 
> I'll take a look at the Debian Package, then, and I'll see if it easy to
> implement, but it's going to take some time.

In Debian, everything is built and different sets of files are packaged into different packages.
Comment 6 Paolo Pedroni 2016-03-07 09:25:31 UTC
(In reply to Benda Xu from comment #5)
> In Debian, everything is built and different sets of files are packaged into
> different packages.

I know. I meant that I'd look into the Debian package and see how it's split up and see if I can replicate that in the gentoo ebuild.

Thanks for the feedback, anyway. :)
Comment 7 . 2016-03-19 20:44:03 UTC
Created attachment 428612 [details, diff]
deluge.patch

Sample ebuild implementing this: https://github.com/rindeal/gentoo-overlay/blob/master/net-p2p/deluge/deluge-1.3.12-r4.ebuild

There are more changes in my overlay, but probably only python_install_all() and *DEPEND will interest you.
Comment 8 Paolo Pedroni 2016-03-21 09:43:49 UTC
(In reply to Jan Chren (rindeal) from comment #7)
> Created attachment 428612 [details, diff] [details, diff]
> deluge.patch
> 
> Sample ebuild implementing this:
> https://github.com/rindeal/gentoo-overlay/blob/master/net-p2p/deluge/deluge-
> 1.3.12-r4.ebuild
> 
> There are more changes in my overlay, but probably only python_install_all()
> and *DEPEND will interest you.

Thanks for your patch. I had already written something similar on my own, but yours looks better, and I'll sure much of your patch.

I'm currently waiting to see bug #576910 solved before I commit anything more.
Comment 9 Paolo Pedroni 2016-03-24 11:30:13 UTC
*** Bug 578074 has been marked as a duplicate of this bug. ***
Comment 10 Paolo Pedroni 2016-06-01 11:54:30 UTC
Created attachment 436008 [details, diff]
deluge-fix-bug-381837

This patch adds support for selection of installed UIs (plus a few miscellaneous fixes), adds a "stable" live ebuild and fixes development live ebuild.

I took the liberty to add k_f@gentoo.org to the bug and I invite him to merge this to the portage tree as discussed in github PR #1324.
Comment 11 Paolo Pedroni 2016-06-01 11:56:11 UTC
Created attachment 436010 [details, diff]
deluge-remove-old.patch

This patch removes version 1.3.12-r3, which is not needed anymore.
Comment 12 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-06-04 16:37:09 UTC
(In reply to Paolo Pedroni from comment #10)


> I took the liberty to add k_f@gentoo.org to the bug and I invite him to
> merge this to the portage tree as discussed in github PR #1324.

Smart move :)
Comment 13 Paolo Pedroni 2016-06-17 13:01:54 UTC
Created attachment 437828 [details, diff]
deluge-fix-bug-381837.patch

Here we go! First of the revised patches.
Comment 14 Paolo Pedroni 2016-06-17 13:03:17 UTC
Created attachment 437830 [details, diff]
deluge-remove-old.patch

Second patch: remove old -r3 ebuild
Comment 15 Paolo Pedroni 2016-06-17 13:04:50 UTC
Created attachment 437832 [details, diff]
deluge-sync-live-ebuild.patch

Third patch: sync live ebuild to latest fixes.
Comment 16 Paolo Pedroni 2016-06-17 13:06:08 UTC
Created attachment 437834 [details, diff]
deluge-add-stable-live-ebuild.patch

Fourth patch: add stable live ebuild
Comment 17 Paolo Pedroni 2016-06-20 10:13:05 UTC
Created attachment 438084 [details, diff]
0001-net-p2p-deluge-Make-UI-installation-USE-conditional.patch

First patch, reformatted as per k_f request.
Comment 18 Paolo Pedroni 2016-06-20 10:13:53 UTC
Created attachment 438086 [details, diff]
0002-net-p2p-deluge-Remove-old.patch

Second patch, reformatted as per k_f request
Comment 19 Paolo Pedroni 2016-06-20 10:14:45 UTC
Created attachment 438088 [details, diff]
0003-net-p2p-deluge-Sync-live-ebuild-to-latest-changes.patch

Third patch, reformatted as per k_f request
Comment 20 Paolo Pedroni 2016-06-20 10:15:30 UTC
Created attachment 438090 [details, diff]
0004-net-p2p-deluge-Add-stable-live-ebuild.patch

Fourth patch, reformatted as per k_f request
Comment 21 Paolo Pedroni 2016-06-24 14:00:43 UTC
Fixed in net-p2p/deluge-1.3.12-r4.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406fd0f543d40c4dc292704883d0b2304d312bf1