add swig to fedora dependencies

needed when compiling u-boot

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2024-09-30 09:35:46 +01:00
parent a42fe72c93
commit 02e76d09c1
3 changed files with 10 additions and 7 deletions

View File

@ -8,5 +8,5 @@ innoextract intltool libftdi-devel libselinux-devel libusb1 libusb1-devel \
nasm ncurses-devel openssl-devel p7zip p7zip-plugins pandoc parted \ nasm ncurses-devel openssl-devel p7zip p7zip-plugins pandoc parted \
pciutils-devel perl perl-libwww-perl python-unversioned-command python3 \ pciutils-devel perl perl-libwww-perl python-unversioned-command python3 \
python3-setuptools rsync sharutils subversion texinfo unar unifont \ python3-setuptools rsync sharutils subversion texinfo unar unifont \
unifont-fonts unifont-ttf-fonts unzip wget xz zlib-devel ccache \ unifont-fonts unifont-ttf-fonts unzip wget xz zlib-devel ccache swig \
" "

View File

@ -9,5 +9,5 @@ libselinux-devel libusb1 libusb1-devel nasm ncurses-devel openssl-devel \
p7zip p7zip-plugins pandoc parted pciutils-devel perl perl-libwww-perl \ p7zip p7zip-plugins pandoc parted pciutils-devel perl perl-libwww-perl \
python-unversioned-command python3 python3-setuptools rsync sharutils \ python-unversioned-command python3 python3-setuptools rsync sharutils \
subversion systemd-devel texinfo unar unifont unifont-fonts \ subversion systemd-devel texinfo unar unifont unifont-fonts \
unifont-ttf-fonts unzip wget xz zlib-devel ccache unifont-ttf-fonts unzip wget xz zlib-devel ccache swig \
" "

View File

@ -91,21 +91,24 @@ fetch_submodule()
"$mdir/${1##*/}/patches" "$mdir/${1##*/}/patches"
} }
livepull="n"
tmpclone() tmpclone()
{ {
[ "$repofail" = "y" ] && \ [ "$repofail" = "y" ] && \
printf "Cached clone failed; trying online.\n" 1>&2; repofail="n" printf "Cached clone failed; trying online.\n" 1>&2 && livepull="y"
repofail="n"
[ $# -lt 6 ] || rm -Rf "$3" || $err "git retry: !rm $3 ($1)" [ $# -lt 6 ] || rm -Rf "$3" || $err "git retry: !rm $3 ($1)"
repodir="$XBMK_CACHE/repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3" repodir="$XBMK_CACHE/repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3"
mkdir -p "$XBMK_CACHE/repo" || $err "!rmdir $XBMK_CACHE/repo" mkdir -p "$XBMK_CACHE/repo" || $err "!rmdir $XBMK_CACHE/repo"
if [ -d "$repodir" ] && [ $# -lt 6 ]; then if [ "$livepull" = "y" ]; then
git -C "$repodir" pull || sleep 3 || git -C "$repodir" pull \
|| sleep 3 || git -C "$repodir" pull || :
else
git clone $1 "$repodir" || git clone $2 "$repodir" || \ git clone $1 "$repodir" || git clone $2 "$repodir" || \
$err "!clone $1 $2 $repodir $4 $5" $err "!clone $1 $2 $repodir $4 $5"
elif [ -d "$repodir" ] && [ $# -lt 6 ]; then
git -C "$repodir" pull || sleep 3 || git -C "$repodir" pull \
|| sleep 3 || git -C "$repodir" pull || :
fi fi
( (
[ $# -gt 5 ] || git clone "$repodir" "$3" || $err "!clone $repodir $3" [ $# -gt 5 ] || git clone "$repodir" "$3" || $err "!clone $repodir $3"