Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Tomasz Rybak Newsgroups: linux.debian.maint.python Subject: Re: Old generated binary dependencies after renaming psycopg Date: Wed, 18 Jan 2023 00:20:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Jan 17 23:18:13 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-113.873 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, 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_MED=-2.3, SARE_MSGID_LONG40=0.637, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-oXYsolJmy9/T+GmtZKr0" User-Agent: Evolution 3.46.3-1 MIME-Version: 1.0 X-Debian-User: serpent X-Mailing-List: archive/latest/20725 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/a411699c7cd53014689e88b43edb861aa6a15989.camel@debian.org Approved: robomod@news.nic.it Lines: 91 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 18 Jan 2023 00:01:45 +0100 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:14843 --=-oXYsolJmy9/T+GmtZKr0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2023-01-17 at 09:20 +0000, Julian Gilbey wrote: > On Tue, Jan 17, 2023 at 09:08:01AM +0100, Tomasz Rybak wrote: > > Hello. > > After fixing #1016031=C2=A0"psycopg3: binary package name should be pyt= hon3- > > psycopg" > > (I renamed package names, full changes: > > * python3-psycopg3 -> python3-psycopg > > * python3-psycopg3-pool -> python3-psycopg-pool > > * python-psycopg3-doc -> python3-psycopg-doc) > > I tried to rebuild reverse dependencies, > > i.e. pgcli and python3-pgspecial. > > Rebuild went without problems, new packages are the same > > as old ones, but their binary packages still depend on python3- > > psycopg3, > > even though they build-depend on python3-psycopg. >=20 > Nope, pgcli does not build-depend on it, rather it explicitly > specifies Depends: python3-psycopg3. Likewise, python-pgspecial > specifies the same Depends (though it also has a Build-Depends: > python3-psycopg3). These packages will need their dependencies > updating. (You might also consider making python3-psycopg Provides: > python3-psycopg3 and likewise for the other two binary packages for > bookworm.) >=20 No, this is not the problem. I checked (rebuilt packages with) different variants - with and without python3-psycopg[3] as explicit dependency. In all the cases dependency for python3-psycopg3 comes from ${python3:Depends} via pgcli/debian/pgcli.substvars which contains python3:Depends=3Dpython3-cli-helpers, python3-click, python3-configobj, python3-pendulum, python3-pgspecial, python3-prompt-toolkit, python3- psycopg3, python3-pygments, python3-setproctitle, python3-sqlparse (>=3D 0.3), python3:any. When python3-psycopg is in Depends in debian/control, it just gets added - so binary package's Depends contains it twice (once python3-psycopg3 from ${python3:Depends, once python3-psycopg mentioned explicitly; in case of pgcli the second one is versioned). Sample line from control file for pgcli, which contains both python3-psycopg and python3-psycopg3: Depends: python3-cli-helpers, python3-pendulum, python3-pgspecial (>=3D 2), python3-pkg-resources, python3-prompt-toolkit (>=3D 3.0), python3- psycopg (>=3D 3.0.14), python3-sqlparse (>=3D 0.3), python3-tabulate, python3-terminaltables, python3-click, python3-configobj, python3- psycopg3, python3-pygments, python3-setproctitle, python3:any I tried to analyze dh_python3, but could not understand where exactly fills it in list of (additional) dependencies. They are generated somewhere between dh_python3, dhpython/pydist.py, and dhpython/depends.py (all files belong to package dh-python and are in /usr/share/dh-python). So - any tips how to fix it would be really helpful. Best regards. --=20 Tomasz Rybak, Debian Developer GPG: A565 CE64 F866 A258 4DDC=C2=A0F9C7 ECB7 3E37 E887 AA8C --=-oXYsolJmy9/T+GmtZKr0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQJHBAABCgAxFiEE1bhtbqZEgXjcK9cyggqgxGY3jWkFAmPHKNoTHHNlcnBlbnRA ZGViaWFuLm9yZwAKCRCCCqDEZjeNaeUFD/9/k5xqsRn2C5d3u7bkefbCqgjq6KIu 9fVqKlBo80JssNLQv2zUStCrrHeDjw1qX/ecnzSnXRHRPFY5mL9vqqXt6UUPSz9R oJA7rWyvKjd+LSSKSLPgydeY5fQdmfBqJd/LXYgm/RxMJdST+XscUT8VsXGsuqOf ITGQ2C9r7tn/uBFE6gL8HSNVa5gKCO4Ycfzp346wT1eGGGaTecr2oOq/BiQZ8sRv qk57wyPgTIrNujat1L5cVQ/nLJPFG+TTZsfh+FhJ8z41Xy8hE/XF+yyuACaxaljy BFZHJ6XYe0hrpKe7xlrwDSnk1Q3CXKI8zemVWe8mJ7n6JY2KPBTZ6MbP58D0kg1y YBOltr5VxjC2XBDlXuRhq7WfvEBto1LA0NFW94TFlAyavK1cd2XgMEZZd4CFcbcm mx9TxM2JgejW68D17yfF8R6jQ0i+IgV24FJ2++uTD8vZGEHja7aOjWRSh+NxHbg/ GoCnEbSNKJgsmZdh5XpjwT/3lN35nvv3kUfKBLiX+/BK41T8jyqCCuHZIvUQEi2F eag7/76WZufjG9xzGwcPMkVGwvkDwPzzpUIc6RP3NpA2sn8/87N2wxkV6RWxniyv yv7SRDokLvcAmbw5cZZYzfxsI/UsL7pFEMgRuPuqnS9jsraUxVTrp1lCuqZC3i7s 6XqljXQxb75djw== =hK1U -----END PGP SIGNATURE----- --=-oXYsolJmy9/T+GmtZKr0--