Skip to content

Commit

Permalink
[unbugware] ensure_libxmlsec1
Browse files Browse the repository at this point in the history
All I know is that [the upstream issue looks fixed](xmlsec/python-xmlsec#254)
  • Loading branch information
Dominique Quatravaux committed Apr 22, 2024
1 parent 3df3f06 commit 3d12a7f
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions xaasible
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ ansible_suitcase_dir () {

ensure_ansible () {
if ! test -f "$(ansible_suitcase_dir)"/.versions 2>/dev/null; then
ensure_libxmlsec1
curl https://raw.githubusercontent.com/epfl-si/ansible.suitcase/master/install.sh | \
SUITCASE_DIR="$(ansible_suitcase_dir)" \
SUITCASE_PIP_EXTRA="bcrypt passlib kubernetes pyvmomi ldap3 python3-saml lxml" \
Expand All @@ -40,43 +39,6 @@ ensure_ansible () {
ensure_ansible_runtime
}

ensure_libxmlsec1 () {
local xmlsec1_version="$(pkg-config --print-provides xmlsec1)"
local macosx_downgrade_bugware_explainer="
Because of some (temporary?) lack of maintenance in python-xmlsec (see
https://github.com/xmlsec/python-xmlsec/issues/254 ), you have to make
sure to install an older version:
wget -O /tmp/libxmlsec1.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/7f35e6ede954326a10949891af2dba47bbe1fc17/Formula/libxmlsec1.rb
brew install --formula /tmp/libxmlsec1.rb
brew pin libxmlsec1
"
case "$xmlsec1_version" in
"")
cat >&2 <<'PLEASE_INSTALL_XMLSEC1'
Fatal: libxmlsec1 (+ development kit) is required for python3-saml.
PLEASE_INSTALL_XMLSEC1
case "$(uname -s)" in
Linux)
echo >&2; echo >&2 'Bailing out.' ;;
Darwin)
echo >&2 "$macosx_downgrade_bugware_explainer" ;;
esac
exit 1;;

*"= 1.3."*)
case "$(uname -s)" in
Darwin)
cat >&2 <<"PLEASE_DOWNGRADE_XMLSEC1"
Fatal: version 1.3.x of xmlsec1 detected; please downgrade.
$macosx_downgrade_bugware_explainer
PLEASE_DOWNGRADE_XMLSEC1
exit 1 ;;
esac ;;
esac
}

ensure_oc () {
oc --help > /dev/null || fatal <<'PLEASE_INSTALL_OC'
Expand Down

0 comments on commit 3d12a7f

Please sign in to comment.