• Bug#1102128: gimp-data: Gimp 3 installs files to /etc/gimp/2.0/ and mis

    From =?utf-8?q?Martin-=C3=89ric_Racine?=@21:1/5 to All on Sat Apr 5 14:10:01 2025
    Package: gimp-data
    Version: 3.0.2-1
    Severity: normal
    X-Debbugs-Cc: martin-eric.racine@iki.fi

    Gimp 3 apparently installs files in /etc/gimp/2.0/ instead of /etc/gimp/3.0/ and the transition from Gimp 2 to Gimp 3 apparently results in mishandled config files:

    I: These configurations now belong to the following packages:
    gimp-data: /etc/gimp/2.0/controllerrc
    gimp-data: /etc/gimp/2.0/gimprc
    gimp-data: /etc/gimp/2.0/gtkrc
    gimp-data: /etc/gimp/2.0/menurc
    gimp-data: /etc/gimp/2.0/sessionrc
    gimp-data: /etc/gimp/2.0/templaterc
    gimp-data: /etc/gimp/2.0/toolrc
    gimp-data: /etc/gimp/2.0/unitrc
    grub-ipxe: /etc/grub.d/20_ipxe
    I: They were initially installed by the following packages:
    gimp-data: /etc/gimp/2.0/controllerrc
    gimp-data: /etc/gimp/2.0/gimprc
    gimp-data: /etc/gimp/2.0/gtkrc
    gimp-data: /etc/gimp/2.0/menurc
    gimp-data: /etc/gimp/2.0/sessionrc
    gimp-data: /etc/gimp/2.0/templaterc
    gimp-data: /etc/gimp/2.0/toolrc
    gimp-data: /etc/gimp/2.0/unitrc
    I: Filing bug reports against all packages involved might be a good idea.

    The above was found as follow:

    ORPHANS=$(dpkg-query --show --showformat='${Conffiles}\n' | grep obsolete | awk '{print $1}')
    case $ORPHANS in
    "")
    echo "I: No obsolete configuration found."
    ;;
    *)
    echo "I: These configurations now belong to the following packages:"
    dpkg-query --search $ORPHANS | sort
    echo "I: They were initially installed by the following packages:"
    dpkg-query --show --showformat='${Package}\n${Conffiles}\n' | awk '/^[^ ]/{pkg=$1}/ obsolete$/{print pkg":",$1}' | sort
    echo "I: Filing bug reports against all packages involved might be a good idea."
    ;;
    esac



    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing-debug
    APT policy: (500, 'testing-debug'), (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.20-amd64 (SMP w/8 CPU threads; PREEMPT)
    Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to martin-eric.racine@iki.fi on Sat Apr 5 14:30:01 2025
    On Sat, Apr 5, 2025 at 8:03 AM Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
    Package: gimp-data
    Version: 3.0.2-1
    Severity: normal
    X-Debbugs-Cc: martin-eric.racine@iki.fi

    Gimp 3 apparently installs files in /etc/gimp/2.0/ instead of /etc/gimp/3.0/ and the transition from Gimp 2 to Gimp 3 apparently results in mishandled config files:

    gimp-data installs to /etc/gimp/3.0/ . The 2.0 files are leftover from gimp 2.

    There is a postinst script that was supposed to have removed those
    files, but maybe the syntax is wrong? https://salsa.debian.org/gnome-team/gimp/-/blob/debian/latest/debian/gimp-data.postinst

    Thank you,
    Jeremy Bícha

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Martin=2D=C3=89ric_Racine@21:1/5 to jeremy.bicha@canonical.com on Sat Apr 5 14:40:02 2025
    On Sat, 5 Apr 2025 08:21:35 -0400 =?UTF-8?Q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com> wrote:
    On Sat, Apr 5, 2025 at 8:03 AM Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
    Package: gimp-data
    Version: 3.0.2-1
    Severity: normal
    X-Debbugs-Cc: martin-eric.racine@iki.fi

    Gimp 3 apparently installs files in /etc/gimp/2.0/ instead of /etc/gimp/3.0/ and the transition from Gimp 2 to Gimp 3 apparently results in mishandled config files:

    gimp-data installs to /etc/gimp/3.0/ . The 2.0 files are leftover from gimp 2.

    There is a postinst script that was supposed to have removed those
    files, but maybe the syntax is wrong? https://salsa.debian.org/gnome-team/gimp/-/blob/debian/latest/debian/gimp-data.postinst

    Doing a recursive 'rm' is incorrect. It will not clean the files off
    the 'dpkg' registry. You need to populate debian/gimp-data.maintscript
    with suitable mv_conffile or rm_conffile statements.

    Martin-Éric

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Jeremy_B=C3=ADcha?=@21:1/5 to martin-eric.racine@iki.fi on Sat Apr 5 14:50:01 2025
    On Sat, Apr 5, 2025 at 8:33 AM Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
    Doing a recursive 'rm' is incorrect. It will not clean the files off
    the 'dpkg' registry. You need to populate debian/gimp-data.maintscript
    with suitable mv_conffile or rm_conffile statements.

    Oh, so these files you are concerned about might not even exist any more?

    Would you like to work on fixing this bug?

    Thank you,
    Jeremy Bícha

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)