Use case: packages in different categories (and the same version) moth install docs cause collisions. Haskell (or toolchain) example is dev-lang/ghc and cross-${CTARGET}/ghc. I think it's not unreasonable to have some wiggle room to disambiguate paths here. Before we allowed only /usr/share/doc/${PF} as a docs location. The proposal suggests having /usr/share/doc/${PF} /usr/share/doc/${CATEGORY}-${PF} That should provide unique key. Place to plug it if agreed: https://gitweb.gentoo.org/repo/gentoo.git/tree/metadata/install-qa-check.d/08gentoo-paths#n59 # 3. check for unexpected /usr/share/doc subdirectories local doc_dirs=( "${ED%/}"/usr/share/doc/* ) for x in "${doc_dirs[@]##*/}"; do if [[ ${x} != ${PF} ]]; then bad_paths+=( "/usr/share/doc/${x}" ) fi done
On #gentoo-dev-help Alessandro-B reports another example: """ 18:05:13 < Alessandro-B> slyfox I'm on the node-overlay. The two packaged are dev-node/retry-0.12.0 and node-types/retry-0.12.0 18:06:00 < Alessandro-B> https://www.npmjs.com/package/retry 18:06:32 < Alessandro-B> https://www.npmjs.com/package/@types/retry """
Back at some point, I've pretty verbosely complained that abusing categories to disambiguate packages is a pretty bad idea. I still think it'd better to start using unique PNs rather than adding more hacks to support the bad idea.
(In reply to Sergei Trofimovich from comment #0) > The proposal suggests having > /usr/share/doc/${PF} > /usr/share/doc/${CATEGORY}-${PF} I believe that's not a good idea, from a user's point of view. Users expect documentation to be installed in ${PF}, not ${CATEGORY}-${PF}. If anything, the category shouldn't be a prefix but a suffix, so that at least it can be discovered with autocompletion.
(In reply to Ulrich Müller from comment #3) > (In reply to Sergei Trofimovich from comment #0) > > The proposal suggests having > > /usr/share/doc/${PF} > > /usr/share/doc/${CATEGORY}-${PF} > > I believe that's not a good idea, from a user's point of view. Users expect > documentation to be installed in ${PF}, not ${CATEGORY}-${PF}. If anything, > the category shouldn't be a prefix but a suffix, so that at least it can be > discovered with autocompletion. The /usr/share/doc/${PF} /usr/share/doc/${PF}-${CATEGORY} should be fine as well.
Maybe: /usr/share/doc/${PN}-*-${PVR} ?