Bug 1001676

Summary: avahi: FTBFS in rawhide
Product: [Fedora] Fedora Reporter: Gwyn Ciesla <gwync>
Component: avahiAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kalevlember, lpoetter, murrayc, rdieter, sparcdr, stefw, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: avahi-0.6.31-18.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 00:47:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gwyn Ciesla 2013-08-27 13:52:23 UTC
Last two build attempts have failed, looks like a problem with gtkstock.h having been deprecated in gtk3.

http://koji.fedoraproject.org/koji/buildinfo?buildID=456743
http://koji.fedoraproject.org/koji/buildinfo?buildID=459295

Comment 1 Akira TAGOH 2013-09-09 03:17:23 UTC
Any plans to fix this issue? I'm waiting for that to rebuild uim which depends on it.

Comment 2 Rex Dieter 2013-09-09 13:32:40 UTC
In particular, here are (some of) the build errors:

bssh.c: In function 'main':
bssh.c:149:72: error: 'GTK_STOCK_CANCEL' undeclared (first use in this function)
             d = aui_service_dialog_new(_("Choose Shell Server"), NULL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CONNECT, GTK_RESPONSE_ACCEPT, NULL);
                                                                        ^
bssh.c:149:72: note: each undeclared identifier is reported only once for each function it appears in
bssh.c:149:111: error: 'GTK_STOCK_CONNECT' undeclared (first use in this function)
             d = aui_service_dialog_new(_("Choose Shell Server"), NULL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CONNECT, GTK_RESPONSE_ACCEPT, NULL);

avahi-ui.c:1035:57: error: 'GTK_STOCK_CANCEL' undeclared (first use in this function)
     gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);

avahi-ui.c:1167:81: error: 'GTK_STOCK_NETWORK' undeclared (first use in this function)
     gtk_button_set_image(GTK_BUTTON(p->domain_button), gtk_image_new_from_stock(GTK_STOCK_NETWORK, GTK_ICON_SIZE_BUTTON));

Comment 3 Rex Dieter 2013-09-19 17:20:59 UTC
working on fixing the deprecations...

Comment 4 Fedora Update System 2013-09-19 19:59:54 UTC
avahi-0.6.31-16.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/avahi-0.6.31-16.fc20

Comment 5 Fedora Update System 2013-09-20 18:56:45 UTC
Package avahi-0.6.31-16.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing avahi-0.6.31-16.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17264/avahi-0.6.31-16.fc20
then log in and leave karma (feedback).

Comment 6 Kalev Lember 2013-09-21 00:37:45 UTC
I looked at the patch and it has one issue -- the new strings ("OK", "Cancel") won't be translated.

Better would be to drop the patch, and instead just kill the -Werror flag that's being set in configure.ac. (The patch would be great for upstream though, where translators could translate the new strings after commiting.)

Comment 7 Rex Dieter 2013-09-21 13:50:21 UTC
killing -Werror isn't enough, it still fails without it.

Comment 8 Rex Dieter 2013-09-21 13:51:48 UTC
Here's a scratch build where I tried just dropping -Werror
https://koji.fedoraproject.org/koji/taskinfo?taskID=5963926

Comment 9 Kalev Lember 2013-09-21 13:59:08 UTC
Ah, looks like it explicitly disables deprecated gtk+ symbols with:

-DGTK_DISABLE_DEPRECATED=1

This is also something that should have never been enabled in the released tarballs. New symbols get deprecated in GTK+ from time to time -- but they're still supported and continue working fine. Deprecation just means that these symbols are going to be removed in the next major release (4.0) and that people _should_ think of porting.

Comment 10 Fedora Update System 2013-09-21 19:40:58 UTC
Package avahi-0.6.31-18.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing avahi-0.6.31-18.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17264/avahi-0.6.31-18.fc20
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2013-09-23 00:47:25 UTC
avahi-0.6.31-18.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Murray Cumming 2015-12-10 16:42:46 UTC
Was there ever an attempt to get this fix upstream to avahi?

Comment 13 Rex Dieter 2015-12-10 16:47:15 UTC
latest upstream is fixed as far as I can tell, fedora is no longer carrying any patches related to this

Comment 14 Murray Cumming 2015-12-10 17:14:20 UTC
Ah, yes, it does seem to be fixed in avahi ​0.6.32-rc, but not in avahi 0.6.31, which I assumed would be the stable one to use. It's not fixed in avahi's git:
http://git.0pointer.net/avahi.git/tree/avahi-ui/Makefile.am
so I guess that the changes in avahi ​0.6.32-rc were never pushed to git. How strange.

Comment 15 James Cornell 2016-04-10 05:56:20 UTC
It is officially fixed on their Github releases page.

Repository:
https://github.com/lathiat/avahi/releases

Release Information:
Feb 15, 2016
v0.6.32
4f33499

Source:
https://github.com/lathiat/avahi/releases/download/v0.6.32/avahi-0.6.32.tar.gz

SHA256Sum:
d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454

Cheers.