debian: freedombox package if built with pdebuild command fails to start up
When the Debian package is built using pbuilder, a
plinth.sqlite3 file gets included into the package. Also, plinth user doesn't have the permissions to read or write to this file, which obstructs plinth startup. Thus freedombox package built using pbuilder is not usable.
This is also the reason why the dev pipelines
functional-tests are failing in the infrastructure project.
This is the command run by Buildbot on the CI server.
pdebuild --buildresult . --pbuilder /usr/sbin/pbuilder --architecture amd64 -- --buildresult . --basetgz /var/cache/pbuilder/unstable-amd64-buildbot.tgz
I could reproduce the issue locally by simply running
pdebuild in the plinth directory without the remaining arguments.