Adding Hurd architecture/os to dpkg and packaging scripts.
I want to add the Hurd architecture to dpkg and some debian/rules files.
The following issues have to be resolved, and I am confused by these
* dpkg --print-installation-architecture
* dpkg --print-architecture
* dpkg --print-gnu-build-architecture
Could someone explain what exactly each of these option does?
We use the "hurd-i386" tag for packages, and "i386-gnu" or "i386-pc-gnu" is
the GNU name of the system.
* debian/rules files using "ARCH= `dpkg --print-gnu-build-architecture`"
Some debian/rules files use this to determine the erchitecture, and have
later $(ARCH)-linux to specify the gnu architecture.
>From this I follow that "dpkg --print-gnu-build-architecture" should return
i386 on a Hurd system, and that we need a new option "--print-gnu-build-os",
which would return "gnu" on a gnu system and "linux" on a linux system. Does
this sound reasonable? In the packages scripts, the error code of dpkg could
be checked, and if it does not know this new option, the value could fall
back to "linux" for compatibility, so introducing this option would keep
full backward compatibility.
Please let me know what you think, and if you know what the various options
really mean. This issue is semi important, and should be resolved soon, so
we can start sending patches for the rules files.
Dpkg works otherwise great on the Hurd, a big thank you to all the
maintainers and non-maintainers working on it!
"Rhubarb is no Egyptian god." Debian GNU/Linux finger brinkmd@
Marcus Brinkmann http://www.debian.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09