Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876622 - kde-apps/kalarm-22.08.1 fails loading alarms with dev-libs/libical-3.0.15
Summary: kde-apps/kalarm-22.08.1 fails loading alarms with dev-libs/libical-3.0.15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-10-10 20:08 UTC by Andrew Saunders
Modified: 2022-10-10 21:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mouseover calendar (kalarm.png,21.77 KB, image/png)
2022-10-10 20:08 UTC, Andrew Saunders
Details
emerge --info (emergeinfo.txt,11.25 KB, text/plain)
2022-10-10 20:08 UTC, Andrew Saunders
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Saunders 2022-10-10 20:08:30 UTC
Created attachment 823504 [details]
mouseover calendar

when loading kalarm from the commandline it spits this out (<file> is the contents of the .ics file)

parse error from icalcomponent_new_from_string. string= "<file>"
kf.calendarcore: "/home/pancus/.local/share/kalarm/calendar.ics"  is not a valid iCalendar file
kf.calendarcore: Error parsing vCalendar file: pop on empty Object Stack
 at line 300
org.kde.pim.kalarm: KAlarmApp::checkWritableCalendar: No writable active calendar

This worked with a previous version, updated today and it now fails to load and show anything. Attached is a screenshot of it being "read-only (other format)".
Comment 1 Andrew Saunders 2022-10-10 20:08:58 UTC
Created attachment 823507 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-10 20:21:33 UTC
By chance, if you downgrade libical, is it any better?
Comment 3 Andrew Saunders 2022-10-10 20:32:07 UTC
reverting back to dev-libs/libical-3.0.14-r1 makes everything show up again.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-10 20:34:23 UTC
Can you try this patch please?

https://github.com/libical/libical/commit/eeccee80d0485bdd3951924b294a82e8bc39a5f8
Comment 5 Andrew Saunders 2022-10-10 20:54:04 UTC
Just a heads up it doesn't apply cleanly so I removed the ReleaseNotes.txt part

 * Build directory  (BUILD_DIR):     "/tmp/portage/portage/dev-libs/libical-3.0.15/work/libical-3.0.15_build"
 * Applying libical-3.0.4-tests.patch ...
 [ ok ]
 * Applying libical-3.0.11-pkgconfig-libdir.patch ...
 [ ok ]
 * =================================================================================================
 * Applying user patches from /etc/portage/patches ...
 * Applying eeccee80d0485bdd3951924b294a82e8bc39a5f8.patch ...
patching file ReleaseNotes.txt
Hunk #1 FAILED at 3.
Hunk #2 succeeded at 9 (offset -4 lines).
1 out of 2 hunks FAILED -- saving rejects to file ReleaseNotes.txt.rej
patching file src/libical/icalparser.c
 [ !! ]
 * ERROR: dev-libs/libical-3.0.15::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/dev-libs/libical-3.0.15/eeccee80d0485bdd3951924b294a82e8bc39a5f8.patch

and yes that appears to fix it.
Comment 6 Larry the Git Cow gentoo-dev 2022-10-10 21:36:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f829fb9b30d3bd85375fe57279d835abd21869d

commit 9f829fb9b30d3bd85375fe57279d835abd21869d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-10 21:36:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-10 21:36:28 +0000

    dev-libs/libical: backport parsing regression fix; backport F_S=3 fix
    
    Closes: https://bugs.gentoo.org/876625
    Closes: https://bugs.gentoo.org/876622
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libical-3.0.15-fortify-source-3.patch    |  43 ++++++++
 .../files/libical-3.0.15-revert-bad-fuzz-fix.patch |  36 +++++++
 dev-libs/libical/libical-3.0.15-r1.ebuild          | 119 +++++++++++++++++++++
 3 files changed, 198 insertions(+)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-10 21:38:44 UTC
Thanks for the rapid responses.