Work around a problem with incompatible unixodbc-dev package

The package already installed on the system results in build errors when
trying to use it:

In file included from /usr/include/sql.h:19:0,
                 from /usr/include/sqlext.h:43,
                 from /home/runner/work/soci/soci/include/soci/odbc/soci-odbc.h:25,
                 from /home/runner/work/soci/soci/src/backends/odbc/factory.cpp:9:
/usr/include/sqltypes.h:56:10: fatal error: unixodbc.h: No such file or directory
 #include "unixodbc.h"
          ^~~~~~~~~~~~

so remove it before installing the Debian version.

See https://github.com/microsoft/linux-package-repositories/issues/36
This commit is contained in:
Vadim Zeitlin
2023-02-23 15:08:26 +01:00
parent d7af3212ef
commit e82fdcdfeb
+6
View File
@@ -5,6 +5,12 @@
#
source ${SOCI_SOURCE_DIR}/scripts/ci/common.sh
# Remove buggy versions of the packages from Microsoft repositories as well as
# their dependencies.
run_apt remove \
libodbc1 odbcinst1debian2 \
unixodbc unixodbc-dev
run_apt install \
tar bzip2 \
unixodbc unixodbc-dev \