Fix the attica pkgconfig file.
ClosedPublic

Authored by krop on Aug 8 2019, 12:06 PM.

Details

Summary

the file was unusable due to bogus version name, missing dependencies and wrong paths.

Test Plan

Before:

prefix=/data/kde/inst
exec_prefix=/data/kde/inst/bin
libdir=lib64
includedir=include/KF5Attica

Name: libKF5Attica
Description: Qt library to access Open Collaboration Services
#Requires:
Version: ..
Libs: -Llib64 -lKF5Attica
Cflags: -Iinclude/KF5Attica

After:

prefix=/data/kde/inst
exec_prefix=${prefix}
libdir=/data/kde/inst/lib64
includedir=/data/kde/inst/include

Name: libKF5Attica
Description: Qt library to access Open Collaboration Services
URL: https://www.kde.org
Requires: Qt5Core Qt5Network
Version: 5.61.0
Libs: -L/data/kde/inst/lib64 -lKF5Attica
Cflags: -I/data/kde/inst/include/KF5/Attica

Diff Detail

Repository
R235 Attica
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14878
Build 14896: arc lint + arc unit
krop created this revision.Aug 8 2019, 12:06 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 8 2019, 12:06 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
krop requested review of this revision.Aug 8 2019, 12:06 PM
krop edited the test plan for this revision. (Show Details)Aug 8 2019, 12:07 PM

Note: the ecm_generate_pkgconfig_file macro cannot be used since it doesn't support extra CFLAGS (yet)

fvogt added a subscriber: fvogt.Aug 8 2019, 12:18 PM
fvogt added inline comments.
src/cmake/libKF5Attica.pc.cmake
0–1

In ECM and Qt this is absolute, ${prefix}/lib64, same for exec_prefix.

krop updated this revision to Diff 63353.Aug 8 2019, 12:20 PM

fix path

krop edited the test plan for this revision. (Show Details)Aug 8 2019, 12:21 PM
krop updated this revision to Diff 63354.Aug 8 2019, 12:32 PM

use ${prefix} for the exec line.
For the others, it's a bit trickier since you can use either relative or
absolute paths when calling CMake.

This will be handled when the ECM macro gets updated.

krop edited the test plan for this revision. (Show Details)Aug 8 2019, 12:34 PM
krop marked an inline comment as done.Aug 12 2019, 10:16 AM

Unless someone has objections, I'll push this tomorrow.

leinir added a subscriber: leinir.Aug 12 2019, 10:20 AM
In D23029#510716, @cgiboudeaux wrote:

Unless someone has objections, I'll push this tomorrow.

You seem to have not set any reviewers on this... It seems fine to me, but pkgconfig isn't really my forte :)

This revision was not accepted when it landed; it landed in state Needs Review.Aug 13 2019, 9:53 AM
This revision was automatically updated to reflect the committed changes.