Control File: invalid number of parameter for function call

Your control file can include expressions written inside parenthesis starting with a dollar side. For example, to retrieve the architecture the running wpkg  was compiled for, you would use the following:


Here the architecture() function does not accept any parameters so writing any number of parameters would be invalid and thus it would break the build process. This is true for any of the instruction understood by the expression system.

VALIDArchitecture: $(architecture())
INVALIDArchitecture: $(architecture(1, 3))

See also: Adding dynamic variables and expressions to control file content