Bug 1303598

Summary: libical packages missing libical.a which is referenced by CMake config files
Product: [Fedora] Fedora Reporter: Daniel Vrátil <me>
Component: libicalAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: mcrha, rdieter, redhat-bugzilla
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libical-1.0.1-3.fc23 libical-1.0.1-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-28 08:23:04 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 Daniel Vrátil 2016-02-01 12:12:03 UTC
Description of problem:

Currently it's not possible to use CMake to find libical (using CMake config files, i.e. via find_package(LibIcal ....) command), because the package is missing static libraries:

CMake Error at /usr/lib64/cmake/LibIcal/LibIcalTargets.cmake:76 (message):
  The imported target "ical-static" references the file

     "/usr/lib64/libical.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/LibIcal/LibIcalTargets.cmake"

  but not all the files it references.


Since libical is built with static libraries enabled, the generated CMake config files are referencing the libical-static target. Because CMake verifies all imported targets, the configuration fails because the files are not found.

There should either be libical-static subpackage with the static files or if you really don't want to build the static files you must pass -DSHARED_ONLY=TRUE to CMake to disable the static libraries. It will also make sure the generated CMake config files don't reference the libical-static target anymore.

Comment 1 Rex Dieter 2016-02-01 12:58:11 UTC
%changelog
* Mon Feb 01 2016 Rex Dieter <rdieter> 2.0.0-4
- %%build: -DSHARED_ONLY=TRUE (#1303598)

Comment 2 Rex Dieter 2016-02-01 12:58:30 UTC
oops, looks like f23 is needed too, re-opening

Comment 3 Rex Dieter 2016-02-01 12:59:29 UTC
nevermind, looks like bug had wrong version, re-closing (marking rawhide).

Comment 4 Milan Crha 2016-02-01 13:07:00 UTC
Event with disabled static libraries, looking into the installed cmake files I see that LibIcalConfig.cmake still references static parts partly:

> # Temporary, will be removed once issue#87 is fixed
> set(LibIcal_STATIC_LIBRARIES ical-static icalss-static icalvcal-static)

The other files are free of the 'static' when built with SHARED_ONLY. I'm unsure whether SHARED_ONLY=true will be sufficient for your build in this case (aka should there be added also a patch which will remove the above quoted lines to make it work properly?).

Comment 5 Rex Dieter 2016-02-01 13:10:27 UTC
simply setting a variable should be mostly harmless, unless... is LibIcal_STATIC_LIBRARIES actually used anywhere else?  (if not, it's fine)

Comment 6 Rex Dieter 2016-02-11 13:24:36 UTC
I was right, we did need this fixed for f23 too (I just hit FTBFS), doing so now.

Comment 7 Fedora Update System 2016-02-11 16:27:46 UTC
libical-1.0.1-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d938b80157

Comment 8 Fedora Update System 2016-02-14 16:23:06 UTC
libical-1.0.1-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d938b80157

Comment 9 Fedora Update System 2016-02-16 17:21:29 UTC
libical-1.0.1-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-72a831c739

Comment 10 Fedora Update System 2016-02-17 03:49:44 UTC
libical-1.0.1-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2016-02-17 06:24:19 UTC
libical-1.0.1-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-72a831c739

Comment 12 Jan Kurik 2016-02-24 15:33:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 13 Fedora Update System 2016-02-28 08:23:02 UTC
libical-1.0.1-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.