mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
On some systems (such as Ubuntu on ARM), the output of `file` contains a build hash, such as: SomeExecutable: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=8934dd61657aac875c190535066466849687a56b, not stripped This build hash can contain the string '64', which caused package to wrongly detect a 64-bit architecture. bin/package, src/cmd/INIT/package.sh: - Export LC_ALL=C to ensure 'file' output in English. - To detect a 64-bit architecture, require the string "64-bit", "64 bit" or "64bit" in 'file' output. The letters 'i' and 't' cannot occur in a hexadecimal hash, so hopefully that is safe enough. It is impossible to make this method completely safe, so in the long term it should be replaced. Progresses: https://github.com/ksh93/ksh/issues/253 |
||
---|---|---|
.. | ||
ignore | ||
Mamfile_indent | ||
Mamfile_rm_unused_vars | ||
mamprobe | ||
package | ||
shtests | ||
silent |