Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12284

Re: Separate lib and executable packages?

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Scott Kitterman <debian@kitterman.com>
Newsgroups linux.debian.maint.python
Subject Re: Separate lib and executable packages?
Date Sun, 09 Feb 2020 04:10:01 +0100
Message-ID <zxL8R-1ve-1@gated-at.bofh.it> (permalink)
References <zxaj0-1TJ-3@gated-at.bofh.it> <zxoOZ-4ki-1@gated-at.bofh.it> <zxEqJ-5G3-9@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Feb 9 03:05:14 2020
Old-Return-Path <debian@kitterman.com>
X-Amavis-Spam-Status No, score=-12.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .kitterman. - helo: .interserver.kitterman. - helo-domain: .kitterman.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
Dkim-Signature v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903e; t=1581217474; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type : from; bh=wM5Z+jWW3KMNn/GKWo+aYk1eQC/PlAGG+ph9T693VEw=; b=2Lok7jlSsoc9g+/CBfpFMe1r8UtQb9hjEy/9OrJGSx+STLEUeH2kinF0 werNo14GJ9SAeKB6bbu5Lk1jW+x+Cg==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=kitterman.com; i=@kitterman.com; q=dns/txt; s=201903r; t=1581217474; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type : from; bh=wM5Z+jWW3KMNn/GKWo+aYk1eQC/PlAGG+ph9T693VEw=; b=HRxXn9hg64fxpxLAW1WnL+pTIseIE9IP47CJFIq6/UqzFFveRyHg1TjX mewLlIws6rOdpmXFopKZONvaF2A5LIqApPrYkJEJj34LuPU4Gy+XAUMONB o3otLgMGQJoF+T30K4s8CDBncJgCJscZlKaBQxzNJ14BnQH3v0nrrvW+J2 qayqJvVA6hJog5U5staCNtmV3TDp1Fsr6esv6Gs3UBGqGK34nI6agJoPJ8 +GZTrNZKEScr3VvdY0tO+dLkxI0yRFBuOAET5AeMZUwVE5u3lkxZtcaylA DYyzVY9X/3J+aBD0btIZtfxE4Jd6Th3KV3sE8n8zLKX63NysUNSfQg==
MIME-Version 1.0
Content-Type multipart/signed; boundary="nextPart1850827.A6FlsSRfIk"; micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/17908
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/1603494.snejyjfqob@l5580
Approved robomod@news.nic.it
Lines 84
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 08 Feb 2020 22:04:33 -0500
X-Original-Message-ID <1603494.snejyjfqob@l5580>
X-Original-References <20200207113600.fzlk2wzks4hwazfd@emissary.chronitis.net> <05B3F2AA-564D-4F32-BF03-99C3E646C5F8@kitterman.com> <20200208195054.upmidqwwx2stj6gw@emissary.chronitis.net>
Xref csiph.com linux.debian.maint.python:12284

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Saturday, February 8, 2020 2:50:54 PM EST Gordon Ball wrote:
> On Sat, Feb 08, 2020 at 02:42:11AM +0000, Scott Kitterman wrote:
> > On February 7, 2020 3:59:46 PM UTC, Mattia Rizzolo <mattia@debian.org> 
wrote:
> > >On Fri, Feb 07, 2020 at 11:36:00AM +0000, Gordon Ball wrote:
> > >> I wonder if this split really makes sense; it feels like adding the
> > >> overhead of an extra binary package to avoid not having a very small
> > >> file in /usr/bin if you're only planning to use the library.
> > >> 
> > >> Does it seem reasonable to drop the executable package and just make
> > >
> > >it
> > >
> > >> a Provides: of the library package? (and is there any potential
> > >
> > >breakage
> > >
> > >> here that I'm overlooking)
> > >
> > >Maybe not for ipython3, since that's very much tied to
> > >python3-ipython3.
> > >
> > >BUT, as a user (even forgetting I'm also a DD) I was hurt many times by
> > >executables in python-foo but wanting to use python3-foo instead, or by
> > >executables that moved from python-foo to python3-foo and I had to fix
> > >my own deployments, and whatnot.
> > >
> > >We are not going to have a python4 anytime soon (hopefully never), but
> > >I
> > >think that keeping a separate binary package makes sense for almost all
> > >cases I can think of packages shipping executables under /usr/bin/.
> > 
> > Except: Every time we add a binary to Debian it impacts everyone.  The
> > packages file gets bigger and so updates get slower.  Although there's no
> > firm rule, the FTP Masters discourage addition of trivially small
> > packages and so your package might be rejected.
> Perhaps this is worth making an explicit recommendation for new packages
> of this type, given that anything new _should_ be python3-only and we
> hope for at least some time before another python major version becomes
> an issue. "Packages which are primarily libraries but include an
> executable should avoid multiple binary packages without good reason"? -
> At least in the above linked style guide, since it's not normative
> policy in any case.

Sounds reasonable to me.  It's a wiki, so I'd say go for it.

> For packages already split (eg, ipython3, python3-ipython), having
> thought a bit more I suspect it's probably more trouble than it is worth
> to drop a handful of binary packages - I'm wondering about eg, what
> happens if the executable package is manually installed and the library
> hence flagged as automatically installed; if the former than becomes a
> Provides: of the latter, is it immediately a candidate for autoremoval?

Yes.  Removing the existing cases where it might not really be needed can be 
problematic.  I think it generally makes sense to leave them be.

Scott K

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Separate lib and executable packages? Gordon Ball <gordon@chronitis.net> - 2020-02-07 12:50 +0100
  Re: Separate lib and executable packages? Ondrej Novy <novy@ondrej.org> - 2020-02-07 13:50 +0100
  Re: Separate lib and executable packages? Mattia Rizzolo <mattia@debian.org> - 2020-02-07 17:10 +0100
    Re: Separate lib and executable packages? Scott Kitterman <debian@kitterman.com> - 2020-02-08 04:20 +0100
      Re: Separate lib and executable packages? Ondrej Novy <novy@ondrej.org> - 2020-02-08 14:00 +0100
        Re: Separate lib and executable packages? Scott Kitterman <debian@kitterman.com> - 2020-02-08 15:30 +0100
      Re: Separate lib and executable packages? Gordon Ball <gordon@chronitis.net> - 2020-02-08 21:00 +0100
        Re: Separate lib and executable packages? Ondrej Novy <novy@ondrej.org> - 2020-02-08 21:20 +0100
          Re: Separate lib and executable packages? Gordon Ball <gordon@chronitis.net> - 2020-02-11 11:00 +0100
        Re: Separate lib and executable packages? Scott Kitterman <debian@kitterman.com> - 2020-02-09 04:10 +0100

csiph-web