Build: Architecture field in the control file

When building a package with wpkg, it first checks that the Architecture field is defined in the control file. If not, an error is generated. Contrary to Debian which uses the current installation architecture, we force the definition. This is because we cannot be sure that the default path to the wpkg library is valid for the computer being used to build the package.

Only the few architectures wpkg was compiled with are accepted. At this point this includes the following:

  • i386 or linux-i386
  • amd64 or linux-amd64
  • win32 or win32-i386
  • win64 or win64-amd64
  • source or src
  • all

The special name "any" is used as a pattern and it cannot appear in the Architecture field.