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
diff --git a/debian/changelog b/debian/changelog
index 7495d0b..f53f854 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1navit (0.5.3+dfsg.1-2ubuntu1) focal; urgency=medium
2
3 * d/rules: until resolved in cmake append the harfbuzz include directory
4 directly to fix FTBFS (LP: #1855993)
5
6 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 11 Dec 2019 12:03:05 +0100
7
1navit (0.5.3+dfsg.1-2build2) focal; urgency=medium8navit (0.5.3+dfsg.1-2build2) focal; urgency=medium
29
3 * No-change rebuild against libgps2510 * No-change rebuild against libgps25
diff --git a/debian/rules b/debian/rules
index b25a4d3..971d307 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,8 +18,8 @@ CMAKEFLAGS += -DCMAKE_LIBRARY_PATH="/usr/$(DEB_HOST_MULTIARCH)/lib" -DCMAKE_REQU
18else18else
19export CC=gcc19export CC=gcc
20export CXX=g++20export CXX=g++
21CMAKEFLAGS += -DCMAKE_C_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \21CMAKEFLAGS += -DCMAKE_C_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -isystem /usr/include/harfbuzz" \
22 -DCMAKE_CXX_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)"22 -DCMAKE_CXX_FLAGS_DEBIAN="$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -isystem /usr/include/harfbuzz"
23endif23endif
24CMAKEFLAGS += -DCMAKE_MODULE_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"24CMAKEFLAGS += -DCMAKE_MODULE_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"
25CMAKEFLAGS += -DCMAKE_SHARED_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"25CMAKEFLAGS += -DCMAKE_SHARED_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)"

Subscribers

People subscribed via source and target branches

to all changes: