| Summary: | app-pda/syncevolution fails to build | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
| Component: | New packages | Assignee: | Olivier Crete (RETIRED) <tester> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | pda |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Build log
This works with all of 0.4.x 0.5.x and 0.7.x |
||
|
Description
Diego Elio Pettenò (RETIRED)
2011-02-08 14:49:21 UTC
Created attachment 261831 [details]
Build log
which version of libnotify ? (In reply to comment #2) > which version of libnotify ? > "too few arguments to function ‘NotifyNotification* notify_notification_new" would suggest he has 0.4.x or 0.5.x and syncevolution upstream failed and only included support for 0.7.x. This was baseline 0.5 OK, scratch that. Let's try this again:
- NOTIFY_CHECK_VERSION was added in version 0.5.x
- notify_notification_new needs one more argument for 0.5.x
So this code is wrong:
#if !defined(NOTIFY_CHECK_VERSION)
m_notification = notify_notification_new(summary, body, NULL, NULL);
#else // NOTIFY_CHECK_VERSION(0,7,0) is redundant, because 0.7.0 introduced
NOTIFY_CHECK_VERSION
m_notification = notify_notification_new(summary, body, NULL);
#endif
That code makes it work only with 0.4.x or 0.7.x and it can't work with 0.5.x
which is current ~arch
Created attachment 261839 [details, diff]
This works with all of 0.4.x 0.5.x and 0.7.x
Corrected upstream mistakes
+ 08 Feb 2011; Samuli Suominen <ssuominen@gentoo.org> + syncevolution-1.1.1.ebuild, +files/syncevolution-1.1.1-libnotify-0.5.x.patch: + Fix building with x11-libs/libnotify 0.5.x series wrt #354087 by Diego Elio + Pettenò. Ugly patch alert! Can you please not put the #else inside the function call (just duplicate it).. Then please send the patch upstream, thank you.. And you're welcome to add it to the ebuild. |