Opened 8 years ago

Closed 8 years ago

#7613 closed bug (fixed)

Non standard use of `stat`in BuildFloppyBootImage1

Reported by: mmadia Owned by: phoudoin
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

On FreeBSD 8.2, stat does not support '-c'.

When building jam -q @alpha-cd , the following output is observed

AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/write_overlay 
BuildFloppyBootArchive1 /storage/haiku-releases/r1alpha3/BOM-alpha3/output/generated.x86gcc2/haiku-floppyboot.tgz 
Preparing contents of archive /storage/haiku-releases/r1alpha3/BOM-alpha3/output/generated.x86gcc2/haiku-floppyboot.tgz ...
Building archive /storage/haiku-releases/r1alpha3/BOM-alpha3/output/generated.x86gcc2/haiku-floppyboot.tgz ...
BuildFloppyBootImage1 /storage/haiku-releases/r1alpha3/BOM-alpha3/output/generated.x86gcc2/haiku-boot-floppy.image 
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
[: -gt: unexpected operator
2880+0 records in
2880+0 records out
2949120 bytes transferred in 0.009403 secs (313636396 bytes/sec)
411+1 records in
411+1 records out
210928 bytes transferred in 0.000922 secs (228781007 bytes/sec)
4+1 records in
4+1 records out
1482439 bytes transferred in 0.003263 secs (454318269 bytes/sec)
BuildHaikuCD1 /storage/haiku-releases/r1alpha3/BOM-alpha3/output/generated.x86gcc2/haiku-alpha.iso 
Populating image ...
Extracting /storage/haiku-releases/r1alpha3/BOM-alpha3/output/haiku/data/system/data/firmware/iprowifi3945/iwlwifi-3945-ucode-15.32.2.9.tgz ...

This was introduced in hrev38945.

Change History (4)

comment:1 Changed 8 years ago by phoudoin

Status: newin-progress

comment:2 Changed 8 years ago by phoudoin

Could you check hrev41829 actually fix the issue (and don't introduce one on others build platforms, beside Haiku itself which I've check only) ?

Thanks.

comment:3 Changed 8 years ago by phoudoin

And format specifier switched to the expected %z in hrev41830.

comment:4 Changed 8 years ago by phoudoin

Resolution: fixed
Status: in-progressclosed
Note: See TracTickets for help on using tickets.