1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00
cde/bin
Martijn Dekker 6b9a668f98 package: fix detection of 64-bit architectures
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
2021-04-07 01:28:17 +01:00
..
ignore update bin/ scripts (re: 3b19944e) 2021-01-19 23:05:01 +00:00
Mamfile_indent Build system: make SHOPT_* editable again; allow indenting Mamfiles 2021-01-22 23:39:59 +00:00
Mamfile_rm_unused_vars build system: rm unused variable declarations from Mamfiles 2021-02-05 15:39:31 +00:00
mamprobe update bin/ scripts (re: 3b19944e) 2021-01-19 23:05:01 +00:00
package package: fix detection of 64-bit architectures 2021-04-07 01:28:17 +01:00
shtests bin/shtests wrapper: export INSTALLROOT when using other ksh 2020-06-26 12:22:25 +02:00
silent update bin/ scripts (re: 3b19944e) 2021-01-19 23:05:01 +00:00