#155 Add more fine-grained provides for clang-resource-filesystem
Closed a month ago by tstellar. Opened 4 months ago by tstellar.
rpms/ tstellar/clang fine-grained-crf  into  rawhide

file modified
+6 -1
@@ -72,7 +72,7 @@ 

  

  Name:		%pkg_name

  Version:	%{clang_version}%{?rc_ver:~rc%{rc_ver}}

- Release:	2%{?dist}

+ Release:	3%{?dist}

  Summary:	A C language family front-end for LLVM

  

  License:	NCSA
@@ -215,6 +215,8 @@ 

  %package resource-filesystem

  Summary: Filesystem package that owns the clang resource directory

  Provides: %{name}-resource-filesystem(major) = %{maj_ver}

+ Provides: %{name}-resource-filesystem(ro_directory) = %{maj_ver}

+ Provides: %{name}-resource-filesystem(directory) = %{clang_version}

  

  %description resource-filesystem

  This package owns the clang resouce directory: $libdir/clang/$version/
@@ -580,6 +582,9 @@ 

  

  %endif

  %changelog

+ * Thu Mar 24 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-3

+ - Add more fine-grained provides for clang-resource-filesystem

+ 

  * Wed Feb 16 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-2

  - Fix some rpmlinter errors

  

The clang resource directory does not change between release candidates
and the final release, however, the version used for
clang-resource-filesystem does. This means that any package that
depends on a specific version of clang-resource-filesystem must be
rebuilt when clang is updated from -rcN to the -final resource.

In most cases this is unnecessary since packages only depend on the
path for the resource directory which has not changed. Having
finer-grained requires will allow any packages to do

Requires: clang-resource-filesystem(directory) = X.Y.Z

So they won't be impacted by newer RCs or the final release.

Build succeeded.

@tstellar there's a conflict on the PR now, sorry for the delay :-/

Plan is to fix this upstream, but only using the major version in the resource path.

Pull-Request has been closed by tstellar

a month ago
Metadata