Opened 13 years ago

Closed 13 years ago

#1676 closed bug (fixed)

build_haiku_image: attrrmrf function uses linux/GNU specific stat option -c %i

Reported by: gogo Owned by: mmu_man
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All


The file build/scripts/build_haiku_image uses the command 'stat -c %i'

find "$1" -print0 | xargs -0 stat -c %i | awk "{ print \"$outputDir/attributes/\" \$1 }" | xargs rm -rf

which is Linux/GNU specific.

On FreeBSD one gets e.g.:


Installing MIME database ...
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
Unmounting ...


Change History (4)

comment:1 by bonefish, 13 years ago

Owner: changed from bonefish to mmu_man

comment:2 by mmu_man, 13 years ago

Status: newassigned

hmm will have to try and replace it with ls -di | sed or something...

comment:3 by mmu_man, 13 years ago

Should be fixed in hrev24337 but I didn't try so please do.

comment:4 by mmu_man, 13 years ago

Resolution: fixed
Status: assignedclosed

Ingo replaced that with an fsShell rm command so it's not here anymore.

Note: See TracTickets for help on using tickets.