Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775320 - net-print/hplip: add python 3.9 target
Summary: net-print/hplip: add python 3.9 target
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Daniel Pielmeier
URL: https://archives.gentoo.org/gentoo-de...
Whiteboard:
Keywords:
Depends on: 746905
Blocks: py39, python3.9-compat
  Show dependency tree
 
Reported: 2021-03-11 00:40 UTC by Anton Bolshakov
Modified: 2021-05-29 09:15 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2021-03-11 00:40:22 UTC
This is the only package which requires python 3.8 in my system.
Could you add python 3.9 target please?

Thanks
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-04-29 17:52:34 UTC
Now that we have a deadline for the switch to python3_9 as default implementation (see URL), please add python3_9 support to this package ASAP in order for users to find any regressions...
Comment 2 Daniel Pielmeier gentoo-dev 2021-04-29 20:03:06 UTC
Not my call, see depends!
Comment 3 Jan Psota 2021-05-18 07:18:02 UTC
Works for me on python-3.9.
Comment 4 Duncan 2021-05-21 10:53:39 UTC
(In reply to Daniel Pielmeier from comment #2)
> Not my call, see depends!
(In reply to Jan Psota from comment #3)
> Works for me on python-3.9.

After figuring it out myself a hopefully less cryptic explanation to save other hplip users  the trouble...

The depend that's stuck on python:3.8 ATM is net-dns/avahi (see the depends-on bug #746905).  That depend is conditional on (USE=-minimal and) USE=snmp, so those with either USE=minimal or USE=-snmp shouldn't have to worry about the avahi depend itself.

Meanwhile, that bug mentions that hplip itself is already 3.9-ready and only waiting on avahi, so once avahi gets 3.9 compatibility it can be flipped on for hplip as well.

Thus, at least for those without USE=snmp set, locally forcing hplip to python-3.9 shouldn't be a problem and comment #3 is the expected.  But the in-tree hplip ebuild must wait for the conditional avahi dependency to get its own python:3.9 support before hplip can turn it on too.  (The alternative would of course be hard-coding the snmp/avahi option off and dropping support for it entirely, but that's the sort of last-resort alternative that would be deployed if for instance avahi was being tree-cleaned, etc, and isn't appropriate for this circumstance.)
Comment 5 Ingo Brunberg 2021-05-29 08:56:27 UTC
I wonder why hplip-3.21.2-r1 has been added without python 3.9 target, now that avahi has gained python 3.9 compatibility. It was probably just bad timing. Please add python 3.9 target ASAP.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-29 08:59:48 UTC
(In reply to Ingo Brunberg from comment #5)
> I wonder why hplip-3.21.2-r1 has been added without python 3.9 target, now
> that avahi has gained python 3.9 compatibility. It was probably just bad
> timing. Please add python 3.9 target ASAP.

Sure, it was because the PR was made before hplip had it. Adding it now...
Comment 7 Larry the Git Cow gentoo-dev 2021-05-29 09:15:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d14f4986b277cd77f905b2a9555c50a766fda9d5

commit d14f4986b277cd77f905b2a9555c50a766fda9d5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-29 09:15:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-29 09:15:37 +0000

    net-print/hplip: add Python 3.9
    
    Closes: https://bugs.gentoo.org/775320
    Signed-off-by: Sam James <sam@gentoo.org>

 net-print/hplip/hplip-3.20.11-r2.ebuild | 2 +-
 net-print/hplip/hplip-3.21.2-r1.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)