diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9431780b..70ca57d18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,7 +112,7 @@ jobs: DEBEMAIL: github-actions@github.com steps: - name: Install dependencies - run: apt update -qq && apt install --no-install-recommends -y git lsb-release fakeroot build-essential devscripts cdbs debhelper cmake xxd xsdcxx libxml-security-c-dev zlib1g-dev doxygen swig openjdk-8-jdk-headless libpython3-dev python3-distutils libboost-test-dev lintian + run: apt update -qq && apt install --no-install-recommends -y git lsb-release fakeroot build-essential devscripts debhelper cmake xxd xsdcxx libxml-security-c-dev zlib1g-dev doxygen swig openjdk-8-jdk-headless libpython3-dev python3-distutils libboost-test-dev lintian - name: Checkout uses: actions/checkout@v3 with: diff --git a/debian/compat b/debian/compat deleted file mode 100644 index f599e28b8..000000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -10 diff --git a/debian/control b/debian/control index 246111202..7e6244c7d 100644 --- a/debian/control +++ b/debian/control @@ -3,16 +3,17 @@ Section: libs Priority: optional Maintainer: RIA Build-Depends: - cdbs, + debhelper-compat (= 12), cmake, libxml-security-c-dev, xsdcxx (>= 4.0) | xsd (>= 4.0), xxd, doxygen, swig, + java8-sdk-headless, libpython3-dev, python3-distutils -Standards-Version: 3.9.8 +Standards-Version: 4.5.1 Homepage: https://github.com/open-eid/libdigidocpp Package: libdigidocpp-common @@ -67,8 +68,7 @@ Architecture: any Section: libdevel Depends: libdigidocpp1 (= ${binary:Version}), - ${misc:Depends}, - ${shlibs:Depends} + ${misc:Depends} Description: DigiDoc digital signature library development files This package contains files necessary for developing applications with the DigiDoc digital signature library. diff --git a/debian/rules b/debian/rules index 7d0dc8ac2..b35fe67a5 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,11 @@ #!/usr/bin/make -f -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/cmake.mk -DEB_CMAKE_EXTRA_FLAGS = \ - -DCMAKE_INSTALL_SYSCONFDIR="/etc" \ - -DCMAKE_INSTALL_LIBDIR="lib/$(DEB_HOST_MULTIARCH)" DEB_MAKE_CHECK_TARGET = test + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip + +override_dh_auto_test: + DEB_BUILD_OPTIONS=parallel=1 dh_auto_test diff --git a/src/xml/SecureDOMParser.cpp b/src/xml/SecureDOMParser.cpp index dcc8ccec2..900309ca3 100644 --- a/src/xml/SecureDOMParser.cpp +++ b/src/xml/SecureDOMParser.cpp @@ -22,6 +22,8 @@ #include "crypto/Digest.h" #include "util/log.h" +#define XSD_CXX11 + DIGIDOCPP_WARNING_PUSH DIGIDOCPP_WARNING_DISABLE_CLANG("-Wnull-conversion") DIGIDOCPP_WARNING_DISABLE_GCC("-Wunused-parameter") diff --git a/src/xml/URIResolver.cpp b/src/xml/URIResolver.cpp index 514acef02..f67343e66 100644 --- a/src/xml/URIResolver.cpp +++ b/src/xml/URIResolver.cpp @@ -29,6 +29,7 @@ DIGIDOCPP_WARNING_DISABLE_MSVC(4005) #include DIGIDOCPP_WARNING_POP +#define XSD_CXX11 #include #include