From 0ff486d64a96d525591e311ccf0f56a095e1ce24 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Tue, 29 Sep 2020 18:30:16 +0200 Subject: [PATCH] [PATCH] Use private scols_cell_get_alignment() with older libsmartcols Stretch's version of libsmartcols includes the (binary) symbol, but does not export it via its API, probably to make the intermediate release API-compatible. libdnf needs it, so we'll just declare the function and hope that linking will be able to pick it up just fine. For newer versions, that should just turn into a comment. Gbp-Pq: Name 0009-Use-private-scols_cell_get_alignment-with-older-libs.patch --- libdnf/utils/smartcols/Cell.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libdnf/utils/smartcols/Cell.hpp b/libdnf/utils/smartcols/Cell.hpp index b90f005..fc3c1d4 100644 --- a/libdnf/utils/smartcols/Cell.hpp +++ b/libdnf/utils/smartcols/Cell.hpp @@ -26,6 +26,10 @@ #include #include +extern "C" { +@LIBSMARTCOLS_COMPAT@ extern int scols_cell_get_alignment(const struct libscols_cell *ce); +} + class Cell { public: -- 2.30.2