https://bugs.kde.org/show_bug.cgi?id=429103

--- Comment #97 from caulier.gil...@gmail.com ---
Gilles Caulier <n...@kde.org>

07:05 (il y a 0 minute)

À kde-commits

Traduire le message
Désactiver pour : anglais
Git commit 9068f28fdc4ccfe75b1f74bbbe9de13d86aafa95 by Gilles Caulier.
Committed on 16/12/2020 at 06:05.
Pushed by cgilles into branch 'master'.

Check if Xcode SDK target minimal version is installed and patch Xcode backward
binary compatibility automatically in settings

M  +12   -1    project/bundles/macports/common.sh
M  +1    -1    project/bundles/macports/config.sh

https://invent.kde.org/graphics/digikam/commit/9068f28fdc4ccfe75b1f74bbbe9de13d86aafa95

diff --git a/project/bundles/macports/common.sh
b/project/bundles/macports/common.sh
index 4ed6612ce6..be785e3e66 100755
--- a/project/bundles/macports/common.sh
+++ b/project/bundles/macports/common.sh
@@ -38,6 +38,7 @@ else
 fi

 export MACOSX_DEPLOYMENT_TARGET=$OSX_MIN_TARGET
+echo "Target OSX minimal version: $MACOSX_DEPLOYMENT_TARGET"

 MACOS_MAJOR=`echo $MACOSX_DEPLOYMENT_TARGET | awk -F '.' '{print $1 "." $2}'|
cut -d . -f 1`
 MACOS_MINOR=`echo $MACOSX_DEPLOYMENT_TARGET | awk -F '.' '{print $1 "." $2}'|
cut -d . -f 2`
@@ -46,7 +47,17 @@ if [[ $MACOS_MAJOR -lt 11 && $MACOS_MINOR -lt 9 ]]; then
     export CXXFLAGS=-stdlib=libc++
 fi

-echo "Target OSX minimal version: $MACOSX_DEPLOYMENT_TARGET"
+if [[ ! -f
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$MACOS_MAJOR.$MACOS_MINOR.sdk
]] ; then
+    echo "XCode Target SDK minimal version is not installled in
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs"
+    echo "you can donwload an archive of SDK from
https://github.com/phracker/MacOSX-SDKs/releases";
+    exit 1
+else
+    echo "Check XCode Target SDK minimal version passed..."
+fi
+
+# Adjust the property "MinimumSDKVersion" from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
+/usr/libexec/PlistBuddy -c "Set MinimumSDKVersion $MACOS_MAJOR.$MACOS_MINOR"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
+
 }

 ########################################################################
diff --git a/project/bundles/macports/config.sh
b/project/bundles/macports/config.sh
index 44dc9443b4..b627e626b5 100644
--- a/project/bundles/macports/config.sh
+++ b/project/bundles/macports/config.sh
@@ -62,7 +62,7 @@ DK_URL="http://download.kde.org/stable/digikam";
 DK_BUILDTEMP=~/dktemp

 # digiKam tag version from git. Official tarball do not include extra shared
libraries.
-# The list of tags can be listed with this url:
https://quickgit.kde.org/?p=digikam.git&a=tags
+# The list of tags can be listed with this url:
https://invent.kde.org/graphics/digikam/-/tags
 # If you want to package current implementation from git, use "master" as tag.
 #DK_VERSION=v7.2.0-beta1
 DK_VERSION=master

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to