Bug 435903

Summary: Build kdeconnect-kde DMG package with Craft failed on Mac
Product: [Applications] kdeconnect Reporter: edwining0011
Component: macos-applicationAssignee: Ruixuan Tu <turx2003>
Status: REPORTED ---    
Severity: normal CC: cwo.kde, nicolas.fella, veyx.shaw, vonreth
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description edwining0011 2021-04-19 05:54:52 UTC
SUMMARY

https://github.com/KDE/kdeconnect-kde

STEPS TO REPRODUCE

Follow instructions of https://community.kde.org/KDEConnect/Build_MacOS
...
1. source /Users/<username>/CraftRoot/craft/craftenv.sh
2. craft --package extragear/kdeconnect-kde

OBSERVED RESULT

Error message from Craft:

/Users/goodseller/CraftRoot/build/extragear/kdeconnect-kde/archive/Applications/KDE/kdeconnect-indicator.app/Contents/PlugIns/crypto/libqca-gcrypt.dylib: don't know how to handle otool -L output: '/usr/local/opt/libgcrypt/lib/libgcrypt.20.dylib'
Action: package for extragear/kdeconnect-kde:1.4 FAILED
*** Craft package failed: extragear/kdeconnect-kde after 4 minutes 1 second ***

EXPECTED RESULT
Build a .dmg package for kdeconnect-kde

SOFTWARE/OS VERSIONS
macOS:
	ProductName:	Mac OS X
	ProductVersion:	10.15.7
	BuildVersion:	19H524

ADDITIONAL INFORMATION
Comment 1 Weixuan XIAO 2021-04-24 10:02:09 UTC
It is likely to be an environment issue on your Mac: Craft uses your package-manager-installed libgcrypt to build QCA-Qt5, rather than the one under CraftRoot.

Please check your PKG_CONFIG_PATH after entering the Craft env, to make sure that libs are all under CraftRoot; then rebuild QCA-Qt5 with "craft -i qca-qt5"; and finally rebuild KDE Connect.