Source: compartment Version: 1.1.0-5.1 Tags: patch User: [email protected] Usertags: ftcbfs
compartment fails to cross build from source, because it strips with the build architecture strip via "install -s" during dh_auto_install. Beyond breaking cross compilation, this also breaks generation of -dbgsym packages as well as DEB_BUILD_OPTIONS=nostrip. It is best to not perform such stripping and instead rely on dh_strip. I'm attaching a patch for your convenience. I note that dh_strip actually does not strip here, because /usr/sbin/compartment ends up being static object that cannot be executed, because it was never linked. The compiler invocation contains -c and hence this is not something we can run (or dh_strip can strip). If you drop the -c, dh_strip will work again. Also the package will no longer be entirely useless. Helmut
diff --minimal -Nru compartment-1.1.0/debian/changelog compartment-1.1.0/debian/changelog --- compartment-1.1.0/debian/changelog 2023-10-02 22:16:27.000000000 +0200 +++ compartment-1.1.0/debian/changelog 2024-02-08 07:11:49.000000000 +0100 @@ -1,3 +1,10 @@ +compartment (1.1.0-5.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Do not strip during dh_auto_install. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Thu, 08 Feb 2024 07:11:49 +0100 + compartment (1.1.0-5.1) unstable; urgency=medium * Non-maintainer upload diff --minimal -Nru compartment-1.1.0/debian/rules compartment-1.1.0/debian/rules --- compartment-1.1.0/debian/rules 2023-10-02 22:15:09.000000000 +0200 +++ compartment-1.1.0/debian/rules 2024-02-08 07:11:46.000000000 +0100 @@ -19,3 +19,6 @@ # main packaging script based on debhelper syntax %: dh $@ + +override_dh_auto_install: + dh_auto_install -- INSTALL=install

