Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build without libical #5208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cwalther
Copy link
Contributor

@cwalther cwalther commented Jan 9, 2025

Building cyrus-imapd on a system that does not have libical installed (with iCal features accordingly disabled by configure) fails with a compiler error 'libical/ical.h' file not found in various places. Checked on macOS (15.2) and Linux (Ubuntu 20.04).

This appears to have been broken when #3467, #3815, #3845 started including code that was previously exclusive to CalDAV features also when CalDAV is disabled. It was presumably not noticed when testing only on systems that do have libical installed, even with CalDAV explicitly disabled.

I can fix this with the #ifdefs added in the attached commit, but am not sure whether these are exactly the right macros to test.

Fix compile errors "'libical/ical.h' file not found" in various places
when built on a system without libical installed.

Probably broken by cyrusimap#3467, cyrusimap#3815, cyrusimap#3845.

Signed-off-by: Christian Walther <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant