Closed jojoo- closed 11 years ago
seems like there is a way or that at least enigmail respects the variables of the current set shell http://comments.gmane.org/gmane.comp.mozilla.enigmail.general/12484
it is also possible to patch the hardcoded path to the librarys with install_name_tool:
cp gpg2 patchit
chmod a+x patchit
otool -l patchit
install_name_tool -change /usr/local/MacGPG2/lib/libintl.8.dylib libintl.8.dylib patchit
install_name_tool -change /usr/local/MacGPG2/lib/libiconv.2.dylib libiconv.2.dylib patchit
install_name_tool -change /usr/local/MacGPG2/lib/libgcrypt.11.dylib libgcrypt.11.dylib
install_name_tool -change /usr/local/MacGPG2/lib/libgcrypt.11.dylib libgcrypt.11.dylib patchit
install_name_tool -change /usr/local/MacGPG2/lib/libgpg-error.0.dylib libgpg-error.0.dylib patchit
install_name_tool -change /usr/local/MacGPG2/lib/libassuan.0.dylib libassuan.0.dylib patchit
ls -al libintl.8.dylib
otool -l patchit| grep "name" |grep "MacGPG"
otool -l patchit| grep "name"
find / -name libiconv.2.dylib
otool -l /private/tmp/foobarbaz/libintl.8.dylib
install_name_tool /private/tmp/foobarbaz/libintl.8.dylib -change /usr/local/MacGPG2/lib/libiconv.2.dylib libiconv.2.dylib
otool -l /private/tmp/foobarbaz/libgcrypt.11.dylib
install_name_tool /private/tmp/foobarbaz/libgcrypt.11.dylib -change /usr/local/MacGPG2/lib/libgpg-error.0.dylib libgpg-error.0.dylib
otool /private/tmp/foobarbaz/libassuan.0.dylib
otool -L /private/tmp/foobarbaz/libassuan.0.dylib
install_name_tool /private/tmp/foobarbaz/libassuan.0.dylib -change /usr/local/MacGPG2/lib/libgpg-error.0.dylib libgpg-error.0.dylib
./patchit
for 10.8 its esy to set enviroment variables: http://www.mobileread.com/forums/showthread.php?t=186069
create clickable shell scripts in OS X: http://stackoverflow.com/a/5126257/827941
the way is definetly to export DYLD_LIBRARY_PATH
anything else results in a patching nightmare
i've tried to extract only those parts of the dmg file we need:
7z x GPGTools-20130330.dmg 2.hfs
7z x 2.hfs GPGTools_Installer/GPGTools_Installer.pkg
cd GPGTools_Installer
7z x GPGTools_Installer.pkg MacGPG2_Core.pkg/Payload
cd MacGPG2_Core.pkg
7z x Payload
7z x Payload~
cp -R usr/local/MacGPG2/ mountpoint/apps/mac/gpg/
or schematic:
1st run: hfsfile
2nd run: pkgfile
3rd run: Payloadfiles (davon gibbet noch mehr)
4th run: Payload
5th run: Payload~
this should be fixed afair
i was able to extract the gpg2 binary for osx, it was a bit tricky thou.
we always need to set the path before one can use the binary. so we need to find a way to set this shell variable in enigmal, i really dont know how this is done...