Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 755038 - net-print/hplip-3.20.9-r3 fails to compile: "avahi-client/client.h: No such file or directory"
Summary: net-print/hplip-3.20.9-r3 fails to compile: "avahi-client/client.h: No such f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-17 09:57 UTC by Thomas De Schampheleire
Modified: 2020-11-18 20:39 UTC (History)
2 users (show)

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


Attachments
build log (build.log,43.12 KB, text/x-log)
2020-11-17 10:11 UTC, Thomas De Schampheleire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas De Schampheleire 2020-11-17 09:57:06 UTC
Following upgrade fails to compile:

[ebuild     U  ] net-print/hplip-3.20.9-r3::gentoo [3.20.6-r1::gentoo] USE="X hpcups libnotify snmp -doc -fax -hpijs -kde -libressl -libusb0 -minimal -parport -policykit -qt5 -scanner -static-ppds" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8" 0 KiB

Related but different bugs seem to be #750116 and #750824 .

I have following headers on my system, which indeed do not include avahi-client.
$ find /usr/include/avahi*
/usr/include/avahi-common
/usr/include/avahi-common/alternative.h
/usr/include/avahi-common/watch.h
/usr/include/avahi-common/simple-watch.h
/usr/include/avahi-common/cdecl.h
/usr/include/avahi-common/timeval.h
/usr/include/avahi-common/llist.h
/usr/include/avahi-common/malloc.h
/usr/include/avahi-common/gccmacro.h
/usr/include/avahi-common/rlist.h
/usr/include/avahi-common/domain.h
/usr/include/avahi-common/address.h
/usr/include/avahi-common/thread-watch.h
/usr/include/avahi-common/strlst.h
/usr/include/avahi-common/error.h
/usr/include/avahi-common/defs.h
/usr/include/avahi-core
/usr/include/avahi-core/log.h
/usr/include/avahi-core/core.h
/usr/include/avahi-core/rr.h
/usr/include/avahi-core/lookup.h
/usr/include/avahi-core/publish.h
/usr/include/avahi-glib
/usr/include/avahi-glib/glib-malloc.h
/usr/include/avahi-glib/glib-watch.h
/usr/include/avahi-libevent
/usr/include/avahi-libevent/libevent-watch.h

In the avahi 'configure.ac' file, I see that client compilation depends on dbus, which is indeed not enabled for me:

[ebuild   R    ] net-dns/avahi-0.8-r2::gentoo  USE="gdbm gtk ipv6 -autoipd -bookmarks -dbus -doc -gtk2 -howl-compat -introspection -mdnsresponder-compat -mono -nls -python -qt5 (-selinux) -systemd -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_7 -python3_6 -python3_8" 0 KiB

So I conclude that hplip should either exclude compiling the parts depending on avahi-client if avahi[dbus] is not set, or explicitly depend on avahi[dbus] instead on plain avahi.

Reproducible: Always

Steps to Reproduce:
1. emerge hplip-3.20.9-r3
Actual Results:  
Compilation failure.

Expected Results:  
Compilation success.
Comment 1 Thomas De Schampheleire 2020-11-17 10:11:39 UTC
Created attachment 671803 [details]
build log
Comment 2 Daniel Pielmeier gentoo-dev 2020-11-18 06:55:22 UTC
Of course hplip needs to depend on net-dns/avahi[dbus]. Thanks for noticing this!
Comment 3 Larry the Git Cow gentoo-dev 2020-11-18 20:39:24 UTC
The bug has been closed via the following commit(s):

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

commit 9ec60389fdecf506a2d4f539268002543fa4af2c
Author:     Daniel Pielmeier <billie@gentoo.org>
AuthorDate: 2020-11-18 20:38:42 +0000
Commit:     Daniel Pielmeier <billie@gentoo.org>
CommitDate: 2020-11-18 20:38:42 +0000

    net-print/hplip: Revision bump to hplip-3.20.9-r4.
    
    Thanks to ernsteiswuerfel and Thomas De Schampheleire for the
    reports.
    
    Closes: https://bugs.gentoo.org/754636
    Closes: https://bugs.gentoo.org/755038
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Daniel Pielmeier <billie@gentoo.org>

 net-print/hplip/hplip-3.20.9-r4.ebuild | 286 +++++++++++++++++++++++++++++++++
 1 file changed, 286 insertions(+)