Re: How to obsolete a subpackage?
On 09/14/2016 09:46 AM, David Howells wrote: Florian Weimer wrote: I think if you want silent deletion, you'll have to add “Obsoletes: binutils-sh64-linux-gnu” to the cross-binutils-common package. Yeah, the following worked: @@ -129,6 +133,9 @@ converting addresses to file and line). Summary: Cross-build binary utility documentation and translation files Group: Development/Tools BuildArch: noarch +%if !%{build_sh64} +Obsoletes: binutils-sh64-linux-gnu +%endif %description -n %{cross}-binutils-common Documentation, manual pages and translation files for cross-build binary image generation, manipulation and query tools. I forgot to put the '!' in the %if condition, which didn't help. David -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org Be sure to properly version the obsoletes - something like Obsoletes: binutils-sh64-linux-gnu < VERSION-RELEASE Where VERSION-RELEASE is the version-release where you dropped the package. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA DivisionFAX: 303-415-9702 3380 Mitchell Lane or...@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org
Re: How to obsolete a subpackage?
Florian Weimer wrote: > I think if you want silent deletion, you'll have to add “Obsoletes: > binutils-sh64-linux-gnu” to the cross-binutils-common package. Yeah, the following worked: @@ -129,6 +133,9 @@ converting addresses to file and line). Summary: Cross-build binary utility documentation and translation files Group: Development/Tools BuildArch: noarch +%if !%{build_sh64} +Obsoletes: binutils-sh64-linux-gnu +%endif %description -n %{cross}-binutils-common Documentation, manual pages and translation files for cross-build binary image generation, manipulation and query tools. I forgot to put the '!' in the %if condition, which didn't help. David -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org
Re: How to obsolete a subpackage?
I would suggest everyone interested follow the relevant FPC ticket. I've just added https://fedorahosted.org/fpc/ticket/645#comment:11 which probably isn't complete but at least gives us a start. - J< -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org
Re: How to obsolete a subpackage?
Dne 14.9.2016 v 16:32 Florian Weimer napsal(a): > On 09/14/2016 04:28 PM, David Howells wrote: >> I need to obsolete one of the arch subpackages in the cross-binutils >> rpm (and >> also in the cross-gcc rpm) because binutils no longer supports that arch >> (sh64). >> >> Just marking the appropriate subpackage as obsoleted in the specfile >> for the > > How do you do that? > >> cross-binutils-common subpackage causes dnf to complain: >> >> warthog>sudo dnf upgrade >> ./noarch/cross-binutils-common-2.27-1.fc26.noarch.rpm >> ./x86_64/binutils-* >> Last metadata expiration check: 0:20:38 ago on Wed Sep 14 15:06:27 2016. >> Error: package binutils-sh64-linux-gnu-2.26.1-1.fc24.x86_64 requires >> cross-binutils-common = 2.26.1-1.fc24, but none of the providers can >> be installed >> (try to add '--allowerasing' to command line to replace conflicting >> packages) >> >> Is this the right way to do things? > > I think if you want silent deletion, you'll have to add “Obsoletes: > binutils-sh64-linux-gnu” to the cross-binutils-common package. > > I'm not sure if this is a good idea, though. This seems to be hot topic recently. I faced the similar issue yesterday and there is FPC ticket [1] trying to figure out what to do with such packages. Vít [1] https://fedorahosted.org/fpc/ticket/645#comment:10 -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org
Re: How to obsolete a subpackage?
On Wed, Sep 14, 2016 at 4:28 PM, David Howells wrote: > I need to obsolete one of the arch subpackages in the cross-binutils rpm (and > also in the cross-gcc rpm) because binutils no longer supports that arch > (sh64). > > Just marking the appropriate subpackage as obsoleted in the specfile for the > cross-binutils-common subpackage causes dnf to complain: > > warthog>sudo dnf upgrade > ./noarch/cross-binutils-common-2.27-1.fc26.noarch.rpm ./x86_64/binutils-* > Last metadata expiration check: 0:20:38 ago on Wed Sep 14 15:06:27 2016. > Error: package binutils-sh64-linux-gnu-2.26.1-1.fc24.x86_64 requires > cross-binutils-common = 2.26.1-1.fc24, but none of the providers can be > installed > (try to add '--allowerasing' to command line to replace conflicting packages) > > Is this the right way to do things? Can you show diff what you did? > > David > -- > devel mailing list > devel@lists.fedoraproject.org > https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org -- -Igor Gnatenko -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org
Re: How to obsolete a subpackage?
On 09/14/2016 04:28 PM, David Howells wrote: I need to obsolete one of the arch subpackages in the cross-binutils rpm (and also in the cross-gcc rpm) because binutils no longer supports that arch (sh64). Just marking the appropriate subpackage as obsoleted in the specfile for the How do you do that? cross-binutils-common subpackage causes dnf to complain: warthog>sudo dnf upgrade ./noarch/cross-binutils-common-2.27-1.fc26.noarch.rpm ./x86_64/binutils-* Last metadata expiration check: 0:20:38 ago on Wed Sep 14 15:06:27 2016. Error: package binutils-sh64-linux-gnu-2.26.1-1.fc24.x86_64 requires cross-binutils-common = 2.26.1-1.fc24, but none of the providers can be installed (try to add '--allowerasing' to command line to replace conflicting packages) Is this the right way to do things? I think if you want silent deletion, you'll have to add “Obsoletes: binutils-sh64-linux-gnu” to the cross-binutils-common package. I'm not sure if this is a good idea, though. Florian -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org