Opened 12 years ago

Closed 11 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:
Has a Patch: no Platform: All

Description

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 Changed 12 years ago by bonefish

Owner: changed from bonefish to mmu_man

comment:2 Changed 12 years ago by mmu_man

Status: newassigned

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

comment:3 Changed 11 years ago by mmu_man

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

comment:4 Changed 11 years ago by mmu_man

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.