#120 Fix: RPM build errors: absolute symlink
Opened 8 months ago by kkleine. Modified an hour ago
rpms/ kkleine/clang fix-abs-symlink  into  rawhide

file modified
+5 -2
@@ -68,7 +68,7 @@ 

  

  Name:		%pkg_name

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

- Release:	1%{?dist}

+ Release:	2%{?dist}

  Summary:	A C language family front-end for LLVM

  

  License:	NCSA
@@ -442,7 +442,7 @@ 

  

  %if %{without compat_build}

  # Add a symlink in /usr/bin to clang-format-diff

- ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff

+ ln -sr %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff

  %endif

  

  %check
@@ -548,6 +548,9 @@ 

  

  %endif

  %changelog

+ * Fri Sep 10 2021 Konrad Kleine <kkleine@redhat.com> - 13.0.0~rc1-2

+ - Fix: RPM build errors: absolute symlink for clang-format-diff

+ 

  * Fri Aug 06 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1

  - 13.0.0-rc1 Release

  

/usr/bin/clang-format-diff -> /usr/share/clang/clang-format-diff.py

Make it a relative link instead.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rpm-linter is complaining about the new symlinks:

clang-tools-extra.x86_64: E: symlink-has-too-many-up-segments /usr/bin/clang-format-diff ../../../../../../usr/share/clang/clang-format-diff.py
clang-tools-extra.x86_64: E: symlink-contains-up-and-down-segments /usr/bin/clang-format-diff ../../../../../../usr/share/clang/clang-format-diff.py
clang-tools-extra.x86_64: E: symlink-contains-up-and-down-segments /usr/bin/clang-format-diff ../../../../../../usr/share/clang/clang-format-diff.py

Do we still need this?

Metadata