Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: Stuart Prescott Newsgroups: linux.debian.bugs.dist,linux.debian.maint.python,linux.debian.policy Subject: Bug#906949: Clarify documentation location in a Python2-less distribution Date: Wed, 22 Aug 2018 17:30:01 +0200 Message-ID: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Aug 22 15:21:16 2018 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -2.19 Reply-To: Stuart Prescott , 906949@bugs.debian.org Original-Sender: Stuart Prescott Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debhelper-devel@lists.alioth.debian.org, debian-python@lists.debian.org, Debian Policy Editors X-Debian-Pr-Message: report 906949 X-Debian-Pr-Package: debian-policy X-Debian-Pr-Source: debian-policy X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 150; neutral, 171; spammy, 0. spammytokens: hammytokens:0.000-+--debianpolicy, 0.000-+--debian-policy, 0.000-+--H*UA:5.2.3, 0.000-+--H*u:5.2.3, 0.000-+--U*debian-python Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanonanonano-net.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=0j6Urkg5RkfepOfQUrgJGLLsZpvERC4csXxcsuaEBIU=; b=LuzJlxv1YITGx955VFjyc3RslMV0FdL9gfk0Kfiz3PY9LRqkx9XFUaXr4WM8LuYsXV +ZzpgW/YNTUDp6rqZIP7FN7Z48fzvFuzHxzPYzQO1jyqSW9rb1u2hICeaWBnYx34mSkO VzKobK8UkqRS6c6xfyfanODVAotTh3+YzJr8N76iXB90ZoOOfywaXuqIlLdpqEBFBStJ KlMVU5Nq1kwuL8uzOlPRxwwll6B5NVKfZm4iyiYZ+OS5WCTr5zcX/bo2t6RlqmuIyctL 2TiyFbL4qrKWd9w8ZmPsVXJeWtuzragrDWSqH+C76l6UtSJgFltWl1ImTki6SmH/8Efk uSaQ== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=0j6Urkg5RkfepOfQUrgJGLLsZpvERC4csXxcsuaEBIU=; b=VyC/9o8sewBMv6sl8liK6q5Tapk1H5lFxgEePatx3JX5v0P5pgIeVoArffwjVMboNX 9em1SFoN70NPyKz1Oxhx0kwla++OREIpFkmJYzpKeExP1Li48PB0Ex0FXam/5lwI3Wb7 U68sQpUrRYPZxNPn+w1m+jW1xYpXUruPc1iJC2q+zyecDq2sArObV6miNxwVqHU2ALkP OBXxwYtkZwFNsXbyeUZncQ9G0KrB3G8RcByKF/StXQaANk7BSxjZ4vcqaRdydYkDTGUG 465oBYz+5PODfBN5Y/NqkXOr76bFxEpIiSf7nTFcsbQAplYEjd/0DV/lD9E5D3UB+lCH +FyA== X-Gm-Message-State: APzg51Ai6auiDskGOlGfRJZ/vFVi+s6Ha07ugUJucXrqynC4ezxoouKz FwUUsP2xBjprUCWeeDxaaVVoHKDYbNY= X-Google-SMTP-Source: ANB0VdYpXaBy6ObEI5AdW214KJHFMTn66STDiN+rpDhelBfr4wqnCJ33EMYASPYes0npP9IOOlPFPQ== X-Received: by 2002:a63:5c10:: with SMTP id q16-v6mr41766pgb.452.1534951249382; Wed, 22 Aug 2018 08:20:49 -0700 (PDT) Sender: robomod@news.nic.it User-Agent: KMail/5.2.3 (Linux/4.9.0-7-amd64; KDE/5.28.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Debian-Message: from BTS X-Mailing-List: archive/latest/1480764 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 82 Organization: linux.* mail to news gateway X-Original-Date: Thu, 23 Aug 2018 01:20:44 +1000 X-Original-Message-ID: <5322612.sEOWlKWjuR@simurgh> X-Original-Sender: Stuart Prescott Xref: csiph.com linux.debian.bugs.dist:914137 linux.debian.maint.python:10839 linux.debian.policy:6811 Package: debian-policy X-Debbugs-CC: debhelper-devel@lists.alioth.debian.org, debian-python@lists.= debian.org Hi! [ Promised follow up to the Python BoF at DebConf ] =46or historical reasons, Python 2 modules are packaged as python-foo while= =20 Python 3 modules are python3-foo. Documentation was originally only for=20 Python 2 modules (but in any event is normally interpreter independent) and= =20 so is found in python-foo-doc packages. Policy =A712.3 (from version 3.9.7) recommends that documentation from the= =20 python-foo-doc package be installed in /usr/share/doc/python-foo/ and not i= n=20 /usr/share/doc/python-foo-doc/. From debhelper 10.8, dh_installdocs now doe= s=20 this automatically. In buster, documentation in python-foo-doc is slowly=20 drifting over to /usr/share/doc/python-foo as packages are updated to compa= t=20 11. After the release of buster, we can expect to see Python 2 modules being=20 dropped from the archive. Policy =A712.3 and debhelper's interpretation of= =20 "main package" will suddenly cause documentation move from=20 /usr/share/doc/python-foo to /usr/share/doc/python3-foo. This seems somewha= t=20 perverse for the user, will require changes to packaging (doc-base, rules,= =20 links) and perhaps code patches to packages that can display their own=20 documentation. The BoF felt it made sense to adopt a standardised approach and to have thi= s=20 sorted prior to the buster release in case any tooling changes are required= =2E=20 This affects about 700 packages. We seek some input from the policy and debhelper people in defining what th= is=20 approach should be. The following options exist: a) do nothing: allow all the documentation to drift slowly over to=20 /usr/share/doc/python3-foo, probably releasing buster and bullseye with a b= it=20 of a mess of locations: /usr/share/doc/python-foo-doc,=20 /usr/share/doc/python-foo, /usr/share/doc/python3-foo. This seems pretty ba= d=20 for our users. b) keep using /usr/share/doc/python-foo: do we stick with=20 /usr/share/doc/python-foo as a version-independent path even though no such= =20 package exists once the Python 2 package is gone? (I think there are=20 currently no /usr/share/doc/ paths that don't match /usr/share/doc/$package) c) coordinated move: do we try to switch the "main package" to the Python 3= =20 variant now so that all documentation moves over to=20 /usr/share/doc/python3-foo? Churning d/control on 700 packages doesn't seem= =20 fun, so perhaps debhelper can assist? d) revert to /usr/share/doc/python-foo-doc: do we ignore policy's=20 recommendation, overriding (or changing) dh_installdocs? While=20 /usr/share/doc/main-package is only a recommendation in policy, 700=20 python-foo-doc packages deliberately ignoring it seems wrong. Thanks in advance for your suggestions! Stuart (on behalf of the Python BoF at DebConf18) =2D-=20 Stuart Prescott http://www.nanonanonano.net/ stuart@nanonanonano.net Debian Developer http://www.debian.org/ stuart@debian.org GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7