AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

MacOs brew package? #72

Open keeely opened 3 years ago

keeely commented 3 years ago

I've compiled this successfully on my Mac, and it seems to work perfectly. I wondered if you could make it available via brew (https://brew.sh/).

There was just one compilation warning:

`warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: libcompat.a the table of contents is empty (no object file members in the library define global symbols) CCLD gensquashfs CC bin/rdsquashfs/rdsquashfs-rdsquashfs.o CC bin/rdsquashfs/rdsquashfs-list_files.o CC bin/rdsquashfs/rdsquashfs-options.o CC bin/rdsquashfs/rdsquashfs-restore_fstree.o CC bin/rdsquashfs/rdsquashfs-describe.o CC bin/rdsquashfs/rdsquashfs-fill_files.o CC bin/rdsquashfs/rdsquashfs-dump_xattrs.o CC bin/rdsquashfs/rdsquashfs-stat.o bin/rdsquashfs/stat.c:131:28: warning: format specifies type 'unsigned long' but the argument has type 'sqfs_u64' (aka 'unsigned long long') [-Wformat] printf("Sparse: %lu\n", inode->data.file_ext.sparse);


                                        %llu
1 warning generated.`
AgentD commented 3 years ago

Hi!

I'm not sure how much I can help here, since I currently don't have access to Apple hardware or software. The portability to MacOS was primarily achieved through being careful with GNU extensions and testing on Travis CI.

I double checked and saw that I get the same warning on Travis. I will look into this.

If it is any help at all, I took the brew script squashfs-tools and plugged in the values which I could generate on my end:

scratch.rb.gz

gliptak commented 1 year ago

sibling project packaged at https://formulae.brew.sh/formula/squashfs