sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.15k stars 112 forks source link

rpm fedora 38 and 40 install package file conflict #128

Closed habegit closed 4 months ago

habegit commented 4 months ago

DNF INSTALL OUTPUT: Error: Transaction test error: file /usr/bin from install of sourcegit-8.12-1.x86_64 conflicts with file from package filesystem-3.18-8.fc40.x86_64

OS: cat /etc/fedora-release Fedora release 40 (Forty)

REPRODUCE: sudo dnf install https://github.com/sourcegit-scm/sourcegit/releases/download/v8.12/sourcegit-8.12-1.x86_64.rpm

same error happened already on fc38.

habegit commented 4 months ago

seems .spec sets /usr/bin to 755 whilst it should be 555

stat -c '%a %n' /usr/bin/ 555 /usr/bin/

stat -c '%a %n' /usr/bin/bash 755 /usr/bin/bash

build/resources/rpm/SPECS/build.spec line 23 chmod 755 -R $RPM_BUILD_ROOT

seems to be the cause

love-linger commented 4 months ago

Thank you very much.

habegit commented 4 months ago

fix: diff --git a/build/resources/rpm/SPECS/build.spec b/build/resources/rpm/SPECS/build.spec index 2e6875a..064af1b 100644 --- a/build/resources/rpm/SPECS/build.spec +++ b/build/resources/rpm/SPECS/build.spec @@ -24,8 +24,8 @@ chmod 755 -R $RPM_BUILD_ROOT

%files /opt -/usr/bin +%attr(555,root,root)/usr/bin /usr/share

%changelog -# skip \ No newline at end of file +# skip

habegit commented 4 months ago

Thx 4 fast fixing!