You are not logged in.

#1 2021-01-02 17:23:04

I4MTRUE
Member
Registered: 2018-02-13
Posts: 24

[SOLVED] Can't build wine 3.12 : syntax error

Hello, I am trying to to install wine-osu from the AUR : https://aur.archlinux.org/packages/wine-osu/
It is using wine 3.12, but when it tries to build it it gives me the error : " syntax error near unexpected token `newline'"

==> Starting build()...
  -> Building Wine-64...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for cpp... cpp
checking for ld... ld
checking whether gcc supports __builtin_ms_va_list... yes
checking for the directory containing the Wine tools... $(top_builddir)
checking for flex... flex
checking whether flex is recent enough... yes
checking for bison... bison
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ldconfig... /sbin/ldconfig
checking for msgfmt... msgfmt
../wine-osu/configure: line 7286: syntax error near unexpected token `newline'
../wine-osu/configure: line 7286: `      '''
==> ERROR: A failure occurred in build().
    Aborting...

I have searched on internet and couldn't find a solution to this problem
This is the part of the file configure where the problem originates :

....
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
      ''           (<-- this is the line 7286)
fi as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
...

I hope someone as a fix for this !
Thank you for your help ! (sorry for my english)

Last edited by I4MTRUE (2021-01-03 00:44:19)

Offline

#2 2021-01-02 18:31:37

loqs
Member
Registered: 2014-03-06
Posts: 19,027

Re: [SOLVED] Can't build wine 3.12 : syntax error

The src/wine-osu/configure I am looking at does not seem to align with the except you posted.
Mine from wine-osu 3.12-2 has sha256sum 131c0a591175ae1403689730f03a3a41976069443627daba84adaa5599bdaa19

Online

#3 2021-01-02 18:35:45

I4MTRUE
Member
Registered: 2018-02-13
Posts: 24

Re: [SOLVED] Can't build wine 3.12 : syntax error

So do you think theres a problem with the files ? I have gitcloned and makepkg -si multiple times so I don't know why the files are different sad .
Do you have any clue to what could have happened and how to fix it ? Thanks for the reply !

Offline

#4 2021-01-02 18:42:56

loqs
Member
Registered: 2014-03-06
Posts: 19,027

Re: [SOLVED] Can't build wine 3.12 : syntax error

What is the sha256sum of the configure you are using?  To confirm it is different.

Online

#5 2021-01-02 19:14:29

I4MTRUE
Member
Registered: 2018-02-13
Posts: 24

Re: [SOLVED] Can't build wine 3.12 : syntax error

as soon as i'm back at home i'll tell you that thank you very much !!

Offline

#6 2021-01-02 20:05:28

I4MTRUE
Member
Registered: 2018-02-13
Posts: 24

Re: [SOLVED] Can't build wine 3.12 : syntax error

You're right the checksum isn't the same, I have 16383594a40c4fd1190d91eaee03fda617d1acfd19f3d37b8db72f775be85ca7 for the sha256sum of src/wine-osu/configure.
That's weird hmm I cloned the repo directly from the aur and makepkg -si, I have to look into it, thank you for your help !

Offline

#7 2021-01-02 20:47:34

loqs
Member
Registered: 2014-03-06
Posts: 19,027

Re: [SOLVED] Can't build wine 3.12 : syntax error

If the version is 3.12-2,  makepkg -Co will clean the src directory and extract the source into it again then check the sha256sum of src/wine-osu/configure

Online

#8 2021-01-02 21:24:11

I4MTRUE
Member
Registered: 2018-02-13
Posts: 24

Re: [SOLVED] Can't build wine 3.12 : syntax error

ok so i did

$ makepkg -Co                     
==> Making package: wine-osu 3.12-2 (Sat Jan  2 23:22:34 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
[....]
==> Sources are ready.

and then

$ sha256sum src/wine-osu/configure
16383594a40c4fd1190d91eaee03fda617d1acfd19f3d37b8db72f775be85ca7  src/wine-osu/configure

Offline

#9 2021-01-02 22:41:00

loqs
Member
Registered: 2014-03-06
Posts: 19,027

Re: [SOLVED] Can't build wine 3.12 : syntax error

I am guessing something called by

  ./patchinstall.sh DESTDIR="$srcdir/$pkgname" --all

changes src/wine-osu/configure.

Building locally in a clean chroot the sha256sum changes to 768ca68b54a2708fd180bc118abaef473f90f4c611f448877db18e26d30220f3

Good news is it produced:

checking for msgfmt... msgfmt
../wine-osu/configure: line 7286: syntax error near unexpected token `newline'
../wine-osu/configure: line 7286: `    '''
==> ERROR: A failure occurred in build().
    Aborting...

Edit:
https://www.winehq.org/pipermail/wine-d … 76324.html

Try the following changes:

git diff
diff --git a/PKGBUILD b/PKGBUILD
index 339607d..51b1ced 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,13 +15,15 @@ source=(https://dl.winehq.org/wine/source/3.x/wine-$_pkgbasever.tar.xz{,.sign}
         "wine-staging-v$_pkgbasever.tar.gz::https://github.com/wine-staging/wine-staging/archive/v$_pkgbasever.tar.gz"
         harmony-fix.diff
         winealsa_latency.patch
-        winepulse_latency.patch)
+        winepulse_latency.patch
+        https://github.com/wine-mirror/wine/commit/d7645b67c350f7179a1eba749ec4524c74948d86.patch)
 sha512sums=('afc76e8975ea780f664de27a17128f730bcbe72a9fad0c01bfe6dcc98c2f98729ccde32e97fe4df2cf98f5d1b254b28f0e7cd380855148c5cfb41dd88f3012a1'
             'SKIP'
             '166f991f7c8f59df656f3fb28150a8e26e48d1ff6906b3eccd31cb84524e28efe7e7df00eadc21881940308ccc4b4edebcb2a71bdd03ba3de5beb1cf42e2f058'
             'b86edf07bfc560f403fdfd5a71f97930ee2a4c3f76c92cc1a0dbb2e107be9db3bed3a727a0430d8a049583c63dd11f5d4567fb7aa69b193997c6da241acc4f2e'
             '8212f4ec07045faa28704035ea6c8173ade503afe3bf94c4ec19e9edb788004579bb37e16c58d92ddc23e9a4de52480437f8486a32d794c5edc59d448db46874'
-            '3c5eda2d24892ca6428138bd9f07d5c598b606f9e181533d73556b25aabe41935efb44748cdb65524d7598ceac1bc81d9c9d507b76a15c51f32e34b3cdc3969a')
+            '3c5eda2d24892ca6428138bd9f07d5c598b606f9e181533d73556b25aabe41935efb44748cdb65524d7598ceac1bc81d9c9d507b76a15c51f32e34b3cdc3969a'
+            '5ac8e930ca7b15fc7c8945d49885bf06d4608e69c81c3a429020c75e23d641145b9fc346a327d56c3c0d053a4f4f3582e4ef72d59b70460177ec86a018f33195')
 validpgpkeys=(5AC1A08B03BD7A313E0A955AF5E6E9EEB9461DD7
               DA23579A74D4AD9AF9D3F945CEFAC8EAAF17519D)
 
@@ -121,11 +123,16 @@ prepare() {
   patch -d $pkgname -Np1 < winealsa_latency.patch
   patch -d $pkgname -Np1 < winepulse_latency.patch
 
+  patch -d $pkgname -Np1 < d7645b67c350f7179a1eba749ec4524c74948d86.patch
+
   sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i $pkgname/configure*
 
   # Get rid of old build dirs
   rm -rf $pkgname-{32,64}-build
   mkdir $pkgname-{32,64}-build
+
+  cd $pkgname
+  autoreconf -fi
 }
 
 build() {

Last edited by loqs (2021-01-02 22:56:12)

Online

#10 2021-01-03 00:43:56

I4MTRUE
Member
Registered: 2018-02-13
Posts: 24

Re: [SOLVED] Can't build wine 3.12 : syntax error

All right !!! I applied the patch and the problem went away (i did have to tweak PKGBUILD i don't know why but it created wine-osu-32-build4 instead of wine-osu-32-build) . Thank you so much for your help !! Have a nice day !!

Offline

Board footer

Powered by FluxBB