Bug 424352 - kparts/part.h: Mismatch between conditions for definition and use of PartSelectEvent
Summary: kparts/part.h: Mismatch between conditions for definition and use of PartSele...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kparts
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.72.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-17 22:29 UTC by Bernhard Rosenkränzer
Modified: 2021-08-25 11:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkränzer 2020-07-17 22:29:07 UTC
SUMMARY
In <kparts/part.h> from KParts 5.72.0, class PartSelectEvent is declared if KPARTS_ENABLE_DEPRECATED_SINCE(5,72) is set [line 42], but used if KPARTS_BUILD_DEPRECATED_SINCE(5,72) is set [line 227].

This causes build failures (use of undefined type) if KPARTS_BUILD_DEPRECATED... is set, but KPARTS_ENABLE_DEPRECATED... is not.


STEPS TO REPRODUCE
1. Install frameworks 5.72.0
2. Build something that sets BUILD but not ENABLED, such as kontactinterface from release-service 20.07.80

OBSERVED RESULT
/usr/include/KF5/KParts/kparts/part.h:227:34: error: unknown type name 'PartSelectEvent'
    virtual void partSelectEvent(PartSelectEvent *event);


EXPECTED RESULT
Compiles

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenMandriva Cooker
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Ahmad Samir 2021-08-25 11:36:12 UTC
Looks like a configuration issue; feel free to reopen if you still have this issue.