Skip to content

Commit

Permalink
Revert "ntsync5: Implement ntsync7 support and revert ntsync5 to v6 v…
Browse files Browse the repository at this point in the history
…ersion (#1345)" (#1346)

Now ntsync5 v7 avalable in ntsync-dkms from AUR

This reverts commit 41f7e24.
  • Loading branch information
Artewar67 authored Dec 23, 2024
1 parent 41f7e24 commit 975bc35
Show file tree
Hide file tree
Showing 11 changed files with 3,789 additions and 29,489 deletions.
1 change: 0 additions & 1 deletion wine-tkg-git/customization.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ _use_fastsync="false"
# !! (Arch: see the three packages https://aur.archlinux.org/pkgbase/ntsync for both module and header) !!
# !! Not compatible with _use_esync, _use_fsync or _use_fastsync options !!
# !! Not compatible with Valve trees !!
# Set to ntsync7 when using ntsync5 v7 kernel driver (Available in linux-cachyos 6.12.6)
_use_ntsync="false"

# esync - Enable with WINEESYNC=1 envvar - Set to true to enable esync support on plain wine or wine-staging <4.6 (it got merged in wine-staging 4.6). The option is ignored on wine-staging 4.6+
Expand Down
18 changes: 5 additions & 13 deletions wine-tkg-git/wine-tkg-patches/misc/fastsync/fastsync
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
_patchname='fastsync-clock_monotonic-fixup.patch' && _patchmsg="Applied fastsync fix due clock_monotonic" && nonuser_patcher
fi

elif [ "$_use_ntsync" = "true" ] || [ "$_use_ntsync" = "ntsync7" ]; then
elif [ "$_use_ntsync" = "true" ]; then

# check Linux headers
ntsync_header_check=$(echo '#include <linux/ntsync.h>' | gcc -H -E -fsyntax-only - 2>&1 | head -n1 | cut -d' ' -f2-)
Expand Down Expand Up @@ -101,9 +101,7 @@
_patchname='ntsync-config.h.in-alt.patch' && _patchmsg="Using alternative config.h.in patchset for ntsync5" && nonuser_patcher
fi
if [ "$_protonify" = "true" ]; then
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ) && [ "$_use_ntsync" = "ntsync7" ]; then
_patchname='ntsync7-staging-protonify.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
_patchname='ntsync5-staging-protonify.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor ac1ff67cfda77618ac05c2c8c38dedc991809316 HEAD ); then
_patchname='ntsync5-staging-protonify-e24ba584.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
Expand All @@ -127,9 +125,7 @@
_patchname='ntsync5-staging-protonify-7eb72b7b.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
fi
else
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ) && [ "$_use_ntsync" = "ntsync7" ]; then
_patchname='ntsync7-staging.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
_patchname='ntsync5-staging.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor ac1ff67cfda77618ac05c2c8c38dedc991809316 HEAD ); then
_patchname='ntsync5-staging-e24ba584.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
Expand All @@ -155,9 +151,7 @@
fi
else
if [ "$_protonify" = "true" ]; then
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ) && [ "$_use_ntsync" = "ntsync7" ]; then
_patchname='ntsync7-protonify.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
_patchname='ntsync5-protonify.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor ac1ff67cfda77618ac05c2c8c38dedc991809316 HEAD ); then
_patchname='ntsync5-protonify-e24ba584.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
Expand All @@ -177,9 +171,7 @@
_patchname='ntsync5-protonify-7eb72b7b.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
fi
else
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ) && [ "$_use_ntsync" = "ntsync7" ]; then
_patchname='ntsync7-mainline.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
if ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor e24ba5849843bbef2ca038c12b5bb1b5ff0af8be HEAD ); then
_patchname='ntsync5-mainline.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
elif ( cd "${srcdir}"/"${_winesrcdir}" && git merge-base --is-ancestor ac1ff67cfda77618ac05c2c8c38dedc991809316 HEAD ); then
_patchname='ntsync5-mainline-e24ba584.patch' && _patchmsg="Using ntsync patchset" && nonuser_patcher
Expand Down
Loading

0 comments on commit 975bc35

Please sign in to comment.