From bd7ea152d65c2cd500e99d07e7f168c9f562c5f4 Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Mon, 25 Jun 2018 17:24:50 +0200 Subject: [PATCH] fix build --without cvs 9125e65 ("Use new INSTALL_SYMLINKS setting", 2018-05-30) broke builds using --without cvs. /usr/libexec/git-core/git-cvsserver became a symlink instead of hardlink. Adapt the find command used to exclude 'git-cvs*' files to detect symlinks as well. --- git.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/git.spec b/git.spec index 19b2630..8c3df5e 100644 --- a/git.spec +++ b/git.spec @@ -83,7 +83,7 @@ Name: git Version: 2.18.0 -Release: 1%{?rcrev}%{?dist} +Release: 2%{?rcrev}%{?dist} Summary: Fast Version Control System License: GPLv2 URL: https://git-scm.com/ @@ -560,7 +560,7 @@ find %{buildroot} Documentation -type f -name 'git-archimport*' -exec rm -f {} ' %if ! %{with cvs} # Remove git-cvs* from %%{_bindir} and %%{gitexecdir} -find %{buildroot}{%{_bindir},%{gitexecdir}} -type f -name 'git-cvs*' -exec rm -f {} ';' +find %{buildroot}{%{_bindir},%{gitexecdir}} \( -type f -o -type l \) -name 'git-cvs*' -exec rm -f {} ';' %endif %if ! %{with p4} @@ -864,6 +864,9 @@ make test || ./print-failed-test-output %{?with_docs:%{_pkgdocdir}/git-svn.html} %changelog +* Mon Jun 25 2018 Pavel Cahyna - 2.18.0-2 +- Fix build --without cvs + * Wed Jun 20 2018 Todd Zullinger - 2.18.0-1 - Update to 2.18.0