[Bug 280085] emulators/wine: Fix /usr/local/share/wine/pkg32.sh Script

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Jul 2024 12:55:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280085

            Bug ID: 280085
           Summary: emulators/wine: Fix /usr/local/share/wine/pkg32.sh
                    Script
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald@FreeBSD.org
          Reporter: vermaden@interia.pl
          Assignee: gerald@FreeBSD.org
             Flags: maintainer-feedback?(gerald@FreeBSD.org)

Hi,

I just upgraded to 14.1 and the helper *pkg32.sh* script  does not work now:

% /usr/local/share/wine/pkg32.sh install wine mesa-dri            
pkg -o ABI=FreeBSD:14:i386 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false
--rootdir /home/vermaden/.i386-wine-pkg install wine mesa-dri
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01    
Fetching data.pkg: 100%    7 MiB   2.3MB/s    00:03    
Processing entries:   0%
pkg: Newer FreeBSD version for package zziplib:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1400097
- running kernel: 0

pkg: repository FreeBSD contains packages for wrong OS version: FreeBSD:14:i386
Processing entries:   0%
Unable to update repository FreeBSD
Error updating repositories!



It was simple fix with additional '-o IGNORE_OSVERSION=yes' to pkg(8) command.

% pkg which -o /usr/local/share/wine/pkg32.sh
/usr/local/share/wine/pkg32.sh was installed by package emulators/wine

% diff -u /usr/local/share/wine/pkg32.sh /usr/local/share/wine/pkg32.sh.FIX
--- /usr/local/share/wine/pkg32.sh      2024-07-02 14:52:58.254271000 +0200
+++ /usr/local/share/wine/pkg32.sh.FIX  2024-07-02 14:53:10.611435000 +0200
@@ -16,5 +16,5 @@

 ABI=$(pkg config ABI | sed s/amd64/i386/)
 # Show what we're going to do, then do it.
-echo pkg -o ABI="$ABI" -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir
"$I386_ROOT" "$@"
-exec pkg -o ABI="$ABI" -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir
"$I386_ROOT" "$@"
+echo pkg -o IGNORE_OSVERSION=yes -o ABI="$ABI" -o INSTALL_AS_USER=true -o
RUN_SCRIPTS=false --rootdir "$I386_ROOT" "$@"
+exec pkg -o IGNORE_OSVERSION=yes -o ABI="$ABI" -o INSTALL_AS_USER=true -o
RUN_SCRIPTS=false --rootdir "$I386_ROOT" "$@"



Please fix.

Regards,
vermaden

-- 
You are receiving this mail because:
You are the assignee for the bug.