#4906·hashcat

make install with a PREFIX different from the build installs a stale frontend MacOS27

Author: bandrelCreated Sep 22, 2026Updated Sep 22, 2026

The frontend embeds INSTALL_FOLDER/SHARED_FOLDER/DOCUMENT_FOLDER at compile time, and the frontend and plugins embed LIBRARY_FOLDER in their rpath. obj/arrangement tracks non-file build configuration but not these, so make does not rebuild when PREFIX changes between build and install. The installed binary's compiled INSTALL_FOLDER then no longer matches its location, folder_config_init() takes the unpacked-tree branch, and looks for OpenCL/ beside the binary.

Reproduce (macOS 27, v7.1.2-754-g61d346f11):

make clean
make PREFIX=/tmp/hcA
make install PREFIX=/tmp/hcB
cd /tmp && /tmp/hcB/bin/hashcat -m 0 -a 0 /opt/hashcat/example0.hash

/private/tmp/hcB/bin/OpenCL/: No such file or directory   (exit 255)

Expected: the installed binary resolves the shared folder from its install prefix.

Different from #3911: that is a library caller whose folders are ignored; this is the frontend compiled for a prefix other than the one it is installed under. Fix: add the four folder variables to ARRANGEMENT.