Merge ~paelzer/ubuntu/+source/navit:focal-fix-FTBFS-lp1855993 into ~paelzer/ubuntu/+source/navit:importer/ubuntu/focal-devel

Proposed by Christian Ehrhardt 
Status: Merged
Merge reported by: Christian Ehrhardt 
Merged at revision: 00b0dbca4fefe19273b8675040b20dd3874c2b91
Proposed branch: ~paelzer/ubuntu/+source/navit:focal-fix-FTBFS-lp1855993
Merge into: ~paelzer/ubuntu/+source/navit:importer/ubuntu/focal-devel
Diff against target: 30 lines (+9/-2)
2 files modified
debian/changelog (+7/-0)
debian/rules (+2/-2)
Reviewer Review Type Date Requested Status
Lucas Kanashiro (community) Approve
Canonical Server packageset reviewers Pending
Review via email: mp+376628@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

PPA: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3868/

Not upstreaming to Debian as we can drop the change on we either:
a) get a fix on cmake added by the package maintainers
b) update to a 3.16 cmake which has the fix

That would be enough to get it re-built and pick up libgps25

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Note: this is again not in git-ubuntu, so the MP is against my own import. But otherwise works as usual.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Just noticed that if you add the flag to include the needed directory only in -DCMAKE_C_FLAGS_DEBIAN already fixes the build. Did you add it in -DCMAKE_CXX_FLAGS_DEBIAN for consistency? Or there are other reason?

review: Needs Information
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

>
> Just noticed that if you add the flag to include the needed directory only
> in -DCMAKE_C_FLAGS_DEBIAN already fixes the build. Did you add it in
> -DCMAKE_CXX_FLAGS_DEBIAN for consistency? Or there are other reason?
>

I added it to CXX for consistency
also because the upstream discussion on cmake said "if project contains cpp
files also set CXX"

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

After a discussion with Christian on IRC he pointed me out to this upstream cmake discussion: https://gitlab.kitware.com/cmake/cmake/issues/19531

"That project is written in C++ along with C. You need to set CXXFLAGS to the same value as well."

So they recommend to also add the flag in CXXFLAGS.

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Clarified on IRC and declared good for upload.
Doing that now ...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 7495d0b..f53f854 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+navit (0.5.3+dfsg.1-2ubuntu1) focal; urgency=medium
7+
8+ * d/rules: until resolved in cmake append the harfbuzz include directory
9+ directly to fix FTBFS (LP: #1855993)
10+
11+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 11 Dec 2019 12:03:05 +0100
12+
13 navit (0.5.3+dfsg.1-2build2) focal; urgency=medium
14
15 * No-change rebuild against libgps25
16diff --git a/debian/rules b/debian/rules
17index b25a4d3..971d307 100755
18--- a/debian/rules
19+++ b/debian/rules
20@@ -18,8 +18,8 @@ CMAKEFLAGS += -DCMAKE_LIBRARY_PATH="/usr/$(DEB_HOST_MULTIARCH)/lib" -DCMAKE_REQU
21 else
22 export CC=gcc
23 export CXX=g++
24-CMAKEFLAGS += -DCMAKE_C_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
25- -DCMAKE_CXX_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)"
26+CMAKEFLAGS += -DCMAKE_C_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -isystem /usr/include/harfbuzz" \
27+ -DCMAKE_CXX_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -isystem /usr/include/harfbuzz"
28 endif
29 CMAKEFLAGS += -DCMAKE_MODULE_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"
30 CMAKEFLAGS += -DCMAKE_SHARED_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"

Subscribers

People subscribed via source and target branches

to all changes: