#1013992 ITP: session-migration -- tool to migrate in user session settings

#1013992#5
Date:
2022-06-28 15:02:29 UTC
From:
To:
Package Name: session-migration
Version: 0.3.7
Upstream Author: Canonical
License: LGPL-3+
Programming Lang: Perl and C

Package: session-migration
Description: Tool to migrate in user session settings
 This tool is used to migrate in session user data when a program is evolving
 its configuration, or needing to have files moved and so on.
 .
 This program is generally autostarted at the very beginning of the session
 and integrates caching capability.

Package: dh-migrations
Provides: dh-sequence-migrations
Description: debhelper extension for session-migration support
 This package provides a debhelper extension to perform session migration
 operations on the installed packages.

Other Info
--------------
This has been part of Ubuntu for a decade but can solve real problems
for Debian too. It will soon be used by both the GNOME and MATE
packaging teams. One of its usecases is migrating user-set gsettings
to renamed (or functionally similar new) gsettings keys. Often,
upstream doesn't handle this migration themselves. And debhelper
otherwise doesn't provide a tool for this.

Basically, the way it works is that the package maintainer can provide
a script. The script will be run at the next login and
session-migration will ensure that the script is only run once.

https://manpages.ubuntu.com/manpages/dh_migrations

This is a "native" package and will be maintained by the Ayatana
Packagers team. Packaging is at
https://salsa.debian.org/debian-ayatana-team/session-migration

Thanks,
Jeremy Bicha

#1013992#10
Date:
2022-06-28 15:47:55 UTC
From:
To:
Hi Jeremy

It is awesome seeing progress on this. Actually, I'll have to
investigate the session-migration code soon and find out whether it
can be used on / ported to openSUSE, as well.

Thanks + Greets,
Mike

#1013992#15
Date:
2022-06-28 16:07:27 UTC
From:
To:
Quoting Jeremy Bicha (2022-06-28 17:02:29)
whereas long description talks about "in session user data".

Should it perhaps be changed "in session user settings" in short
description?


 - Jonas

#1013992#20
Date:
2022-06-28 18:36:52 UTC
From:
To:
https://manpages.ubuntu.com/session-migration

So how about "Tool to migrate in-session user data"?

Thank you,
Jeremy Bicha

#1013992#25
Date:
2022-06-28 18:50:44 UTC
From:
To:
I'd expect that the 'session-migration' binary package would work
fine. It's a C "script" and a systemd user service.

You might want to write an RPM implementation to do what dh-migrations
does: install scripts listed in a migrations file and add a binary
dependency on session-migration. It's not required but it's a
convenience for distro packagers.

And then we'd need to update the build to not build and test the
Debian support when not being built for a Debian-compatible system.

Thank you,
Jeremy Bicha

#1013992#30
Date:
2022-06-28 19:43:32 UTC
From:
To:
Quoting Jeremy Bicha (2022-06-28 20:36:52)

Sounds good to me - but I am not a native english speaker, so what
intuitively feels good to me might be off: I am better at noticing
things off than known when things are in balance.


 - Jonas

#1013992#35
Date:
2022-06-29 00:07:13 UTC
From:
To:
Hi!

This looks like an extremely generic name for such tool and package,
when it appears to be restricted to gsettings session data only?

This also seems extremely generic. Migrations could refer to anything,
from databases, to any other data source. Something like
dh-gsettings-migrations seems like would be way better?

Thanks,
Guillem

#1013992#40
Date:
2022-06-29 01:51:44 UTC
From:
To:
Here's an example where it's used for something else:
https://salsa.debian.org/gnome-team/gnome-boxes/-/commit/b536a968eb192

It would be nice if the upstream developers would handle user session
migrations tasks themselves, but they often don't.
about 6 current Ubuntu source packages so a rename is doable if
needed. I think I wouldn't even need a transitional package since we'd
rebuild all those Ubuntu packages which would get them the properly
named dependency.

Here's a suggestion:
user-session-migration
dh-migrate-user-session Providing dh-sequence-migrate-user-session

Thank you,
Jeremy Bicha

#1013992#45
Date:
2022-07-06 22:13:45 UTC
From:
To:
I didn't get a reply yet and we need to make a decision.

Thank you,
Jeremy Bicha

#1013992#50
Date:
2022-07-06 22:45:29 UTC
From:
To:
Il 29/06/2022 03:51, Jeremy Bicha ha scritto:

Hi, this seems really interesting, can be useful in some rare cases, I
don't remember I've ever seen it before.

However, I have a doubt, but it allow you to do any operation on user
profiles? in this case, even if it is useful, its wrong use (intentional
or by mistake) would be worrying

#1013992#55
Date:
2022-07-06 22:50:16 UTC
From:
To:
Yes, it can do anything. .deb packages don't really have limits. You
must trust the .deb publisher. Otherwise, you can use something like
Snap which has significant restrictions on what Snap publishers can do
with the apps they publish.

Thanks,
Jeremy Bicha

#1013992#60
Date:
2022-07-07 08:58:11 UTC
From:
To:
Ah thanks, looking into it, it seems more generic indeed.

Personally I'd perhaps try to keep both names consistent, also
the name you propose for the dh helper looks as if it would be
performing the migration itself which can be misleading, so perhaps
something like dh-user-session-migration would be better? In any case
I'd take either (or similar variants) over dh-migrations. :)

Thanks,
Guillem

#1013992#65
Date:
2023-02-10 14:59:30 UTC
From:
To:
Sorry for the delay. I'm uploading this to the NEW queue now with your
suggestion:
user-session-migration
dh-user-session-migration Providing dh-sequence-user-session-migration

Thank you,
Jeremy Bícha

#1013992#70
Date:
2023-04-09 18:00:17 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
user-session-migration, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013992@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremy Bicha <jbicha@ubuntu.com> (supplier of updated user-session-migration package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 05 Apr 2023 16:38:41 -0400
Source: user-session-migration
Binary: dh-user-session-migration user-session-migration user-session-migration-dbgsym
Architecture: source all amd64
Version: 0.4.0
Distribution: experimental
Urgency: medium
Maintainer: Ayatana Packagers <pkg-ayatana-devel@lists.alioth.debian.org>
Changed-By: Jeremy Bicha <jbicha@ubuntu.com>
Description:
 dh-user-session-migration - debhelper extension for user-session-migration support
 user-session-migration - Tool to migrate in-session user data
Closes: 1013992
Changes:
 user-session-migration (0.4.0) experimental; urgency=medium
 .
   * Initial release to Debian (Closes: #1013992)
   * Rename to user-session-migration per debian-devel feedback.
     This means the dh helper is now user-session-migration and you
     can Build-Depend on dh-sequence-user-session-migration to use it.
   * Drop obsolete upstart support; there's already a systemd user service
   * Update debian/copyright
Checksums-Sha1:
 c563eb398bdef7a55940d0939e2759df1d5bac3e 2014 user-session-migration_0.4.0.dsc
 42a72743c58c02fafaa278c2cc29ab2c47e8e400 13544 user-session-migration_0.4.0.tar.xz
 edec9c5ce3b1b824a515c3eef65fd18f42659343 6016 dh-user-session-migration_0.4.0_all.deb
 a28690a9395be71d1f6fb5e2632b382e03b47d2e 11452 user-session-migration-dbgsym_0.4.0_amd64.deb
 8af44daeb4471377d2bb48955d8d89c1828c6f89 8604 user-session-migration_0.4.0_amd64.buildinfo
 9d0b208d79c04854b8c8d17622407da1782cc970 8464 user-session-migration_0.4.0_amd64.deb
Checksums-Sha256:
 8ad62b148f537c3d6daff0f868b9297c8d8bb8d486ba1b8f4f802e8cf486e3ca 2014 user-session-migration_0.4.0.dsc
 7fb980c8f0a3f823cf0cc0705885d46accd830e152830c5e3f981de1451e356b 13544 user-session-migration_0.4.0.tar.xz
 3813e4d5e1469fcbfc6c0800f117c834b9b6139a4e20ef6061eea997d1f4b727 6016 dh-user-session-migration_0.4.0_all.deb
 de781e73e50c5bc6f3d07e023a42bda0b5899f7ad9da5ad8521c2aafab04fa72 11452 user-session-migration-dbgsym_0.4.0_amd64.deb
 7960d0ba5aac47a47ae162125baa4a9169dd1b1783600ca01f1a189d48abfedc 8604 user-session-migration_0.4.0_amd64.buildinfo
 4d942def300b7ffbc8e25b796ddbe338f8863a3d61b62e4fe7f7f2bd81f38a60 8464 user-session-migration_0.4.0_amd64.deb
Files:
 3efa70a901d2bd5e9012589fed59aa01 2014 misc optional user-session-migration_0.4.0.dsc
 61a4bd9a4255a798fbbd42e12ea65712 13544 misc optional user-session-migration_0.4.0.tar.xz
 73e83616fdd88232d8fe1a906e361181 6016 misc optional dh-user-session-migration_0.4.0_all.deb
 ae65ae722c81c88c3cbe1076957a2373 11452 debug optional user-session-migration-dbgsym_0.4.0_amd64.deb
 31818ba48c703a50e242e7efe2d9a65b 8604 misc optional user-session-migration_0.4.0_amd64.buildinfo
 ba02c591470eb93ec0eb4499a705f1bf 8464 misc optional user-session-migration_0.4.0_amd64.deb
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmQt3NQACgkQ5mx3Wuv+
bH0UbhAAqDCnUGzZaPtQqSXD0HTkQLjDpd0tTFz9RqBVg1s3takS17+d3H4NDgeE
NHCW8a4iRdxZ/qpn0qOrZCQDiRnRLRwU/d/CUpP4EalgkCb5QWXMSal/3xSWXjBk
o3jKWb1l7n4zVngko0vWDZrYqFRvlNsa0yEARSb/knBYzcf9YxpLKcbyM5tGqkOp
kYCsLnfJsW25bMup+xmuA2GI1CCB3Xk8AW1Dyn49tAhpKZmCRiTZR6D3Y/xfONeG
lp2mrm2gAkVcJsUxbQoYxoCzNubQ0C6+BhG1BNY/yIa+xUGYCgasqGfHWHbUMYrg
ffxdmTronMbZkaAi9EwCwvZgWGmMo/+Kijh0I95jQhCgHgN+dfZqfsUZZxnRagrW
vPKmdYItMebg78780BbrUrUGtmlKwYAI1J6ByhXcemQ/5TgDcmlea4Gd5xQ5Pdej
bdODjkYRHHuNtF91JMRGj9d42xvZaeiO2hVoWjvhFSkYyMQf7k9pSCTgEEeKAgIT
UF1jRocefCBtmdxPQWTn701OcFjtuMdyumhnUT6yx0SoxjDT7NjmWTJxuweXS28n
Pc7MNDso0ESFQtrSTgOrf3AzkXX0Kxw79n+MHdeXR6W6TuLZqi3LQ3JN+Cmqp76/
uqas1rnd/RHwWXNcsUd4ATz1beqE8oUnlgNNJ7RzRVETXxzpQa4=
=4/c/
-----END PGP SIGNATURE-----

#1013992#75
Date:
2023-04-09 18:20:57 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
user-session-migration, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013992@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremy Bícha <jbicha@ubuntu.com> (supplier of updated user-session-migration package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 09 Apr 2023 14:06:15 -0400
Source: user-session-migration
Built-For-Profiles: noudeb
Architecture: source
Version: 0.4.1
Distribution: unstable
Urgency: medium
Maintainer: Ayatana Packagers <pkg-ayatana-devel@lists.alioth.debian.org>
Changed-By: Jeremy Bícha <jbicha@ubuntu.com>
Closes: 1013992
Changes:
 user-session-migration (0.4.1) unstable; urgency=medium
 .
   * Release to unstable
 .
 user-session-migration (0.4.0) experimental; urgency=medium
 .
   * Initial release to Debian (Closes: #1013992)
   * Rename to user-session-migration per debian-devel feedback.
     This means the dh helper is now user-session-migration and you
     can Build-Depend on dh-sequence-user-session-migration to use it.
   * Drop obsolete upstart support; there's already a systemd user service
   * Update debian/copyright
 .
 session-migration (0.3.6) jammy; urgency=medium
 .
   * Have dh-migrations Provide dh-sequence-migrations
   * Build-Depend on debhelper-compat 13
Checksums-Sha1:
 ca60dd914c7f81da06bf28fa0d5fb86e60cb800b 2014 user-session-migration_0.4.1.dsc
 da58edeeda61d999685a332d3bc1999db45709a8 13604 user-session-migration_0.4.1.tar.xz
 49cf44f2012c44bdf8a441c6c69aa4738c1ac60c 7980 user-session-migration_0.4.1_source.buildinfo
Checksums-Sha256:
 18649536a932e648e4753ddee038fc472a8d138a1958e59364eb2a1aa9661086 2014 user-session-migration_0.4.1.dsc
 1fc4e6cee6f8a27d1d53b6c3617070fcfbe7d94963a8c755ea589bdcdbec7c80 13604 user-session-migration_0.4.1.tar.xz
 056d341a0d40bf6d05dfcad9084424a6dc1d11258564c09669c6a2bc0373638e 7980 user-session-migration_0.4.1_source.buildinfo
Files:
 0ec9fc1477da44d2c3fbf31f4d70b4a4 2014 misc optional user-session-migration_0.4.1.dsc
 f16fb29c8975c2e4874db9f10af7f959 13604 misc optional user-session-migration_0.4.1.tar.xz
 d3f0a0a315d45910917d63a51da26ae9 7980 misc optional user-session-migration_0.4.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmQy/wUACgkQ5mx3Wuv+
bH1scxAA1YS74nksW+krWn31Y/dJjmZEFkp/UZ/FTR0LFtL4y5yF8TsRjq3JPrFX
qYHAwB5/sxk9WShUcEVL3lWf8bbpP/6bj9ZbLQJKDZ46tQ5SFZTFRtu4TbHhjt+a
zbTMUZjtqdhEIocws2nT2cy+jCdw1vryqryzi3kay8PTX6DCAUpMIdSzcY4+VJZA
7A78Xfqkoom/RElZfxtGClJF25NWQdwpJJfkm5sHJw4eOW5m+6A5/Yb6xNLXBGoF
IhE+0cDh4p0bYVbOPFiyCx8qjOv34FpBcvyCmkm0B1iPLUdfDvo6OmGXQWglGfOz
XXKdOlES9G2cyBRgb96Qy25IdZnOKegH+b54zNmC2o7I8FvsIrPNaELVaOJUIDhT
Mahngsl6Kq7rkQ2jZwQ5c0qfIxRGD7MiZV1+6Jn2fKql2LtviZ2OcxUJp8FS+B3O
9mRwHgNYL5ZLIh9JT/1WZ3k1oZ0jbQRobLiuH1GBq7qhKjHjg+GV5RN7Ki73ees8
bnys7RyK/GXAODM1yToNGMlNd6YT84lKi9KzSLfCm5/G3d0P6gYYydPUAOvOlWr2
xnW7XpD25pp/pQHM/QGRY6shsX4pdBvaypmj+Vae5pyL1Tv0IWor7/KBM0Bl8zGJ
VeEgRNcVHS0nCHK/m9LLqSdTwc89RWUH4PXB17Sb9WsTDCRBU2U=
=UVWq
-----END PGP SIGNATURE-----