Preface on the venue: It is specified in the description of mailing
lists that pgsql-general is for all topics except those relating to
failed compiles. However doing a search for the word compile fails to
yield any other mailing list for said compilation failures. Presumably
this is the said mailing list for compilation failures.
The compilation appears to fail on initdb, specifying that the initdb
as expected must be run by the user that runs the daemon, postgres,
when executing:
dpkg-buildpackage
Executing:
sudo -u postgres dpkg-buildpackage
Does not work. How does one build a debian package from source?