Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744325 - net-print/hplip[snmp] requires sub-slot dep on net-analyzer/net-snmp
Summary: net-print/hplip[snmp] requires sub-slot dep on net-analyzer/net-snmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 12:08 UTC by tt_1
Modified: 2020-09-23 19:23 UTC (History)
1 user (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 tt_1 2020-09-23 12:08:55 UTC
net-print/hplip is the only consumer of net-snmp on my system:

equery d net-snmp 


 * These packages depend on net-snmp:
net-print/hplip-3.20.6-r1 (net-analyzer/net-snmp)


but net-print/hplip is not forced to rebuilt when going for emerge -av net-snmp -1 , and thus the preversed libs feature of portage calls for action: 


>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: net-analyzer/net-snmp-5.9-r2
 *  - /usr/lib64/libnetsnmp.so.35
 *  - /usr/lib64/libnetsnmp.so.35.0.1
 *      used by /usr/lib64/libhpmud.so.0.0.6 (net-print/hplip-3.19.12-r1)
Use emerge @preserved-rebuild to rebuild packages using these libraries

it would be great if the hplip ebuild is updated to make the rebuild automatically, no idea how this magic stuff is done though.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-09-23 12:23:00 UTC
Simply setting

  net-analyzer/net-snmp:=

in the ebuilds should be sufficient.
Comment 2 tt_1 2020-09-23 17:33:35 UTC
yeah, that seems to satisfy portage more then enough: 

emerge -av net-snmp -1

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  r  U  ] net-analyzer/net-snmp-5.9-r2:0/40::gentoo [5.8.1_pre1-r1:0/35::gentoo] USE="X bzip2 ssl tcpd zlib -doc -elf -ipv6 -kmem -libressl -lm-sensors -mfd-rewrites -minimal -mysql -netlink -pcap -pci -perl -python -rpm (-selinux) -smux -ucd-compat" PYTHON_SINGLE_TARGET="python3_7%* -python3_6% -python3_8% (-python2_7%)" 0 KiB
[ebuild  rR    ] net-print/hplip-3.19.12-r1::gentoo  USE="X hpcups libnotify policykit qt5 snmp -doc -fax -hpijs -kde -libressl -libusb0 -minimal -parport -scanner -static-ppds" PYTHON_SINGLE_TARGET="python3_7 -python3_6" 0 KiB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 0 KiB

The following packages are causing rebuilds:

  (net-analyzer/net-snmp-5.9-r2:0/40::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (net-print/hplip-3.19.12-r1:0/0::gentoo, ebuild scheduled for merge)



given that this is low hanging fruit, please commit a fix. Thanks!
Comment 3 Daniel Pielmeier gentoo-dev 2020-09-23 17:38:56 UTC
(In reply to tt_1 from comment #2)
> yeah, that seems to satisfy portage more then enough: 
> 
> emerge -av net-snmp -1
> 
>  * IMPORTANT: 2 news items need reading for repository 'gentoo'.
>  * Use eselect news read to view new items.
> 
> given that this is low hanging fruit, please commit a fix. Thanks!

Reading news items is also a low hanging fruit, please do so ;-)

It will be fixed. All in due time!
Comment 4 Larry the Git Cow gentoo-dev 2020-09-23 19:16:30 UTC
The bug has been closed via the following commit(s):

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

commit c78e1a2c98d228bf6c0d0323599ed2e68db2a992
Author:     Daniel Pielmeier <billie@gentoo.org>
AuthorDate: 2020-09-23 19:14:44 +0000
Commit:     Daniel Pielmeier <billie@gentoo.org>
CommitDate: 2020-09-23 19:15:49 +0000

    net-print/hplip: Add sub-slot dep on net-analyzer/net-snmp.
    
    Reported-by: tt_1 <herrtimson@yahoo.de>
    Closes: https://bugs.gentoo.org/744325
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Daniel Pielmeier <billie@gentoo.org>

 net-print/hplip/hplip-3.19.12-r1.ebuild | 2 +-
 net-print/hplip/hplip-3.20.3.ebuild     | 2 +-
 net-print/hplip/hplip-3.20.6-r1.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 5 tt_1 2020-09-23 19:19:42 UTC
Thank you for the fix. Please never ever post my email addy publicly again, or I send all the spam I'll get directly to yours. Thanks.
Comment 6 Daniel Pielmeier gentoo-dev 2020-09-23 19:23:49 UTC
(In reply to tt_1 from comment #5)
> Thank you for the fix. Please never ever post my email addy publicly again,
> or I send all the spam I'll get directly to yours. Thanks.

Sorry this was stupid. I tried some Git tags without thinking!