Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585604 - net-misc/tor: build docs conditionally to reduce # of installed packages
Summary: net-misc/tor: build docs conditionally to reduce # of installed packages
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-11 16:18 UTC by Toralf Förster
Modified: 2019-10-03 14:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-06-11 16:18:17 UTC
This reduces especially at a dedicated tor exit relay the amount of installed packages (asciidoc depends on dev-libs/libxslt and so on):

t44 tor # diff -u tor-0.2.8.3_alpha.ebuild /usr/portage/net-misc/tor/tor-0.2.8.3_alpha.ebuild
--- tor-0.2.8.3_alpha.ebuild    2016-06-11 17:05:26.364806777 +0200
+++ /usr/portage/net-misc/tor/tor-0.2.8.3_alpha.ebuild  2016-05-27 13:03:23.098212096 +0200
@@ -17,10 +17,10 @@
 LICENSE="BSD GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
-IUSE="-bufferevents doc libressl scrypt seccomp selinux stats systemd tor-hardening transparent-proxy test web"
+IUSE="-bufferevents libressl scrypt seccomp selinux stats systemd tor-hardening transparent-proxy test web"

 DEPEND="
-       doc? ( app-text/asciidoc )
+       app-text/asciidoc
        dev-libs/libevent
        sys-libs/zlib
        bufferevents? ( dev-libs/libevent[ssl] )
@@ -50,7 +50,7 @@

        econf \
                --enable-system-torrc \
-               $(use_enable doc enable-asciidoc) \
+               --enable-asciidoc \
                --docdir="${EPREFIX}"/usr/share/doc/${PF} \
                $(use_enable stats instrument-downloads) \
                $(use_enable bufferevents) \
Comment 1 Toralf Förster gentoo-dev 2016-06-11 16:22:28 UTC
gah - bullshit
Comment 2 Toralf Förster gentoo-dev 2016-06-11 16:46:02 UTC
This is the right diff (install tested and works both at a desktop as a tor client only and at a exit relay):


ms-magpie tor # diff tor-0.2.8.3_alpha.ebuild /usr/portage/net-misc/tor/tor-0.2.8.3_alpha.ebuild
20c20
< IUSE="-bufferevents doc libressl scrypt seccomp selinux stats systemd tor-hardening transparent-proxy 
---
> IUSE="-bufferevents libressl scrypt seccomp selinux stats systemd tor-hardening transparent-proxy test
23c23
<       doc? ( app-text/asciidoc )
---
>       app-text/asciidoc
53c53
<               $(use_enable doc asciidoc) \
---
>               --enable-asciidoc \
Comment 3 Anthony Basile gentoo-dev 2016-06-11 18:29:00 UTC
the problem is this clobbers the man pages, doc files do you want to get rid of?
Comment 4 Toralf Förster gentoo-dev 2016-06-11 18:53:47 UTC
right, the doc files + their package deps, therefore https://trac.torproject.org/projects/tor/ticket/19381
Comment 5 Toralf Förster gentoo-dev 2019-06-30 09:55:05 UTC
(In reply to Toralf Förster from comment #4)
> right, the doc files + their package deps, therefore
> https://trac.torproject.org/projects/tor/ticket/19381

the Tor ticket was solved now :-)