Skip to content

Commit

Permalink
Added _upstream_commit variable to set a user defined glibc commit in…
Browse files Browse the repository at this point in the history
… case of regression
  • Loading branch information
Tk-Glitch committed Jun 5, 2024
1 parent e70508e commit 2d3cea1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions glibc_eac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
_reenable_dt_hash="true"
_rogue_company_fix="true"
_disable_tests="true" # They are very playful and seem to fail randomly in different ways depending on the machine, so let's disable them by default - https://github.com/Frogging-Family/glibc-eac/issues/2
_upstream_commit="" # 2.39-4 commit was 31da30f23cddd36db29d5b6a1c7619361b271fb4

rm -rf ./glibc && git clone --depth=1 --single-branch -b main https://gitlab.archlinux.org/archlinux/packaging/packages/glibc.git
cd ./glibc
Expand All @@ -18,6 +19,10 @@
patch -Np1 -i ../disable_tests.patch
fi

if [ -n "$_upstream_commit" ]; then
sed -i "s/_commit=.*/_commit=$_upstream_commit/g" PKGBUILD
fi

if [ "$1" = "build" ]; then
makepkg --noconfirm --skipinteg -sc
else
Expand Down

0 comments on commit 2d3cea1

Please sign in to comment.