-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/qgis/QGIS/issues/35026
- Loading branch information
1 parent
bfc4ca0
commit fecef24
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
function check_freetds() { | ||
env_var_exists VERSION_freetds | ||
env_var_exists LINK_ct | ||
env_var_exists LINK_sybdb | ||
env_var_exists LINK_tdsodbc | ||
} | ||
|
||
function bundle_freetds() { | ||
try cp -av $DEPS_LIB_DIR/libct.*dylib $BUNDLE_LIB_DIR | ||
try cp -av $DEPS_LIB_DIR/libsybdb.*dylib $BUNDLE_LIB_DIR | ||
try cp -av $DEPS_LIB_DIR/libtdsodbc.*so $BUNDLE_LIB_DIR | ||
} | ||
|
||
function fix_binaries_freetds() { | ||
for i in \ | ||
$LINK_ct \ | ||
$LINK_sybdb \ | ||
$LINK_tdsodbc | ||
do | ||
install_name_id @rpath/$i $BUNDLE_LIB_DIR/$i | ||
|
||
for j in \ | ||
$LINK_libssl \ | ||
$LINK_libcrypto \ | ||
$LINK_libltdl | ||
do | ||
install_name_change $DEPS_LIB_DIR/$j @rpath/$j $BUNDLE_LIB_DIR/$i | ||
done | ||
|
||
install_name_change $QGIS_DEPS_STAGE_PATH/unixodbc/lib/$LINK_unixodbc @rpath/$LINK_unixodbc $BUNDLE_LIB_DIR/$i | ||
install_name_change $QGIS_DEPS_STAGE_PATH/unixodbc/lib/$LINK_unixodbcinst @rpath/$LINK_unixodbcinst $BUNDLE_LIB_DIR/$i | ||
|
||
done | ||
} | ||
|
||
function fix_binaries_freetds_check() { | ||
verify_binary $BUNDLE_LIB_DIR/$LINK_ct | ||
verify_binary $BUNDLE_LIB_DIR/$LINK_sybdb | ||
verify_binary $BUNDLE_LIB_DIR/$LINK_tdsodbc | ||
} | ||
|
||
function fix_paths_freetds() { | ||
: | ||
} | ||
|
||
function fix_paths_freetds_check() { | ||
: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
function check_python_pymssql() { | ||
env_var_exists VERSION_python_pymssql | ||
} | ||
|
||
function bundle_python_pymssql() { | ||
: | ||
} | ||
|
||
function fix_binaries_python_pymssql() { | ||
install_name_change $DEPS_LIB_DIR/$LINK_sybdb @rpath/$LINK_sybdb $BUNDLE_PYTHON_SITE_PACKAGES_DIR/_mssql.cpython-${VERSION_major_python//./}m-darwin.so | ||
install_name_change $DEPS_LIB_DIR/$LINK_sybdb @rpath/$LINK_sybdb $BUNDLE_PYTHON_SITE_PACKAGES_DIR/pymssql.cpython-${VERSION_major_python//./}m-darwin.so | ||
} | ||
|
||
function fix_binaries_python_pymssql_check() { | ||
verify_binary $BUNDLE_PYTHON_SITE_PACKAGES_DIR/_mssql.cpython-${VERSION_major_python//./}m-darwin.so | ||
verify_binary $BUNDLE_PYTHON_SITE_PACKAGES_DIR/pymssql.cpython-${VERSION_major_python//./}m-darwin.so | ||
} | ||
|
||
function fix_paths_python_pymssql() { | ||
: | ||
} | ||
|
||
function fix_paths_python_pymssql_check() { | ||
: | ||
} |