I am building a custom package for Debian which I then intend to deploy to other machines. To keep things simple, I'm just installing the
.deb file directly with
According to the Debian Policy Manual you can use the special words
all for an architecture-independent package, and
any for an architecture-dependent package that can be built for any number of different architectures.
So I have gone ahead and written
Architecture: any in my control file, however when I go to install the package, I get this error:
package architecture (any) does not match system (amd64)
Why is the package being created for the
any architecture? This is not an architecture-independent package (which is why I didn't write
all), so it looks like
dpkg is not replacing
any with the architecture the package was compiled for.
What is the correct way to specify that a package is platform-specific but it can be built for all available platforms? I don't want to have to list all of them, there are hundreds!
UPDATE: The build process is a simple
configure && make && make install PREFIX=/xyz and then I'm making the package with
fakeroot dpkg -b /xyz /output
Is there a standard way to replace 'any' with the current architecture automatically, or should I e.g. be using
sed to modify the control file?