Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 958526 - sys-libs/pam: pam should add USE flag doc
Summary: sys-libs/pam: pam should add USE flag doc
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-21 04:39 UTC by jiakang.cjk
Modified: 2025-06-21 10:26 UTC (History)
2 users (show)

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 jiakang.cjk 2025-06-21 04:39:09 UTC
>=sys-libs/pam-1.7.0 depend

app-text/docbook-xsl-ns-stylesheets
dev-libs/libxslt

all of them used by docs


my custom overlay repo tested

# diff -ur /var/db/repos/gentoo/sys-libs/pam/pam-1.7.1.ebuild pam-1.7.1-r100.ebuild                      
--- /var/db/repos/gentoo/sys-libs/pam/pam-1.7.1.ebuild  2025-06-18 11:11:25.000000000 +0800
+++ pam-1.7.1-r100.ebuild       2025-06-21 12:30:18.066456966 +0800
@@ -35,16 +35,13 @@
 
 LICENSE="|| ( BSD GPL-2 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="alpha amd64 arm arm64 hppa loong m68k mips ppc ppc64 riscv s390 sparc x86 ~amd64-linux ~x86-linux"
 IUSE="audit berkdb elogind examples debug nis nls selinux systemd"
 REQUIRED_USE="?? ( elogind systemd )"
 
 # meson.build specifically checks for bison and then byacc
-# also requires xsltproc
 BDEPEND+="
        || ( sys-devel/bison dev-util/byacc )
-       app-text/docbook-xsl-ns-stylesheets
-       dev-libs/libxslt
        sys-devel/flex
        virtual/pkgconfig
        nls? ( sys-devel/gettext )
@@ -119,7 +116,7 @@
                -Dhtmldir="${EPREFIX}"/usr/share/doc/${PF}/html
                -Dpdfdir="${EPREFIX}"/usr/share/doc/${PF}/pdf
 
-               $(meson_native_enabled docs)
+               -Ddocs=disabled
 
                -Dpam_unix=enabled
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-06-21 06:29:54 UTC
Bugs like this should come with some rationale / context too.

See https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0305. If the Meson option covers man pages too, we will have to generate them in a tarball and include them I guess.
Comment 2 jiakang.cjk 2025-06-21 10:25:35 UTC
(In reply to Sam James from comment #1)
> Bugs like this should come with some rationale / context too.
> 
> See https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0305.
> If the Meson option covers man pages too, we will have to generate them in a
> tarball and include them I guess.

My gentoo system is very small, so I pay attention to every package installed.

After sys-libs/pam was upgraded to 1.7.0/1.7.1, app-text/docbook-xsl-ns-stylesheets and dev-libs/libxslt are added.

If they are critical dependencies, I accepted them. However, upon testing, these dependencies are only for document.

Many packages have USE=doc, so I think it's reasonable to add a USE=doc to sys-libs/pam.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-06-21 10:26:58 UTC
Right. We just need to determine if they control man pages. If they do, we must pregenerate a tarball for them.