Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53218 - [cups] makedepends wrong for --enable-avahi switch

Attached to Project: Arch Linux
Opened by Maik Broemme (mbroemme) - Wednesday, 08 March 2017, 19:51 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 12 March 2017, 18:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I was trying CUPS with Avahi as package has switch '--enable-avahi' but it turned out that Avahi is not included due to wrong makedepends. If you look at configure script it has the following condition:

if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$uname != xDarwin; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
$as_echo_n "checking for Avahi... " >&6; }

As makedepends did not include 'pkg-config' it will never check for avahi. Once 'pkg-config' is added it will fail to compile because 'avahi' is missing. To fix it could you please include the following into makedepends and rebuild the package:

'avahi' 'pkg-config'

This should finally enable Avahi support in CUPS.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 12 March 2017, 18:12 GMT
Reason for closing:  No response
Comment by Maik Broemme (mbroemme) - Wednesday, 08 March 2017, 20:15 GMT
I saw that 'avahi' is in makedepends, so only 'pkg-config' is missing. :)
Comment by Antonio Rojas (arojas) - Wednesday, 08 March 2017, 20:59 GMT
What makes you think that avahi is not enabled? ippfind is linked to avahi
Comment by Andreas Radke (AndyRTR) - Wednesday, 08 March 2017, 21:17 GMT
pkg-config is part of base-devel group and so assumed to be installed when building packages.
Comment by Maik Broemme (mbroemme) - Wednesday, 08 March 2017, 23:23 GMT
@Antonio: CUPS allows sharing printers via Avahi which simply doesn't work without creating the service files manually for Avahi. That was the reason why I believe something seems wrong. Indeed, discovering remote printers with driverless and ippfind works fine with Avahi doing mdns.

@Andreas: Oh I wasn't aware about base-devel dependencies.
Comment by Doug Newgard (Scimmia) - Thursday, 09 March 2017, 02:36 GMT
What service files are you talking about? Are they included anywhere by CUPS upstream, or is this simply a configuration issue?

Loading...