From 242d999c07eab498c7c79fd4c0dbc8ede4b9832e Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Nov 11 2018 18:39:42 +0000 Subject: Drop dependencies In F21-F29, the editions were seperate add-on packages and the fedora-release package was the only one that provided system-release. In F30, we've moved to a setup where fedora-release[-$EDITION] can provide system-release. As an unexpected side-effect, this resulted in -server and -workstation having an unresolvable dependency-chain, because the edition-specific subpackages can no longer be ordered late in the transaction. Those dependencies were there solely for the ability to stop an installation from reporting itself as Server or Workstation if those packages were removed. (This implied a minimal set of functionality that could be relied upon to be present for those Editions). Since this was a nice-to-have feature rather than a critical feature, we're going to drop those dependencies and treat the Edition as an install-time declaration. These will still be installed by default on the relevant Editions in their comps.xml definition. The glib-compile-schemas execution is now handled by a filetrigger in the glib2 package. Signed-off-by: Stephen Gallagher --- diff --git a/fedora-release.spec b/fedora-release.spec index 5659ed1..8454d07 100644 --- a/fedora-release.spec +++ b/fedora-release.spec @@ -14,7 +14,7 @@ Summary: Fedora release files Name: fedora-release Version: 30 -Release: 0.12 +Release: 0.13 License: MIT URL: https://fedoraproject.org/ @@ -217,15 +217,6 @@ Provides: fedora-release-variant = %{version}-%{release} Provides: system-release Provides: system-release(%{version}) Requires: fedora-release-common = %{version}-%{release} -Requires: systemd -Requires: cockpit-bridge -Requires: cockpit-networkmanager -Requires: cockpit-shell -Requires: cockpit-storaged -Requires: cockpit-ws -Requires: openssh-server - -Requires(post): systemd %description server @@ -278,10 +269,6 @@ Provides: system-release Provides: system-release(%{version}) Requires: fedora-release-common = %{version}-%{release} Provides: system-release-product -# needed for captive portal support -Requires: NetworkManager-config-connectivity-fedora -Requires(post): /usr/bin/glib-compile-schemas -Requires(postun): /usr/bin/glib-compile-schemas %description workstation @@ -507,15 +494,6 @@ sed -e "s#\$version#%{bug_version}#g" -e 's///;/^$/d' %{SOURCE19} > %{b install -d %{buildroot}%{_sysconfdir}/swid/swidtags.d ln -s %{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.org -%postun workstation -if [ $1 -eq 0 ] ; then - glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : -fi - - -%posttrans workstation -glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : - %files common %license licenses/LICENSE licenses/Fedora-Legal-README.txt @@ -617,6 +595,13 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %changelog +* Sun Nov 11 2018 Stephen Gallagher - 30-0.13 +- Drop unneeded Requires(post) and Requires(postun) dependencies causing + loops. The glib-compile-schemas dependency is now handled by file triggers + and the systemd requirement was just completely erroneous. +- Also drop strict dependencies on edition packages. They are causing + un-breakable dependency loops. + * Tue Oct 23 2018 Stephen Gallagher - 30-0.12 - Convert to more maintainable implementation of variant-handling