Gcenx / macports-wine

Updated wine Portfiles for macports
88 stars 11 forks source link

Error: Unable to execute port wine-stable: upgrade gstreamer1-gst-plugins-good failed #127

Closed ehrmann closed 1 month ago

ehrmann commented 1 month ago

I'm trying to install wine-stable on an M1 Macbook. I followed the instructions, checking out macports-wine. I added it to /opt/local/etc/macports/sources.conf:

file:///opt/macports-wine
rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]

When I tried to install wine-stable, I got

# /opt/local/bin/port install wine-stable
--->  Computing dependencies for gstreamer1
--->  Fetching archive for gstreamer1
--->  Attempting to fetch gstreamer1-1.24.1_0+universal.darwin_23.arm64-x86_64.tbz2 from http://mirror.fcix.net/macports/packages/gstreamer1
--->  Attempting to fetch gstreamer1-1.24.1_0+universal.darwin_23.arm64-x86_64.tbz2 from https://packages.macports.org/gstreamer1
--->  Attempting to fetch gstreamer1-1.24.1_0+universal.darwin_23.arm64-x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/gstreamer1
--->  Building gstreamer1
Error: Failed to build gstreamer1: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gstreamer1/gstreamer1/main.log for details.
Error: Unable to execute port wine-stable: upgrade gstreamer1-gst-plugins-good failed

Rereading the instructions, I realized I hadn't run portindex. Running it in the git checkout, I got

# /opt/local/bin/portindex 
Creating port index in /opt/macports-wine
Failed to parse file multimedia/gstreamer1/Portfile: can't read "py_ver_nodot": no such variable

Total number of ports parsed:   1 
Ports successfully parsed:  0 
Ports failed:           1 
Up-to-date ports skipped:   31

Interestingly, it's gstreamer1, again. When I run it with -d, I get

# /opt/local/bin/portindex -d
Creating port index in /opt/macports-wine
Reusing existing entry for cross/mingw-w64-pkgconfig
Reusing existing entry for devel/MacOSX.sdk
Reusing existing entry for devel/MacOSX10.14u.sdk
Reusing existing entry for devel/libinotify
Reusing existing entry for emulators/crossovertricks
Reusing existing entry for emulators/wine-crossover
Reusing existing entry for emulators/wine
Reusing existing entry for emulators/crossover
Reusing existing entry for emulators/wine-devel
Reusing existing entry for emulators/wine-stable
Reusing existing entry for emulators/wineskin
Reusing existing entry for emulators/winetricks
Reusing existing entry for multimedia/gstreamer-development
Reusing existing entry for multimedia/gstreamer-runtime
Reusing existing entry for multimedia/gstreamer.framework
Reusing existing entry for multimedia/libmpeg2
DEBUG: Opening port in directory: /opt/macports-wine/multimedia/gstreamer1
DEBUG: OS darwin/23.5.0 (macOS 14.5) arch arm
DEBUG: Sourcing PortGroup gitlab 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/gitlab-1.0.tcl
DEBUG: Re-registering default for configure.cmd
DEBUG: Re-registering default for configure.pre_args
DEBUG: Re-registering default for build.dir
DEBUG: Re-registering default for build.cmd
DEBUG: Re-registering default for build.target
DEBUG: Re-registering default for destroot.cmd
DEBUG: Re-registering default for destroot.post_args
DEBUG: Sourcing PortGroup meson 1.0 from /opt/macports-wine/_resources/port1.0/group/meson-1.0.tcl
DEBUG: Re-registering default for configure.cc_archflags
DEBUG: Re-registering default for configure.objc_archflags
DEBUG: Re-registering default for configure.cxx_archflags
DEBUG: Re-registering default for configure.objcxx_archflags
DEBUG: Re-registering default for configure.fc_archflags
DEBUG: Re-registering default for configure.f90_archflags
DEBUG: Re-registering default for configure.f77_archflags
DEBUG: Re-registering default for configure.ld_archflags
DEBUG: Re-registering default for configure.universal_cflags
DEBUG: Re-registering default for configure.universal_objcflags
DEBUG: Re-registering default for configure.universal_cxxflags
DEBUG: Re-registering default for configure.universal_objcxxflags
DEBUG: Re-registering default for configure.universal_cppflags
DEBUG: Re-registering default for configure.universal_ldflags
DEBUG: Sourcing PortGroup muniversal 1.1 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/muniversal-1.1.tcl
DEBUG: Re-registering default for extract.rename
DEBUG: Re-registering default for livecheck.regex
DEBUG: muniversal: adding universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Running callback meson::add_depends
Failed to parse file multimedia/gstreamer1/Portfile: can't read "py_ver_nodot": no such variable

Total number of ports parsed:   1 
Ports successfully parsed:  0 
Ports failed:           1 
Up-to-date ports skipped:   31

This looked like the important line:

Failed to parse file multimedia/gstreamer1/Portfile: can't read "py_ver_nodot": no such variable

I tried looking for py_ver_nodot in that file, but didn't have any luck.

Gcenx commented 1 month ago

If the overlay was installed correctly there'd be no reason to run portindex manually, it'll selfupdate and generate by running sudo port selfupdate

The error py_ver_nodot is resolved with https://github.com/Gcenx/macports-wine/commit/1b210678ec290afb45034067b2544102c352f900