Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Old generated binary dependencies after renaming psycopg Date: Wed, 18 Jan 2023 00:50:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Jan 17 23:45:12 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.9 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, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/20726 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/7A7AC17B-1ABF-4AA7-889D-0A3F86F4D9AE@kitterman.com Approved: robomod@news.nic.it Lines: 66 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 17 Jan 2023 23:26:32 +0000 X-Original-Message-ID: <7A7AC17B-1ABF-4AA7-889D-0A3F86F4D9AE@kitterman.com> X-Original-References: Xref: csiph.com linux.debian.maint.python:14844 On January 17, 2023 11:01:45 PM UTC, Tomasz Rybak w= rote: >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=2E >> > After fixing #1016031=C2=A0"psycopg3: binary package name should be p= ython3- >> > 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=2Ee=2E pgcli and python3-pgspecial=2E >> > 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=2E >>=20 >> Nope, pgcli does not build-depend on it, rather it explicitly >> specifies Depends: python3-psycopg3=2E Likewise, python-pgspecial >> specifies the same Depends (though it also has a Build-Depends: >> python3-psycopg3)=2E These packages will need their dependencies >> updating=2E (You might also consider making python3-psycopg Provides: >> python3-psycopg3 and likewise for the other two binary packages for >> bookworm=2E) >>=20 > >No, this is not the problem=2E >I checked (rebuilt packages with) different variants - with and >without python3-psycopg[3] as explicit dependency=2E In all the cases >dependency for python3-psycopg3 comes from ${python3:Depends} >via pgcli/debian/pgcli=2Esubstvars 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=2E3), python3:any=2E > >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)=2E > >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=2E0), python3- >psycopg (>=3D 3=2E0=2E14), python3-sqlparse (>=3D 0=2E3), python3-tabulat= e, >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=2E They are generated >somewhere between dh_python3, dhpython/pydist=2Epy, >and dhpython/depends=2Epy (all files belong to package dh-python >and are in /usr/share/dh-python)=2E > >So - any tips how to fix it would be really helpful=2E You'll need to add a py3dist-overrides file in /debian=2E The details are= in the dh-python or pybuild documentation=2E I don't recall where=2E Scott K