diff -Nru lomiri-app-launch-0.0.90/debian/changelog lomiri-app-launch-0.0.90/debian/changelog --- lomiri-app-launch-0.0.90/debian/changelog 2021-05-23 22:41:04.000000000 +0000 +++ lomiri-app-launch-0.0.90/debian/changelog 2021-11-08 00:26:53.000000000 +0000 @@ -1,3 +1,13 @@ +lomiri-app-launch (0.0.90-8+rpi1) bookworm-staging; urgency=medium + + * Remove -Werror, it breaks the build with gcc-11 (Closes: 984224). + * Adjust includes to avoid including glib.h inside extern "C" as + this causes build failures. + * Mark a couple of symbols that disappeard with gcc-11 as + optional=inline + + -- Peter Michael Green Mon, 08 Nov 2021 00:26:53 +0000 + lomiri-app-launch (0.0.90-8) unstable; urgency=medium * debian/control: diff -Nru lomiri-app-launch-0.0.90/debian/liblomiri-app-launch0.symbols lomiri-app-launch-0.0.90/debian/liblomiri-app-launch0.symbols --- lomiri-app-launch-0.0.90/debian/liblomiri-app-launch0.symbols 2021-05-23 22:38:47.000000000 +0000 +++ lomiri-app-launch-0.0.90/debian/liblomiri-app-launch0.symbols 2021-11-08 00:26:53.000000000 +0000 @@ -17,10 +17,10 @@ _ZN6lomiri10app_launch5AppID8discoverERKSt10shared_ptrINS0_8RegistryEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_NS1_15VersionWildcardE@Base 0.0.90 _ZN6lomiri10app_launch5AppID8discoverERKSt10shared_ptrINS0_8RegistryEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESE_SE_@Base 0.0.90 _ZN6lomiri10app_launch5AppIDC1ENS0_10TypeTaggerINS1_10PackageTagENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS2_INS1_10AppNameTagES9_EENS2_INS1_10VersionTagES9_EE@Base 0.0.90 - (arch=!alpha !amd64 !hppa !i386 !m68k !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZN6lomiri10app_launch5AppIDC1ERKS1_@Base 0.0.90 + (optional=inline|arch=!alpha !amd64 !hppa !i386 !m68k !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZN6lomiri10app_launch5AppIDC1ERKS1_@Base 0.0.90 _ZN6lomiri10app_launch5AppIDC1Ev@Base 0.0.90 _ZN6lomiri10app_launch5AppIDC2ENS0_10TypeTaggerINS1_10PackageTagENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS2_INS1_10AppNameTagES9_EENS2_INS1_10VersionTagES9_EE@Base 0.0.90 - (arch=!alpha !amd64 !hppa !i386 !m68k !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZN6lomiri10app_launch5AppIDC2ERKS1_@Base 0.0.90 + (optional=inline|arch=!alpha !amd64 !hppa !i386 !m68k !mips64el !mipsel !powerpc !ppc64 !ppc64el !riscv64 !s390x !sh4 !x32)_ZN6lomiri10app_launch5AppIDC2ERKS1_@Base 0.0.90 _ZN6lomiri10app_launch5AppIDC2Ev@Base 0.0.90 _ZN6lomiri10app_launch5AppIDD1Ev@Base 0.0.90 _ZN6lomiri10app_launch5AppIDD2Ev@Base 0.0.90 diff -Nru lomiri-app-launch-0.0.90/debian/patches/1004-move-system-headers-outside-extern-c.patch lomiri-app-launch-0.0.90/debian/patches/1004-move-system-headers-outside-extern-c.patch --- lomiri-app-launch-0.0.90/debian/patches/1004-move-system-headers-outside-extern-c.patch 1970-01-01 00:00:00.000000000 +0000 +++ lomiri-app-launch-0.0.90/debian/patches/1004-move-system-headers-outside-extern-c.patch 2021-11-08 00:26:53.000000000 +0000 @@ -0,0 +1,36 @@ +Description: Move system headers outside extern C. + Including some system headers (notablly glib.h) inside extern "C" causes + build failure. Since lomiri-app-launch includes glib.h it must be + included from outside extern "C" (it already has internal extern "C" + for it's own functions). +Author: Peter Michael Green + +--- lomiri-app-launch-0.0.90.orig/liblomiri-app-launch/application.cpp ++++ lomiri-app-launch-0.0.90/liblomiri-app-launch/application.cpp +@@ -17,9 +17,7 @@ + * Ted Gould + */ + +-extern "C" { + #include "lomiri-app-launch.h" +-} + + #include "application.h" + #include "info-watcher.h" +--- lomiri-app-launch-0.0.90.orig/liblomiri-app-launch/lomiri-app-launch.cpp ++++ lomiri-app-launch-0.0.90/liblomiri-app-launch/lomiri-app-launch.cpp +@@ -17,13 +17,13 @@ + * Ted Gould + */ + +-extern "C" { + #include "lomiri-app-launch.h" + #include + #include + #include + #include + #include ++extern "C" { + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdeprecated-declarations" + #include diff -Nru lomiri-app-launch-0.0.90/debian/patches/2003-remove-werror.patch lomiri-app-launch-0.0.90/debian/patches/2003-remove-werror.patch --- lomiri-app-launch-0.0.90/debian/patches/2003-remove-werror.patch 1970-01-01 00:00:00.000000000 +0000 +++ lomiri-app-launch-0.0.90/debian/patches/2003-remove-werror.patch 2021-11-08 00:26:53.000000000 +0000 @@ -0,0 +1,15 @@ +Description: Remove -Werror, it breaks the build with gcc-11 +Author: Peter Michael Green +Bug-Debian: https://bugs.debian.org/984224 + +--- lomiri-app-launch-0.0.90.orig/CMakeLists.txt ++++ lomiri-app-launch-0.0.90/CMakeLists.txt +@@ -51,7 +51,7 @@ set(lomiri_app_launch_arch "${LOMIRI_APP + + add_compile_options( + # Because we believe in quality +- -Wall -Werror ++ -Wall + -g + -pthread + ) diff -Nru lomiri-app-launch-0.0.90/debian/patches/series lomiri-app-launch-0.0.90/debian/patches/series --- lomiri-app-launch-0.0.90/debian/patches/series 2020-11-17 11:02:46.000000000 +0000 +++ lomiri-app-launch-0.0.90/debian/patches/series 2021-11-08 00:26:53.000000000 +0000 @@ -3,3 +3,5 @@ 1001_fix-gir-api-version.patch 1002_typo-fixes.patch 1003_add-missing-keywords-key.patch +2003-remove-werror.patch +1004-move-system-headers-outside-extern-c.patch