tzvetkoff / adobe_case_sensitive_volumes

Adobe CS6 on a case-sensitive drive
51 stars 20 forks source link

Not working on Mojave & Xcode beta #3

Open ahushh opened 6 years ago

ahushh commented 6 years ago

Got the following make output:

gcc -DDEBUG -ggdb -arch i386 -arch x86_64 -Wall -framework CoreServices -o lib_override_volume_sensitivity_check.dylib -dynamiclib src/override_volume_sensitivity_check.c
src/override_volume_sensitivity_check.c:8:20: warning: 'FSGetVolumeParms' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
        OSStatus status = FSGetVolumeParms(volume,buffer,bufferSize);
                          ^
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:7247:18: note:
      'FSGetVolumeParms' has been explicitly marked deprecated here
extern OSStatus  FSGetVolumeParms(FSVolumeRefNum volume, GetVolParmsInfoBuffer *buffer, ByteCount bufferSize) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_...
                 ^
src/override_volume_sensitivity_check.c:19:35: warning: 'FSGetVolumeParms' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
DYLD_INTERPOSE(_FSGetVolumeParms, FSGetVolumeParms);
                                  ^
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:7247:18: note:
      'FSGetVolumeParms' has been explicitly marked deprecated here
extern OSStatus  FSGetVolumeParms(FSVolumeRefNum volume, GetVolParmsInfoBuffer *buffer, ByteCount bufferSize) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_...
                 ^
2 warnings generated.
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks//CoreServices.framework/CoreServices.tbd, missing required architecture i386 in file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks//CoreServices.framework/CoreServices.tbd
ld: warning: ignoring file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture i386:
  "_FSGetVolumeParms", referenced from:
      __FSGetVolumeParms in override_volume_sensitivity_check-ea2e94.o
      __interpose_FSGetVolumeParms in override_volume_sensitivity_check-ea2e94.o
  "_printf", referenced from:
      __FSGetVolumeParms in override_volume_sensitivity_check-ea2e94.o
ld: symbol(s) not found for architecture i386
src/override_volume_sensitivity_check.c:8:20: warning: 'FSGetVolumeParms' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
        OSStatus status = FSGetVolumeParms(volume,buffer,bufferSize);
                          ^
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:7247:18: note:
      'FSGetVolumeParms' has been explicitly marked deprecated here
extern OSStatus  FSGetVolumeParms(FSVolumeRefNum volume, GetVolParmsInfoBuffer *buffer, ByteCount bufferSize) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_...
                 ^
src/override_volume_sensitivity_check.c:19:35: warning: 'FSGetVolumeParms' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
DYLD_INTERPOSE(_FSGetVolumeParms, FSGetVolumeParms);
                                  ^
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:7247:18: note:
      'FSGetVolumeParms' has been explicitly marked deprecated here
extern OSStatus  FSGetVolumeParms(FSVolumeRefNum volume, GetVolParmsInfoBuffer *buffer, ByteCount bufferSize) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_...
                 ^
2 warnings generated.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib_override_volume_sensitivity_check.dylib] Error 1

OK, seems that i386 not supported anymore. Remove it from make file:

-       gcc -DDEBUG -ggdb -arch i386 -arch x86_64 -Wall -framework CoreServices -o lib_override_volume_sensitivity_check.dylib -dynamiclib src/override_volume_sensitivity_check.c
+       gcc -DDEBUG -ggdb -arch x86_64 -Wall -framework CoreServices -o lib_override_volume_sensitivity_check.dylib -dynamiclib src/override_volume_sensitivity_check.c

Build again and run:

~ sudo make run
DYLD_INSERT_LIBRARIES=/Users/ahushh/Stuff/Adobe/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib /Volumes/AdobePhotoshop19.1.6-mul/Install.app/Contents/MacOS/Install
== FSGetVolumeParms - lying and saying the volume is case insensitive, though it is case sensitive. ==
== FSGetVolumeParms - lying and saying the volume is case insensitive, though it is case sensitive. ==
make: *** [run] Error 1

macOS v.10.14.1 Beta (18B67a) Xcode v10.0 beta 6 (10L232m)

FrankFan commented 6 years ago

yes, the same problem

RubensRainelli commented 5 years ago

Hey @ahushh @FrankFan

I'm making a fork to fix this issue, also this old one doesn't support Creative Cloud, so after I've ended my working one I'll update you. Maybe less than 24 hours

If you like you could reach me on telegram for faster updates: https://t.me/RubensRainelli

momomo commented 5 years ago

@RubensRainelli Not working here either. I didn't create a sparsebundle, but move the install to a usb with a non case sensitive partition and getting:

image

RubensRainelli commented 5 years ago

Please write me on Telegram

https://t.me/RubensRainelli

Il sab 9 mar 2019, 20:55 momomo notifications@github.com ha scritto:

@RubensRainelli https://github.com/RubensRainelli Not working here either. I didn't create a sparsebundle, but move the install to a usb with a non case sensitive partition and getting:

[image: image] https://user-images.githubusercontent.com/9274346/54076583-a1a17800-42ad-11e9-8f3b-07d7c92d5ec6.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tzvetkoff/adobe_case_sensitive_volumes/issues/3#issuecomment-471216406, or mute the thread https://github.com/notifications/unsubscribe-auth/AJgGruLQ0CkVITgq0FHRcsPRLF4FW1sLks5vVBGjgaJpZM4X-6lt .

ghost commented 5 years ago

Also not working for me. I can't get the command line installer to pick up the new libraries; I don't see any messages in stdout like momomo shows. MacOS High Sierra 10.8. Possibly a change in Adobe Installer though.

othyn commented 5 years ago

Using the fork by @RubensRainelli, I've got a successful build on 10.14.5 (18F132), but errors on run:

$ sudo make run
> DYLD_INSERT_LIBRARIES=/Users/ben/Adobe/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib "/Volumes/CS6 MstrColl/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install"
> dyld: could not load inserted library '/Users/ben/Adobe/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib' because no suitable image found.  Did find:
        /Users/ben/Adobe/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib: mach-o, but wrong architecture
        /Users/ben/Adobe/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib: stat() failed with errno=1

> make: *** [run] Abort trap: 6

No idea really how to debug really!

System arch:

$ uname -a
> Darwin OXIMACWORK.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

Compiled lib arch:

$ lipo -info lib_override_volume_sensitivity_check.dylib
> Non-fat file: lib_override_volume_sensitivity_check.dylib is architecture: x86_64
foreverflying commented 5 years ago

Hi dude, Great job! However, on catalina, this might not work anymore, I got error:

sudo make run
DYLD_INSERT_LIBRARIES=/Users/Shared/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib /Users/Shared/adobe_case_sensitive_volumes/Installer.app/Contents/MacOS/Install
2019-10-28 02:04:44.007 Install[3851:125012] The application with bundle ID com.adobe.Install is running setugid(), which is not allowed. Exiting.
make: *** [run] Error 1
ciriousjoker commented 4 years ago

@Foreverflying Can you share your compiled file please? I can't get it to work...

carlinix commented 4 years ago

Hi dude, Great job! However, on catalina, this might not work anymore, I got error:

sudo make run
DYLD_INSERT_LIBRARIES=/Users/Shared/adobe_case_sensitive_volumes/lib_override_volume_sensitivity_check.dylib /Users/Shared/adobe_case_sensitive_volumes/Installer.app/Contents/MacOS/Install
2019-10-28 02:04:44.007 Install[3851:125012] The application with bundle ID com.adobe.Install is running setugid(), which is not allowed. Exiting.
make: *** [run] Error 1

Your problem is due to sudo, remove the sudo. However, the point is that Adobe isn't using anymore the FSGetVolumeParms system call.