RJVB / afsctool

This is a version of "brkirch"'s afsctool utility that allows end-users to leverage HFS+ compression.
https://brkirch.wordpress.com/afsctool
GNU General Public License v3.0
187 stars 18 forks source link

Latest binary #19

Open Henrietta1989 opened 5 years ago

Henrietta1989 commented 5 years ago

Is this latest version, if not, where i can download latest binary?

https://github.com/diimdeep/afsctool/files/1504128/afsctool.zip

RJVB commented 5 years ago

You'd have to as the owner of the repo, @diimdeep .

I don' provide binaries in my repo, just the source. I do however provide a MacPorts ports tree that contains a port:afsctool that strives to install the latest stable release: https://github.com/RJVB/macstrop .

Henrietta1989 commented 5 years ago

I installed PortAuthority and MacPorts but if i search for afsctool, it only finds brkirch.wordpress.com/afsctool/ 1.6.4 version.

I try to install your version or any other afsctool which works best in Mojave. Thanks

RJVB commented 5 years ago

Please follow the instructions from the macstrop README (go to the macstrop project page on github and scroll down). You need to tell MacPorts to use the macstrop ports tree if you want to see my version of port:afsctool . Note that the port doesn't yet include the latest changes on here; I'm waiting for more tester feedback.

If you want the latest version you can install the dependencies through MacPorts and then build the afsctool sources as instructed here.

Henrietta1989 commented 5 years ago

So i need to do this part of Readme:

%> sudo -u macports git clone --depth=1 --no-single-branch http://github.com/RJVB/macstrop.git /opt/local/site-ports

(the --depth and --no-single-branch options are optional of course.)

Then, edit ${prefix}/etc/macports/sources.conf (${prefix} is where MacPorts is installed; by default it's /opt/local). Towards the end of the file, add a line above the line that has [default] at the end:

file:///opt/local/site-ports

and save the file. If you do not want this repository to be updated automatically whenever you do port selfupdate or port sync, you'll want to add [nosync] at the end of the line you added.

Now, do

%> (cd /opt/local/site-ports ; portindex)

and the new ports will be available.

I have default settings in both MacPorts and PortAuthority.

sudo -u macports git clone --depth=1 --no-single-branch http://github.com/RJVB/macstrop.git /opt/local/site-ports

fatal: could not create work tree dir '/opt/local/site-ports': Permission denied

This might be too complicated for me to install. Do you think there is other afsctool compatible with Mojave which is easy to install? Thanks

RJVB commented 5 years ago

OOps, you found an error in the README instructions! Can you try with these updated instructions?

%> sudo git clone --depth=1 --no-single-branch http://github.com/RJVB/macstrop.git /opt/local/site-ports
%> sudo chown -R macports /opt/local/site-ports

This makes sure that the resulting tree will be readable by the "macporst" user. (The --depth and --no-single-branch options are optional of course.)
To update the tree later on, use
%> sudo -u macports git -C /opt/local/site-ports pull
Henrietta1989 commented 5 years ago

No error this time, but if i search using PortAuthority, still it shows only brkirch 1.6.4.

Any RSS-feed which updates when you update afsctool?

Does the path change? I used this earlier:

sudo /usr/local/bin/afsctool -ckl path/here

RJVB commented 5 years ago

I have no experience with PortAuthority, but it should behave the same as the port terminal command. Of course you will need to follow the entire instruction set. In particular you have to add /opt/local/site-ports to sources.conf on a line before the default source, and run portindex in /opt/local/site-ports.

I've never tested, but in principle the tree in /opt/local/site-ports should be updated when you run port selfupdate, as long as you don't tell MacPorts NOT to do that (so no nosync keyword on the site-ports line in sources.conf).

Henrietta1989 commented 5 years ago

If i run this:

(cd /opt/local/site-ports ; portindex)

These are last rows in Terminal window:

Adding port x11/xvisbell error renaming "/tmp/mports.portindex.FSbgu5HU" to "/opt/local/site-ports/PortIndex": permission denied while executing "file rename -force $tempportindex $outpath" (file "/opt/local/bin/portindex" line 329)

And PortAuthority still don't find it.

RJVB commented 5 years ago

Thanks for your patience with this, I appreciate the feedback from someone who is not an experienced developer or Unix user! I've clearly been assuming too much that potential users of my ports do have that kind of experience.

The chown command you executed earlier changed the ownership of /opt/local/site-ports to the "macports" user. Simplifying things a bit, that means that every command that modifies anything inside that directory has to executed as that user, i.e. with sudo -u macports in front of the command.

So:

%> (cd /opt/local/site-ports ; sudo -u macports portindex)

I've looked at the README a bit more, there should be no other commands that need this same prefix. GIven why you installed my ports I would advise against following the instructions concerning the git hooks; those may become relevant if ever you want to install other ports but they're not required for installing just afsctool.

Henrietta1989 commented 5 years ago

I did this: (cd /opt/local/site-ports ; sudo -u macports portindex)

I can see afsctool 1.6.9.8 in PortAuthority. I then tried to install it using PortAuthority.

PortAuthority installed it 1-2 hours and it Pinged 76 different servers for some reason.

In end of log was this and it says afsctool failed:

sparsehash/internal/hashtable-common.h x ./opt/local/include/sparsehash/internal/sparseconfig.h ---> Cleaning sparsehash ---> Removing work directory for sparsehash Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed ---> Some of the ports you installed have notes: libpsl has the following notes: libpsl API documentation is provided by the port 'libpsl-docs'.

Then Kernel Panic.

PortAuthority don’t list it in Installed window.

Now if i try to install again using PortAuthority:

--> Computing dependencies for afsctool. . .

---> Dependencies to be installed: cmake libcxx

Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed

RJVB commented 5 years ago

PortAuthority installed it 1-2 hours and it Pinged 76 different servers for some reason.

I would have to see the full log to figure out why that is, but between the required git, sparsehash and cmake there are quite about 70 dependencies to install. It does not explain why it took so long; is PortAuthority configured to build everything from source? What kind of computer are you running this on?

You can attach the log file here, but you would probably have to add ".txt" to the filename.

Then Kernel Panic.

Did you really get a kernel panic, i.e. did you have to reboot the machine? If so that is something you really should report on trac.macports.org!

---> Dependencies to be installed: cmake libcxx

You should not be needing libcxx if you are running "Mojave"!

Please try without PortAuthority. As I said, I don't know it, and I have no idea how well maintained it is (e.g. if it works correctly on the latest Mac OS). In a terminal, do

%> sudo port clean afsctool %> sudo port install afsctool

If that succeeds, fine. If not, please try a clean install

%> sudo port -u -f uninstall active %> sudo port clean afsctool %> sudo port install afsctool

Henrietta1989 commented 5 years ago

It was kernel panic. MacBook Pro Retina. Mojave.

Fails:

Last login: Wed Oct 10 12:19:11 on ttys002 Home:~ Henrietta$ sudo port clean afsctool Password: ---> Cleaning afsctool Home:~ Henrietta$ sudo port install afsctool ---> Computing dependencies for afsctool The following dependencies will be installed: cmake libcxx Continue? [Y/n]: y Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed Home:~ Henrietta$ sudo port -u -f uninstall active ---> Deactivating autoconf @2.69_5 ---> Cleaning autoconf ---> Uninstalling autoconf @2.69_5 ---> Cleaning autoconf ---> Deactivating automake @1.16.1_0 ---> Cleaning automake ---> Uninstalling automake @1.16.1_0 ---> Cleaning automake ---> Deactivating libarchive @3.3.3_0 ---> Cleaning libarchive ---> Uninstalling libarchive @3.3.3_0 ---> Cleaning libarchive ---> Deactivating curl @7.61.1_0+ssl ---> Cleaning curl ---> Uninstalling curl @7.61.1_0+ssl ---> Cleaning curl ---> Deactivating libpsl @0.20.2-20180522_0 ---> Cleaning libpsl ---> Uninstalling libpsl @0.20.2-20180522_0 ---> Cleaning libpsl ---> Deactivating glib2 @2.56.0_0+x11 ---> Cleaning glib2 ---> Uninstalling glib2 @2.56.0_0+x11 ---> Cleaning glib2 ---> Deactivating pcre @8.41_1 ---> Cleaning pcre ---> Uninstalling pcre @8.41_1 ---> Cleaning pcre ---> Deactivating bzip2 @1.0.6_0 ---> Cleaning bzip2 ---> Uninstalling bzip2 @1.0.6_0 ---> Cleaning bzip2 ---> Deactivating curl-ca-bundle @7.61.1_2 ---> Cleaning curl-ca-bundle ---> Uninstalling curl-ca-bundle @7.61.1_2 ---> Cleaning curl-ca-bundle ---> Deactivating expat @2.2.6_1 ---> Cleaning expat ---> Uninstalling expat @2.2.6_1 ---> Cleaning expat ---> Deactivating libidn2 @2.0.5_0 ---> Cleaning libidn2 ---> Uninstalling libidn2 @2.0.5_0 ---> Cleaning libidn2 ---> Deactivating libxml2 @2.9.7_0 ---> Cleaning libxml2 ---> Uninstalling libxml2 @2.9.7_0 ---> Cleaning libxml2 ---> Deactivating xz @5.2.3_0+nls ---> Cleaning xz ---> Uninstalling xz @5.2.3_0+nls ---> Cleaning xz ---> Deactivating gettext @0.19.8.1_0 ---> Cleaning gettext ---> Uninstalling gettext @0.19.8.1_0 ---> Cleaning gettext ---> Deactivating libedit @20170329-3.1_2 ---> Cleaning libedit ---> Uninstalling libedit @20170329-3.1_2 ---> Cleaning libedit ---> Deactivating libffi @3.2.1_0 ---> Cleaning libffi ---> Uninstalling libffi @3.2.1_0 ---> Cleaning libffi ---> Deactivating libunistring @0.9.10_0 ---> Cleaning libunistring ---> Uninstalling libunistring @0.9.10_0 ---> Cleaning libunistring ---> Deactivating pkgconfig @0.29.2_0 ---> Cleaning pkgconfig ---> Uninstalling pkgconfig @0.29.2_0 ---> Cleaning pkgconfig ---> Deactivating libiconv @1.15_0 ---> Cleaning libiconv ---> Uninstalling libiconv @1.15_0 ---> Cleaning libiconv ---> Deactivating libtool @2.4.6_5 ---> Cleaning libtool ---> Uninstalling libtool @2.4.6_5 ---> Cleaning libtool ---> Deactivating libuv @1.23.1_0 ---> Cleaning libuv ---> Uninstalling libuv @1.23.1_0 ---> Cleaning libuv ---> Deactivating lz4 @1.8.3_0 ---> Cleaning lz4 ---> Uninstalling lz4 @1.8.3_0 ---> Cleaning lz4 ---> Deactivating lzo2 @2.10_0 ---> Cleaning lzo2 ---> Uninstalling lzo2 @2.10_0 ---> Cleaning lzo2 ---> Deactivating ncurses @6.0_0 ---> Cleaning ncurses ---> Uninstalling ncurses @6.0_0 ---> Cleaning ncurses ---> Deactivating openssl @1.0.2p_0 ---> Cleaning openssl ---> Uninstalling openssl @1.0.2p_0 ---> Cleaning openssl ---> Deactivating sparsehash @2.0.3_1 ---> Cleaning sparsehash ---> Uninstalling sparsehash @2.0.3_1 ---> Cleaning sparsehash ---> Deactivating zlib @1.2.11_0 ---> Cleaning zlib ---> Uninstalling zlib @1.2.11_0 ---> Cleaning zlib Home:~ Henrietta$ sudo port clean afsctool ---> Cleaning afsctool Home:~ Henrietta$ sudo port install afsctool ---> Computing dependencies for afsctool The following dependencies will be installed: autoconf automake bzip2 cmake curl curl-ca-bundle expat gettext glib2 libarchive libcxx libedit libffi libiconv libidn2 libpsl libtool libunistring libuv libxml2 lz4 lzo2 ncurses openssl pcre pkgconfig sparsehash xz zlib Continue? [Y/n]: y ---> Fetching archive for bzip2 ---> Attempting to fetch bzip2-1.0.6_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.6_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/bzip2 ---> Installing bzip2 @1.0.6_0 ---> Activating bzip2 @1.0.6_0 ---> Cleaning bzip2 ---> Fetching archive for curl-ca-bundle ---> Attempting to fetch curl-ca-bundle-7.61.1_2.darwin_18.noarch.tbz2 from https://packages.macports.org/curl-ca-bundle ---> Attempting to fetch curl-ca-bundle-7.61.1_2.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/curl-ca-bundle ---> Installing curl-ca-bundle @7.61.1_2 ---> Activating curl-ca-bundle @7.61.1_2 ---> Cleaning curl-ca-bundle ---> Fetching archive for libiconv ---> Attempting to fetch libiconv-1.15_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libiconv ---> Attempting to fetch libiconv-1.15_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libiconv ---> Installing libiconv @1.15_0 ---> Activating libiconv @1.15_0 ---> Cleaning libiconv ---> Fetching distfiles for ncurses ---> Verifying checksums for ncurses ---> Extracting ncurses ---> Applying patches to ncurses ---> Configuring ncurses ---> Building ncurses ---> Staging ncurses into destroot ---> Installing ncurses @6.0_0 ---> Activating ncurses @6.0_0 ---> Cleaning ncurses ---> Fetching archive for gettext ---> Attempting to fetch gettext-0.19.8.1_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/gettext ---> Attempting to fetch gettext-0.19.8.1_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/gettext ---> Installing gettext @0.19.8.1_0 ---> Activating gettext @0.19.8.1_0 ---> Cleaning gettext ---> Fetching archive for libunistring ---> Attempting to fetch libunistring-0.9.10_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libunistring ---> Attempting to fetch libunistring-0.9.10_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libunistring ---> Installing libunistring @0.9.10_0 ---> Activating libunistring @0.9.10_0 ---> Cleaning libunistring ---> Fetching archive for libidn2 ---> Attempting to fetch libidn2-2.0.5_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libidn2 ---> Attempting to fetch libidn2-2.0.5_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libidn2 ---> Installing libidn2 @2.0.5_0 ---> Activating libidn2 @2.0.5_0 ---> Cleaning libidn2 ---> Fetching archive for autoconf ---> Attempting to fetch autoconf-2.69_5.darwin_18.noarch.tbz2 from https://packages.macports.org/autoconf ---> Attempting to fetch autoconf-2.69_5.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/autoconf ---> Installing autoconf @2.69_5 ---> Activating autoconf @2.69_5 ---> Cleaning autoconf ---> Fetching archive for automake ---> Attempting to fetch automake-1.16.1_0.darwin_18.noarch.tbz2 from https://packages.macports.org/automake ---> Attempting to fetch automake-1.16.1_0.darwin_18.noarch.tbz2.rmd160 from https://packages.macports.org/automake ---> Installing automake @1.16.1_0 ---> Activating automake @1.16.1_0 ---> Cleaning automake ---> Fetching archive for libffi ---> Attempting to fetch libffi-3.2.1_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libffi ---> Attempting to fetch libffi-3.2.1_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libffi ---> Installing libffi @3.2.1_0 ---> Activating libffi @3.2.1_0 ---> Cleaning libffi ---> Fetching archive for libtool ---> Attempting to fetch libtool-2.4.6_5.darwin_18.x86_64.tbz2 from https://packages.macports.org/libtool ---> Attempting to fetch libtool-2.4.6_5.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libtool ---> Installing libtool @2.4.6_5 ---> Activating libtool @2.4.6_5 ---> Cleaning libtool ---> Fetching archive for libedit ---> Attempting to fetch libedit-20170329-3.1_2.darwin_18.x86_64.tbz2 from https://packages.macports.org/libedit ---> Attempting to fetch libedit-20170329-3.1_2.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libedit ---> Installing libedit @20170329-3.1_2 ---> Activating libedit @20170329-3.1_2 ---> Cleaning libedit ---> Fetching distfiles for xz ---> Verifying checksums for xz ---> Extracting xz ---> Configuring xz ---> Building xz ---> Staging xz into destroot ---> Installing xz @5.2.3_0+nls ---> Activating xz @5.2.3_0+nls ---> Cleaning xz ---> Fetching distfiles for zlib ---> Verifying checksums for zlib ---> Extracting zlib ---> Configuring zlib ---> Building zlib ---> Staging zlib into destroot ---> Installing zlib @1.2.11_0 ---> Activating zlib @1.2.11_0 ---> Cleaning zlib ---> Fetching distfiles for pcre ---> Verifying checksums for pcre ---> Extracting pcre ---> Applying patches to pcre ---> Configuring pcre ---> Building pcre ---> Staging pcre into destroot ---> Installing pcre @8.41_1 ---> Activating pcre @8.41_1 ---> Cleaning pcre ---> Fetching archive for pkgconfig ---> Attempting to fetch pkgconfig-0.29.2_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/pkgconfig ---> Attempting to fetch pkgconfig-0.29.2_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/pkgconfig ---> Installing pkgconfig @0.29.2_0 ---> Activating pkgconfig @0.29.2_0 ---> Cleaning pkgconfig ---> Fetching distfiles for glib2 ---> Verifying checksums for glib2 ---> Extracting glib2 ---> Applying patches to glib2 ---> Configuring glib2 Warning: reinplace s|global_symbol_pipe=""|global_symbol_pipe="cat"|g didn't change anything in /opt/local/var/macports/build/_opt_local_site-ports_devel_glib2/glib2/work/glib-2.56.0/libtool ---> Building glib2 ---> Staging glib2 into destroot ---> Installing glib2 @2.56.0_0+x11 ---> Activating glib2 @2.56.0_0+x11 ---> Cleaning glib2 ---> Fetching archive for libpsl ---> Attempting to fetch libpsl-0.20.2-20180522_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libpsl ---> Attempting to fetch libpsl-0.20.2-20180522_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libpsl ---> Installing libpsl @0.20.2-20180522_0 ---> Activating libpsl @0.20.2-20180522_0 ---> Cleaning libpsl ---> Fetching archive for openssl ---> Attempting to fetch openssl-1.0.2p_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/openssl ---> Attempting to fetch openssl-1.0.2p_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/openssl ---> Installing openssl @1.0.2p_0 ---> Activating openssl @1.0.2p_0 ---> Cleaning openssl ---> Fetching archive for curl ---> Attempting to fetch curl-7.61.1_0+ssl.darwin_18.x86_64.tbz2 from https://packages.macports.org/curl ---> Attempting to fetch curl-7.61.1_0+ssl.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/curl ---> Installing curl @7.61.1_0+ssl ---> Activating curl @7.61.1_0+ssl ---> Cleaning curl ---> Fetching archive for expat ---> Attempting to fetch expat-2.2.6_1.darwin_18.x86_64.tbz2 from https://packages.macports.org/expat ---> Attempting to fetch expat-2.2.6_1.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/expat ---> Installing expat @2.2.6_1 ---> Activating expat @2.2.6_1 ---> Cleaning expat ---> Fetching archive for libxml2 ---> Attempting to fetch libxml2-2.9.7_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libxml2 ---> Attempting to fetch libxml2-2.9.7_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libxml2 ---> Installing libxml2 @2.9.7_0 ---> Activating libxml2 @2.9.7_0 ---> Cleaning libxml2 ---> Fetching archive for lz4 ---> Attempting to fetch lz4-1.8.3_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/lz4 ---> Attempting to fetch lz4-1.8.3_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/lz4 ---> Installing lz4 @1.8.3_0 ---> Activating lz4 @1.8.3_0 ---> Cleaning lz4 ---> Fetching archive for lzo2 ---> Attempting to fetch lzo2-2.10_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/lzo2 ---> Attempting to fetch lzo2-2.10_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/lzo2 ---> Installing lzo2 @2.10_0 ---> Activating lzo2 @2.10_0 ---> Cleaning lzo2 ---> Fetching archive for libarchive ---> Attempting to fetch libarchive-3.3.3_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libarchive ---> Attempting to fetch libarchive-3.3.3_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libarchive ---> Installing libarchive @3.3.3_0 ---> Activating libarchive @3.3.3_0 ---> Cleaning libarchive ---> Fetching archive for libuv ---> Attempting to fetch libuv-1.23.1_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/libuv ---> Attempting to fetch libuv-1.23.1_0.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/libuv ---> Installing libuv @1.23.1_0 ---> Activating libuv @1.23.1_0 ---> Cleaning libuv ---> Fetching archive for sparsehash ---> Attempting to fetch sparsehash-2.0.3_1.darwin_18.x86_64.tbz2 from https://packages.macports.org/sparsehash ---> Attempting to fetch sparsehash-2.0.3_1.darwin_18.x86_64.tbz2.rmd160 from https://packages.macports.org/sparsehash ---> Installing sparsehash @2.0.3_1 ---> Activating sparsehash @2.0.3_1 ---> Cleaning sparsehash Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed ---> Some of the ports you installed have notes: libpsl has the following notes: libpsl API documentation is provided by the port 'libpsl-docs'. Home:~ Henrietta$

RJVB commented 5 years ago

Did this take as long as it did with PortAuthority?

Still, we got further now. With a bit of luck the output from the following command will help me understand the problem:

%> sudo port -vd install afsctool

Just copy the output here, there shouldn't be too much now.

Henrietta1989 commented 5 years ago

It was faster.

Home:~ Henrietta$ sudo port -vd install afsctool Password: DEBUG: Copying /Users/Henrietta/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: Changing to port directory: /opt/local/site-ports/sysutils/afsctool DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386 DEBUG: Re-registering default for destroot.target DEBUG: Re-registering default for configure.dir DEBUG: Re-registering default for build.dir DEBUG: Re-registering default for configure.pre_args DEBUG: Sourcing PortGroup cmake 1.1 from /opt/local/site-ports/_resources/port1.0/group/cmake-1.1.tcl DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl DEBUG: Sourcing PortGroup compress_workdir 1.0 from /opt/local/site-ports/_resources/port1.0/group/compress_workdir-1.0.tcl DEBUG: Re-registering default for livecheck.url DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Running callback portstartupitem::add_notes DEBUG: Finished running callback portstartupitem::add_notes DEBUG: dropping privileges: euid changed to 502, egid changed to 502. DEBUG: Starting logging for afsctool DEBUG: macOS 10.14 (darwin/18.0.0) arch i386 DEBUG: MacPorts 2.5.4 DEBUG: Xcode 10.0 DEBUG: SDK 10.14 DEBUG: MACOSX_DEPLOYMENT_TARGET: 10.14 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$ DEBUG: epoch: in tree: 0 installed: 0 DEBUG: zlib 1.2.11_0 exists in the ports tree DEBUG: zlib 1.2.11_0 is the latest installed DEBUG: zlib 1.2.11_0 is active DEBUG: Merging existing variants '' into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/site-ports/archivers/zlib DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386 DEBUG: Sourcing PortGroup xcodeversion 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/xcodeversion-1.0.tcl DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Running callback portstartupitem::add_notes DEBUG: Finished running callback portstartupitem::add_notes DEBUG: No need to upgrade! zlib 1.2.11_0 >= zlib 1.2.11_0 DEBUG: epoch: in tree: 0 installed: 0 DEBUG: sparsehash 2.0.3_1 exists in the ports tree DEBUG: sparsehash 2.0.3_1 is the latest installed DEBUG: sparsehash 2.0.3_1 is active DEBUG: Merging existing variants '' into variants DEBUG: new fully merged portvariants: DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/sparsehash DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386 DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl DEBUG: Re-registering default for livecheck.regex DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Running callback portstartupitem::add_notes DEBUG: Finished running callback portstartupitem::add_notes DEBUG: No need to upgrade! sparsehash 2.0.3_1 >= sparsehash 2.0.3_1 ---> Computing dependencies for afsctool DEBUG: afsctool has no conflicts DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$ DEBUG: Searching for dependency: git DEBUG: Didn't find receipt, going to depspec regex for: git DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$ DEBUG: Searching for dependency: cmake DEBUG: Didn't find receipt, going to depspec regex for: cmake DEBUG: Changing to port directory: /opt/local/site-ports/devel/cmake DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386 DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/site-ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl DEBUG: compiler clang 1000.11.45.2 not blacklisted because it doesn't match {clang < 500} DEBUG: Sourcing PortGroup cxx11 1.1 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/cxx11-1.1.tcl DEBUG: blacklisting macports-clang-3.8 because it might need us for installation DEBUG: blacklisting macports-clang-3.9 because it might need us for installation DEBUG: blacklisting macports-clang-4.0 because it might need us for installation DEBUG: blacklisting macports-clang-5.0 because it might need us for installation DEBUG: universal variant already exists, so not adding the default one DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Running callback portstartupitem::add_notes DEBUG: Finished running callback portstartupitem::add_notes DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Searching for dependency: sparsehash DEBUG: Found Dependency: receipt exists for sparsehash DEBUG: Checking for conflicts against cmake DEBUG: Searching for dependency: cmake-devel DEBUG: Didn't find receipt, going to depspec regex for: cmake-devel DEBUG: Searching for dependency: libcxx DEBUG: Didn't find receipt, going to depspec regex for: libcxx DEBUG: Changing to port directory: /opt/local/site-ports/lang/libcxx DEBUG: OS darwin/18.0.0 (Mac OS X 10.14) arch i386 DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl DEBUG: Re-registering default for destroot.target DEBUG: Re-registering default for configure.dir DEBUG: Re-registering default for build.dir DEBUG: Re-registering default for configure.pre_args DEBUG: Sourcing PortGroup cmake 1.1 from /opt/local/site-ports/_resources/port1.0/group/cmake-1.1.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Executing variant universal provides universal DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies DEBUG: Running callback portstartupitem::add_notes DEBUG: Finished running callback portstartupitem::add_notes DEBUG: Searching for dependency: curl DEBUG: Found Dependency: receipt exists for curl DEBUG: Searching for dependency: expat DEBUG: Found Dependency: receipt exists for expat DEBUG: Searching for dependency: bzip2 DEBUG: Found Dependency: receipt exists for bzip2 DEBUG: Searching for dependency: libarchive DEBUG: Found Dependency: receipt exists for libarchive DEBUG: Searching for dependency: ncurses DEBUG: Found Dependency: receipt exists for ncurses DEBUG: Searching for dependency: libuv DEBUG: Found Dependency: receipt exists for libuv DEBUG: libcxx has no conflicts DEBUG: Searching for dependency: xz DEBUG: Found Dependency: receipt exists for xz DEBUG: Searching for dependency: libedit DEBUG: Found Dependency: receipt exists for libedit DEBUG: Searching for dependency: libffi DEBUG: Found Dependency: receipt exists for libffi DEBUG: Searching for dependency: libxml2 DEBUG: Found Dependency: receipt exists for libxml2 The following dependencies will be installed: cmake libcxx Continue? [Y/n]: y DEBUG: dlist_eval: all entries in dependency list have unsatisfied dependencies; can't process Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed Home:~ Henrietta$

RJVB commented 5 years ago

OKKKK, I think I understand now. There was probably a dependency conflict in my version of ports cmake and libcxx which resulted in them not installing correctly:

The following dependencies will be installed: cmake libcxx Continue? [Y/n]: y DEBUG: dlist_eval: all entries in dependency list have unsatisfied dependencies; can't process Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed

This is a good time to try if

%> port selfupdate

works without errors. If all is well you should see that it pulls new versions into /opt/local/site-ports . It may give a permissions error, in which case you'd have to do the sudo -u macports prefix trick (and tell me about it!)

Afterwards,

%> port info cmake libcxx

should show that cmake no longer depends on libcxx and that libcxx no longer depends on cmake. If that is not the case, please tell me, and do

%> sudo -u macports git -C /opt/local/site-ports pull

Afterwards, do

%> sudo port clean cmake libcxx

just to be sure, and then do

%> sudo port install afsctool

If that fails again, then please repeat the earlier command to get output:

%> sudo port -vd install afsctool

Thanks again for your patience! I hope you appreciate learning a little bit more about this kind of computer usage ;)

Henrietta1989 commented 5 years ago

Home:~ Henrietta$ port selfupdate Error: Insufficient privileges to write to MacPorts install prefix. Home:~ Henrietta $ sudo -u macports port selfupdate Password: Error: Insufficient privileges to write to MacPorts install prefix. Home:~ Henrietta $

RJVB commented 5 years ago

Oh my.

I do this so infrequently myself that I forgot that it is indeed the official way to do this with elevated privileges (https://www.macports.org/install.php). So my bad, you have to do

%> sudo port -v selfupdate

(sudo -u macports foo executes a command "foo" as the macports user, while sudo foo executes that command as the "superuser", aka root.)

Henrietta1989 commented 5 years ago

For some reason i didn't get notification for your above post at all.

sudo port -v selfupdate

Last rows of log:

--> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated

RJVB commented 5 years ago

--> MacPorts base is already the latest version

OK, that suggests that updating of 3rd party repositories doesn't work, or maybe never worked.

So, you'd have to follow the instructions for updating macstrop manually:

%> sudo -u macports git -C /opt/local/site-ports pull

this should some a list of updated files (which in themselves probably won't mean much to you). Note that this git command must run as the macports user because /opt/local/site-ports is still owned by that user.

Then, follow the advice you saw:

%> sudo port upgrade outdated

And then ... try again to install afsctool as shown before.

Henrietta1989 commented 5 years ago

Should i now run sudo port upgrade outdated and then install...

Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports pull
Password:
fatal: unable to access 'http://github.com/RJVB/macstrop.git/': Empty reply from server
Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports pull
warning: redirecting to https://github.com/RJVB/macstrop.git/
Already up to date.
Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports pull
warning: redirecting to https://github.com/RJVB/macstrop.git/
Already up to date.
RJVB commented 5 years ago

Should i now run sudo port upgrade outdated and then install...

Yes...

Henrietta1989 commented 5 years ago

I did now sudo port upgrade outdated but not sure anymore what install instructions to use?

Just this?

sudo port install afsctool

RJVB commented 5 years ago

Sorry, yes.

If ever that fails again then do

%> sudo port -vd install afsctool

to get the relevant failure output directly.

BTW, if you do

%> sudo -u macports git -C /opt/local/site-ports describe

you should see this as output: KF5.Plasma-5.10.2-1731-g448bc8ce

Henrietta1989 commented 5 years ago

Building cmake row takes really long:

sudo port install afsctool Password: ---> Computing dependencies for afsctool The following dependencies will be installed: cmake Continue? [Y/n]: y ---> Fetching distfiles for cmake ---> Attempting to fetch cmake-3.12.3.tar.gz from https://cmake.org/files/v3.12/ ---> Attempting to fetch cmake-3.12.3.tar.gz from https://distfiles.macports.org/cmake ---> Verifying checksums for cmake
---> Extracting cmake ---> Applying patches to cmake ---> Configuring cmake ---> Building cmake

RJVB commented 5 years ago

on my 2011 MBP it takes about 20 minutes I think. I'm a bit surprised it would build from source for you but there must be an explanation for that. The good news is that it shouldn't be required very often.

Henrietta1989 commented 5 years ago

First it failed then i think it worked. Last is "fatal: No tags can describe".

Home:~ Henrietta$ sudo port install afsctool Password: ---> Computing dependencies for afsctool The following dependencies will be installed: cmake Continue? [Y/n]: y ---> Fetching distfiles for cmake ---> Attempting to fetch cmake-3.12.3.tar.gz from https://cmake.org/files/v3.12/ ---> Attempting to fetch cmake-3.12.3.tar.gz from https://distfiles.macports.org/cmake ---> Verifying checksums for cmake
---> Extracting cmake ---> Applying patches to cmake ---> Configuring cmake ---> Building cmake ---> Staging cmake into destroot ---> Installing cmake @3.12.3_0 ---> Activating cmake @3.12.3_0 ---> Cleaning cmake ---> Fetching distfiles for afsctool Error: Failed to fetch afsctool: Git clone failed Error: See /opt/local/var/macports/logs/_opt_local_site-ports_sysutils_afsctool/afsctool/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port afsctool failed Home:~ Henrietta$ sudo port install afsctool Password: ---> Computing dependencies for afsctool ---> Fetching distfiles for afsctool ---> Verifying checksums for afsctool ---> Extracting afsctool ---> Configuring afsctool ---> Building afsctool ---> Staging afsctool into destroot ---> Installing afsctool @1.6.9.8_0 ---> Activating afsctool @1.6.9.8_0 ---> Cleaning afsctool ---> Scanning binaries for linking errors ---> No broken files found. ---> No broken ports found. Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports describe fatal: No tags can describe '448bc8ce88ed453cd6ddd3e1bff610057ad47ab2'. Try --always, or create some tags. Home:~ Henrietta$

RJVB commented 5 years ago

---> Fetching distfiles for afsctool Error: Failed to fetch afsctool: Git clone failed Error: See /opt/local/var/macports/logs/_opt_local_site-ports_sysutils_afsctool/afsctool/main.log for details.

This is strange, but can have been a temporary network glitch.

Home:~ Henrietta$ sudo -u macports git -C /opt/local/site-ports describe fatal: No tags can describe '448bc8ce88ed453cd6ddd3e1bff610057ad47ab2'. Try --always, or create some tags.

Ah, well that's fine too.

So now you should be able to run afsctool :)

Henrietta1989 commented 5 years ago

Yes it works now perfectly!!! Thanks!!!

Did all that install any not needed stuff i could clean out using some CLI magic?

RJVB commented 5 years ago

Great! Thanks for your patience!

You can clean up whatever there's left to clean up with

%> sudo port clean --all installed