diff --git a/.github/workflows/linux-package.yml b/.github/workflows/linux-package.yml index 663076076db..0e10b9ca408 100644 --- a/.github/workflows/linux-package.yml +++ b/.github/workflows/linux-package.yml @@ -209,14 +209,14 @@ jobs: run: | cd ${{ github.workspace }}/ # Build the actual package for Ubuntu with XZ compression - dpkg-deb -Zxz --build "${{ github.workspace }}/${PKG_FULL}" + fakeroot dpkg-deb -Zxz --build "${{ github.workspace }}/${PKG_FULL}" - name: Create Debian Package if: ${{ success() && ( matrix.os == 'buster' || matrix.os == 'bullseye' || matrix.os == 'bookworm' ) }} run: | cd ${{ github.workspace }}/ # Build the actual package for Debian with GZIP compression - dpkg-deb -Zgzip --build "${{ github.workspace }}/${PKG_FULL}" + fakeroot dpkg-deb -Zgzip --build "${{ github.workspace }}/${PKG_FULL}" - name: Get info from generated package if: success() diff --git a/tests/linux_package_tests/integration_tests.py b/tests/linux_package_tests/integration_tests.py index 4a2ddb79581..a637dab62c5 100644 --- a/tests/linux_package_tests/integration_tests.py +++ b/tests/linux_package_tests/integration_tests.py @@ -156,6 +156,17 @@ def test_files_permissions(self): ts.expect_equal("boinc:boinc", self._get_file_owner("/var/lib/boinc/global_prefs_override.xml"), "Test '/var/lib/boinc/global_prefs_override.xml' file owner") ts.expect_equal("boinc:boinc", self._get_file_owner("/var/lib/boinc/remote_hosts.cfg"), "Test '/var/lib/boinc/remote_hosts.cfg' file owner") ts.expect_equal("boinc:boinc", self._get_file_owner("/var/lib/boinc/gui_rpc_auth.cfg"), "Test '/var/lib/boinc/gui_rpc_auth.cfg' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/local/bin/boinc"), "Test '/usr/local/bin/boinc' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/local/bin/boinccmd"), "Test '/usr/local/bin/boinccmd' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/local/bin/boincmgr"), "Test '/usr/local/bin/boincmgr' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/lib/systemd/system/boinc-client.service"), "Test '/usr/lib/systemd/system/boinc-client.service' file owner") + ts.expect_equal("root:root", self._get_file_owner("/etc/default/boinc-client"), "Test '/etc/default/boinc-client' file owner") + ts.expect_equal("root:root", self._get_file_owner("/etc/init.d/boinc-client"), "Test '/etc/init.d/boinc-client' file owner") + ts.expect_equal("root:root", self._get_file_owner("/etc/bash_completion.d/boinc.bash"), "Test '/etc/bash_completion.d/boinc.bash' file owner") + ts.expect_equal("root:root", self._get_file_owner("/etc/X11/Xsession.d/36x11-common_xhost-boinc"), "Test '/etc/X11/Xsession.d/36x11-common_xhost-boinc' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/local/share/applications/boinc.desktop"), "Test '/usr/local/share/applications/boinc.desktop' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/local/share/icons/boinc.png"), "Test '/usr/local/share/icons/boinc.png' file owner") + ts.expect_equal("root:root", self._get_file_owner("/usr/local/share/icons/boinc.svg"), "Test '/usr/local/share/icons/boinc.svg' file owner") return ts.result() if __name__ == "__main__":