mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
MacOSX: remove MacFUSE dependency and link against OSXFuse library. Now, only standard OSXFuse install is needed without MacFUSE compatibility option.
This commit is contained in:
parent
e362d804b0
commit
7d6347f468
@ -119,27 +119,20 @@ namespace VeraCrypt
|
|||||||
int status;
|
int status;
|
||||||
bool bIsOSXFuse = false;
|
bool bIsOSXFuse = false;
|
||||||
|
|
||||||
if ((status = sysctlbyname ("macfuse.version.number", fuseVersionString, &fuseVersionStringLength, NULL, 0)) != 0)
|
if ((status = sysctlbyname ("osxfuse.version.number", fuseVersionString, &fuseVersionStringLength, NULL, 0)) != 0)
|
||||||
{
|
{
|
||||||
fuseVersionStringLength = MAXHOSTNAMELEN;
|
fuseVersionStringLength = MAXHOSTNAMELEN;
|
||||||
if ((status = sysctlbyname ("osxfuse.version.number", fuseVersionString, &fuseVersionStringLength, NULL, 0)) != 0)
|
if ((status = sysctlbyname ("vfs.generic.osxfuse.version.number", fuseVersionString, &fuseVersionStringLength, NULL, 0)) != 0)
|
||||||
{
|
{
|
||||||
fuseVersionStringLength = MAXHOSTNAMELEN;
|
|
||||||
if ((status = sysctlbyname ("vfs.generic.osxfuse.version.number", fuseVersionString, &fuseVersionStringLength, NULL, 0)) != 0)
|
|
||||||
{
|
|
||||||
throw HigherFuseVersionRequired (SRC_POS);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// look for compatibility mode
|
|
||||||
struct stat sb;
|
|
||||||
if ((0 == stat("/usr/local/lib/libfuse.dylib", &sb)) && (0 == stat("/Library/Frameworks/MacFUSE.framework/MacFUSE", &sb)))
|
|
||||||
{
|
|
||||||
bIsOSXFuse = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
throw HigherFuseVersionRequired (SRC_POS);
|
throw HigherFuseVersionRequired (SRC_POS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// look for OSXFuse dynamic library
|
||||||
|
struct stat sb;
|
||||||
|
if (0 != stat("/usr/local/lib/libosxfuse_i64.2.dylib", &sb))
|
||||||
|
{
|
||||||
|
throw HigherFuseVersionRequired (SRC_POS);
|
||||||
}
|
}
|
||||||
|
|
||||||
vector <string> fuseVersion = StringConverter::Split (string (fuseVersionString), ".");
|
vector <string> fuseVersion = StringConverter::Split (string (fuseVersionString), ".");
|
||||||
@ -149,12 +142,7 @@ namespace VeraCrypt
|
|||||||
uint32 fuseVersionMajor = StringConverter::ToUInt32 (fuseVersion[0]);
|
uint32 fuseVersionMajor = StringConverter::ToUInt32 (fuseVersion[0]);
|
||||||
uint32 fuseVersionMinor = StringConverter::ToUInt32 (fuseVersion[1]);
|
uint32 fuseVersionMinor = StringConverter::ToUInt32 (fuseVersion[1]);
|
||||||
|
|
||||||
if (bIsOSXFuse)
|
if (fuseVersionMajor < 2 || (fuseVersionMajor == 2 && fuseVersionMinor < 5))
|
||||||
{
|
|
||||||
if (fuseVersionMajor < 2 || (fuseVersionMajor == 2 && fuseVersionMinor < 5))
|
|
||||||
throw HigherFuseVersionRequired (SRC_POS);
|
|
||||||
}
|
|
||||||
else if (fuseVersionMajor < 1 || (fuseVersionMajor == 1 && fuseVersionMinor < 3))
|
|
||||||
throw HigherFuseVersionRequired (SRC_POS);
|
throw HigherFuseVersionRequired (SRC_POS);
|
||||||
|
|
||||||
// Mount volume image
|
// Mount volume image
|
||||||
|
@ -106,8 +106,11 @@ endif
|
|||||||
|
|
||||||
#------ FUSE configuration ------
|
#------ FUSE configuration ------
|
||||||
|
|
||||||
|
ifeq "$(PLATFORM)" "MacOSX"
|
||||||
|
FUSE_LIBS = $(shell pkg-config osxfuse --libs)
|
||||||
|
else
|
||||||
FUSE_LIBS = $(shell pkg-config fuse --libs)
|
FUSE_LIBS = $(shell pkg-config fuse --libs)
|
||||||
|
+endif
|
||||||
|
|
||||||
#------ Executable ------
|
#------ Executable ------
|
||||||
|
|
||||||
|
@ -493,7 +493,7 @@ namespace VeraCrypt
|
|||||||
EX2MSG (UnsupportedTrueCryptFormat, LangString["UNSUPPORTED_TRUECRYPT_FORMAT"]);
|
EX2MSG (UnsupportedTrueCryptFormat, LangString["UNSUPPORTED_TRUECRYPT_FORMAT"]);
|
||||||
|
|
||||||
#ifdef TC_MACOSX
|
#ifdef TC_MACOSX
|
||||||
EX2MSG (HigherFuseVersionRequired, _("VeraCrypt requires OSXFUSE 2.3 or later with MacFUSE compatibility layer installer.\nPlease ensure that you have selected this compatibility layer during OSXFUSE installation."));
|
EX2MSG (HigherFuseVersionRequired, _("VeraCrypt requires OSXFUSE 2.5 or above."));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef EX2MSG
|
#undef EX2MSG
|
||||||
|
@ -790,7 +790,7 @@
|
|||||||
<key>SECONDARY_VALUE</key>
|
<key>SECONDARY_VALUE</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>VALUE</key>
|
<key>VALUE</key>
|
||||||
<string>OSXFuse seems to be missing on your machine. VeraCrypt requires OSXFuse 2.3 or above.
|
<string>OSXFuse seems to be missing on your machine. VeraCrypt requires OSXFuse 2.5 or above.
|
||||||
Please download the latest OSXFuse version from :
|
Please download the latest OSXFuse version from :
|
||||||
https://osxfuse.github.io/</string>
|
https://osxfuse.github.io/</string>
|
||||||
</dict>
|
</dict>
|
||||||
@ -800,7 +800,7 @@ https://osxfuse.github.io/</string>
|
|||||||
<key>SECONDARY_VALUE</key>
|
<key>SECONDARY_VALUE</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>VALUE</key>
|
<key>VALUE</key>
|
||||||
<string>OSXFuse semble ne pas être installé sur votre machine. VeraCrypt nécessite OSXFuse 2.3 ou supérieur.
|
<string>OSXFuse semble ne pas être installé sur votre machine. VeraCrypt nécessite OSXFuse 2.5 ou supérieur.
|
||||||
Merci de télécharger la dernière version de OSXFuse à partir de :
|
Merci de télécharger la dernière version de OSXFuse à partir de :
|
||||||
https://osxfuse.github.io/
|
https://osxfuse.github.io/
|
||||||
|
|
||||||
@ -812,53 +812,6 @@ https://osxfuse.github.io/
|
|||||||
<key>STATE</key>
|
<key>STATE</key>
|
||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
|
||||||
<key>BEHAVIOR</key>
|
|
||||||
<integer>3</integer>
|
|
||||||
<key>DICTIONARY</key>
|
|
||||||
<dict>
|
|
||||||
<key>IC_REQUIREMENT_FILES_CONDITION</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>IC_REQUIREMENT_FILES_DISK_TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>IC_REQUIREMENT_FILES_LIST</key>
|
|
||||||
<array>
|
|
||||||
<string>/Library/Frameworks/MacFUSE.framework/MacFUSE</string>
|
|
||||||
<string>/usr/local/lib/libfuse.dylib</string>
|
|
||||||
</array>
|
|
||||||
<key>IC_REQUIREMENT_FILES_SELECTOR</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
<key>IC_REQUIREMENT_CHECK_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>IDENTIFIER</key>
|
|
||||||
<string>fr.whitebox.Packages.requirement.files</string>
|
|
||||||
<key>MESSAGE</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>LANGUAGE</key>
|
|
||||||
<string>English</string>
|
|
||||||
<key>SECONDARY_VALUE</key>
|
|
||||||
<string></string>
|
|
||||||
<key>VALUE</key>
|
|
||||||
<string>VeraCrypt needs OSXFUSE to be installed with MacFUSE compatibility layer enabled.
|
|
||||||
Please re-install OSXFUSE and check the MacFUSE compatibility layer in the installer.</string>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>LANGUAGE</key>
|
|
||||||
<string>French</string>
|
|
||||||
<key>SECONDARY_VALUE</key>
|
|
||||||
<string></string>
|
|
||||||
<key>VALUE</key>
|
|
||||||
<string>VeraCrypt nécessite que OSXFUSE soit installé avec l'option "MacFUSE compatibility layer".
|
|
||||||
Merci de ré-installer OSXFUSE et de cocher l'option de compatibilité MacFUSE dans l'installeur.</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>NAME</key>
|
|
||||||
<string>MacFUSE compatibility layer</string>
|
|
||||||
<key>STATE</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</array>
|
</array>
|
||||||
<key>POSTINSTALL_PATH</key>
|
<key>POSTINSTALL_PATH</key>
|
||||||
<dict/>
|
<dict/>
|
||||||
|
Loading…
Reference in New Issue
Block a user