[neon/forks/ubuntu-release-upgrader/Neon/unstable_jammy] DistUpgrade: cherry-pick jammy override from focal branch

Jonathan Esk-Riddell null at kde.org
Fri Sep 2 11:11:16 BST 2022


Git commit 3387a47cb83fb598fe895f94b26961c103175c94 by Jonathan Esk-Riddell.
Committed on 02/09/2022 at 10:10.
Pushed by jriddell into branch 'Neon/unstable_jammy'.

cherry-pick jammy override from focal branch

A  +394  -0    DistUpgrade/98-jammy-overrides
M  +13   -0    DistUpgrade/DistUpgradeQuirks.py

https://invent.kde.org/neon/forks/ubuntu-release-upgrader/commit/3387a47cb83fb598fe895f94b26961c103175c94

diff --git a/DistUpgrade/98-jammy-overrides b/DistUpgrade/98-jammy-overrides
new file mode 100644
index 00000000..cb9f2d88
--- /dev/null
+++ b/DistUpgrade/98-jammy-overrides
@@ -0,0 +1,394 @@
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+# SPDX-FileCopyrightText: 2022 Jonathan Esk-Riddell <jr at jriddell.org>
+
+Package: libqtav1
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: assimp-testmodels
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: assimp-utils
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: cec-utils
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: cmake
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: cmake-curses-gui
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: cmake-data
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: cmake-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: cmake-qt-gui
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: fuse
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: fuse3
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: gir1.2-poppler-0.18
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: gir1.2-xmlb-2.0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: gpgme-json
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: gwenhywfar-tools
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: highway-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: labplot
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: labplot-data
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libaccounts-qt5-1
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libaccounts-qt5-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libaccounts-qt-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libassimp5
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libassimp-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libassimp-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libcec6
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libcec-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libfuse3-3
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libfuse3-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgpgme11
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgpgme-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgpgmepp6
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgpgmepp-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgpgmepp-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwengui-fox16-79
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwengui-fox16-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwengui-gtk3-79
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwengui-gtk3-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwengui-qt5-79
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwengui-qt5-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwenhywfar79
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwenhywfar-core-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwenhywfar-data
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libgwenhywfar-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libhwy0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libhwy-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libkdb3-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libkdb3-driver-mysql
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libkdb3-driver-postgresql
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libkdb3-driver-sqlite
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libkdb-data
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: liblcms2-2
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: liblcms2-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: liblcms2-utils
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: liblitehtml0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: liblitehtml-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libmd4c0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libmd4c-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libmd4c-html0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libmd4c-html0-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-cpp0v5
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-cpp-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-glib8
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-glib-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-glib-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-private-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-qt5-1
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libpoppler-qt5-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libqgpgme7
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libqofono-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libqofono-qt5-0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libqt5feedback5
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libseccomp2
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libseccomp-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-bin
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-client0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-cursor0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-doc
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-egl1
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-egl-backend-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libwayland-server0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libxcvt0
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libxcvt-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libxmlb2
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libxmlb-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libxmlb-tests
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: libyuv-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: meson
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: poppler-utils
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: python3-cec
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: python3-gpg
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: python3-pyassimp
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: python3-seccomp
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: qml-module-ofono
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: qml-module-qtfeedback
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: qtfeedback5-dev
+Pin: release o=Ubuntu
+Pin-Priority: 1100
+
+Package: seccomp
+Pin: release o=Ubuntu
+Pin-Priority: 1100
diff --git a/DistUpgrade/DistUpgradeQuirks.py b/DistUpgrade/DistUpgradeQuirks.py
index 2513a83f..6643f778 100644
--- a/DistUpgrade/DistUpgradeQuirks.py
+++ b/DistUpgrade/DistUpgradeQuirks.py
@@ -140,6 +140,19 @@ class DistUpgradeQuirks(object):
 
     def jammyPostUpgrade(self):
         logging.debug("running Quirks.jammyPostUpgrade")
+        # neon packages with versions < in focal
+        copyfile('98-jammy-overrides', '/etc/apt/preferences.d/98-jammy-overrides')
+        # Make sure legacy pins are cleaned up before doing anything to prevent
+        # dependency resolution problems caused by old pins.
+        # This includes the neon-settings pin. The future package shouldn't include
+        # the legacy pin in its neon-settings!
+        for old_pin in ['98-xenial-overrides', '99-xenial-overrides', '98-focal-overrides']:
+            path = '/etc/apt/preferences.d/' + old_pin
+            if os.path.exists(path):
+                os.remove(path)
+
+    def focalPostUpgrade(self):
+        logging.debug("running Quirks.focalPostUpgrade")
         cache = self.controller.cache
         if 'snapd' not in cache:
             logging.debug("package required for Quirk not in cache")


More information about the Neon-commits mailing list