Why Xsane is not compatible with Gimp3

Hi guys,

I don't believe it is an hard-code dependencies but trying to install xsane ask to remove Gimp3 in favor of Gimp 2.8 series. What can I do to get both?

Thanks... 🙏

Code:
doas pkg install xsane
Password:
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    gimp-app: 2.10.38_11,1 [FreeBSD-ports]
    lcms: 1.19_9,1 [FreeBSD-ports]
    libmng: 2.0.3_3 [FreeBSD-ports]
    sane-backends: 1.4.0_3 [FreeBSD-ports]
    xsane: 0.999_11 [FreeBSD-ports]

Number of packages to be installed: 5

The process will require 134 MiB more space.
26 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/5] Fetching sane-backends-1.4.0_3: 100%  3929 KiB   2.0 MB/s    00:02    
[2/5] Fetching xsane-0.999_11: 100%  1605 KiB   1.6 MB/s    00:01    
[3/5] Fetching gimp-app-2.10.38_11,1: 100%    20 MiB  20.7 MB/s    00:01    
[4/5] Fetching libmng-2.0.3_3: 100%   238 KiB 243.4 kB/s    00:01    
[5/5] Fetching lcms-1.19_9,1: 100%   251 KiB 256.6 kB/s    00:01    
Checking integrity... done (1 conflicting)
  - gimp-app-2.10.38_11,1 [FreeBSD-ports] conflicts with gimp3-app-3.2.6 [installed] on /usr/local/bin/gimp
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 6 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    gimp-app: 2.10.38_11,1 [FreeBSD-ports]
    lcms: 1.19_9,1 [FreeBSD-ports]
    libmng: 2.0.3_3 [FreeBSD-ports]
    sane-backends: 1.4.0_3 [FreeBSD-ports]
    xsane: 0.999_11 [FreeBSD-ports]

Installed packages to be REMOVED:
    gimp3-app: 3.2.6

Number of packages to be removed: 1
Number of packages to be installed: 5

The operation will free 16 MiB.
 
Here are my notes from getting it to work in my environment.
The shorthand may be a bit cryptic, but has most of the steps that may lead you in the right direction.



use: gimp-xsanecli

GIMP 3.* plug-in for scanning via XSane
Uses XSane via CLI rather than requiring XSane to be compiled with GIMP support (which is currently unavailable for GIMP 3.0)
Usage
gimp-xsanecli has only been tested on Linux. It requires xsane to be installed, and the xsane command to be available on PATH.

Install xsanecli.py to ~$USER/.config/GIMP/3.2/plug-ins/xsanecli/xsanecli.py and ensure that xsanecli.py is executable.

Click File → Create → XSane via CLI….
By default, XSane's device chooser dialog is displayed. To hard-code a specific device, set DEVICE_NAME in xsanecli.py (e.g. DEVICE_NAME = 'escl:http://10.0.0.1:80').


cd /t/g
git clone https://yingtongli.me/git/RunasSudo/gimp-xsanecli.git
mkdir ~$USER/.config/GIMP/3.2/plug-ins/xsanecli
cp xsanecli.py ~$USER/.config/GIMP/3.2/plug-ins/xsanecli/
vi ~$USER/.config/GIMP/3.2/plug-ins/xsanecli/xsanecli.py
-#!/usr/bin/env python3
+#!/usr/bin/env python3.12


#build my own xsane:
grep -i gimp /t/c/make.d/*
/t/c/make.d/port-options.conf:# disable gimp plugin until xsane goes to gimp3
/t/c/make.d/port-options.conf:# manually added xsane plugin to gimp3 see /t/r/xsane-plugin-gimp3
/t/c/make.d/port-options.conf:graphics_xsane_UNSET+=GIMP


sudo vigr
add my username to groups cups and saned
log out of xfce/wm, relogin.
groups $USER
_redacted_ wheel operator video cups saned vboxusers u2f


# add saned.conf for my scanner.
cat /usr/local/etc/devd/saned.conf
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x04a9";
match "product" "0x1901";
action "chown -L cups:saned /dev/$cdev && chmod -L 660 /dev/$cdev";
};
 
Very cryptic... 😵

I don't want use Xsane with Gimp 3, I want just to install Xsane and keep using Gimp 3... 🤔
 
Back
Top