Git Product home page Git Product logo

Comments (3)

MikeRich88 avatar MikeRich88 commented on June 3, 2024

The Makefile has only one line:

gcc -arch x86_64 -arch i386 -lz -o afsctool afsctool.c

So, I just ran that one line, and got a binary about 3-4 seconds later.

from afsctool.

jrk avatar jrk commented on June 3, 2024

Short answer: run make. CMake is an unrelated tool.

from afsctool.

DanielSmedegaardBuus avatar DanielSmedegaardBuus commented on June 3, 2024

Apologies, it seems I had just downloaded the brkirch zip listed under Sources (or perhaps even cloned a different fork, d'oh) rather than cloning your repo, and there was no Makefile in there :)

I cloned instead, and it builds correctly.

The reason I'm trying to build on my own, though, is that on my laptops (Air and new Pro, both with Sierra), I'm getting the f_type error, except on my systems it's f_type 24, not 23. Super weird — on my colleague's Air with Sierra, it works just fine.

You guys have any idea what f_type 24 is supposed to be? If I modify afsctool to accept f_type 24 as well as 17 and 23, it compresses just fine.

The only relevant difference I can think of between my Sierras and that of my colleague is that I'm using OpenZFS and TrueCrypt, which may or may not interfere with something. But I do doubt it.

On another note (sorry for using the issue reporter as a chat room), I'm really puzzled that the afsctool binary installed by homebrew has completely different command options:

 daniel@air  ~  afsctool
afsctool 1.6.4 (build 34)
Report if file is HFS+ compressed:                        afsctool [-v] file
Report if folder contains HFS+ compressed files:          afsctool [-fvvi] [-t <ContentType/Extension>] folder
List HFS+ compressed files in folder:                     afsctool -l[fvv] folder
Decompress HFS+ compressed file or folder:                afsctool -d[i] [-t <ContentType>] file/folder
Create archive file with compressed data in data fork:    afsctool -a[d] src dst
Extract HFS+ compression archive to file:                 afsctool -x[d] src dst
Apply HFS+ compression to file or folder:                 afsctool -c[nlfvvi] [-<level>] [-m <size>] [-s <percentage>] [-t <ContentType>] file/folder

Options:
-v Increase verbosity level
-f Detect hard links
-l List files that are HFS+ compressed (or if the -c option is given, files which fail to compress)
-L Allow large compressed blocks (not recommended)
-n Do not verify files after compression (not recommended)
-m <size> Largest file size to compress, in bytes
-s <percentage> For compression to be applied, compression savings must be at least this percentage
-t <ContentType/Extension> Return statistics for files of given content type and when compressing,
                           if this option is given then only files of content type(s) or extension(s) specified with this option will be compressed
-i Compress or show statistics for files that don't have content type(s) or extension(s) given by -t <ContentType/Extension> instead of those that do
-<level> Compression level to use when compressing (ranging from 1 to 9, with 1 being the fastest and 9 being the best - default is 5)

And yet, if I open up the formula, the source code it's based on is the same as the one on brkirch's site, and I assume the one you're based on?

from afsctool.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.