#!/usr/bin/bash

set -ex
# Fixed upstream by https://github.com/389ds/389-ds-base/commit/4b82bf6d391ef12069e101ba2161ed0a25bbaba5
if [ "$RPM_PACKAGE_VERSION" = "2.2.3" ]; then
  /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang --fuzz=0 < /usr/lib/rpm/clang/389-ds-base-0001-Workaround-for-https-github.com-llvm-llvm-project-is.patch
fi
