#1102128 gimp-data: Gimp 3 installs files to /etc/gimp/2.0/ and mishandles configs

#1102128#5
Date:
2025-04-05 12:00:02 UTC
From:
To:
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

#1102128#10
Date:
2025-04-05 12:21:35 UTC
From:
To:
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

#1102128#15
Date:
2025-04-05 12:33:26 UTC
From:
To:
On Sat, 5 Apr 2025 08:21:35 -0400 =?UTF-8?Q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com> 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.

Martin-Éric

#1102128#20
Date:
2025-04-05 12:41:54 UTC
From:
To:
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

#1102128#25
Date:
2025-04-05 13:13:43 UTC
From:
To:
la 5.4.2025 klo 15.42 Jeremy Bícha (jeremy.bicha@canonical.com) kirjoitti:

See MR on Salsa.