Commit b27af45
authored
Fix fakeroot build by using od(1) to check 64-bit ELFs (#943)
bin/package:
- Use od(1) to check the ELF header if the file command fails.
This allows ksh to build and install correctly in fakeroot
environments without encountering bogus seccomp restrictions.
- Check the first five bytes to guarantee it's actually an ELF
binary.
- Return 'Unknown bits' if it's neither a 64-bit ELF nor 32-bit
ELF (i.e. it could be anything). This isn't functionally
different but is better for clarity.
Resolves: #9191 parent fb8d814 commit b27af45
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | | - | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1527 | 1538 | | |
1528 | 1539 | | |
1529 | 1540 | | |
| |||
0 commit comments