Teradata / stacki

Linux Cluster Builder - Bare Metal Red Hat & SUSE

Home Page:http://www.stacki.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-2.10.1-7 in stacki-4.0 iso confclits with git-1.8.3.1-11 in CentOS7 iso

sihara opened this issue · comments

Stacki includes git RPM, but redhat/centos has git RPM has well. This causes package depedency problem with perl-Git.

yum install perl-Git
Resolving Dependencies
--> Running transaction check
---> Package perl-Git.noarch 0:1.8.3.1-12.el7_4 will be installed
--> Processing Dependency: git = 1.8.3.1-12.el7_4 for package: perl-Git-1.8.3.1-12.el7_4.noarch
--> Processing Dependency: perl(Error) for package: perl-Git-1.8.3.1-12.el7_4.noarch
--> Running transaction check
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Git.noarch 0:1.8.3.1-12.el7_4 will be installed
--> Processing Dependency: git = 1.8.3.1-12.el7_4 for package: perl-Git-1.8.3.1-12.el7_4.noarch
--> Finished Dependency Resolution
Error: Package: perl-Git-1.8.3.1-12.el7_4.noarch (CentOS-7-7.x)
Requires: git = 1.8.3.1-12.el7_4
Installed: git-2.10.1-7.x.x86_64 (@anaconda/7)
git = 2.10.1-7.x
Available: git-1.8.3.1-12.el7_4.x86_64 (CentOS-7-7.x)
git = 1.8.3.1-12.el7_4
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

'git' RPM in stacki should change the name with 'foundation-git' sometihng like that and it should be installed into /opt/stacki. otherwise, it causes troubles.

In fact we've pulled git out of Stacki altogether.

Couldn't you rpm -e git and try yum install perl-Git again? That should pull in a downgraded git that's compatible with the package you want. There shouldn't be any dependencies on the git we shipped in that version.

Alternatively you should be able to do something like:

cd /export/stack/pallets/stacki/4.0_20170414_c4aff2a/7.x/redhat/x86_64 # or so
rm RPMS/git-2.10*rpm
mv repodata /tmp/repodata-stackibak
createrepo .
yum clean all

Does that answer your question?

That's exactly I did as a quick workaround. If git rpm is not nessary for stacki, it shouldn't be included in iso, shouldn't it? otherwise, kickstart fails if perl-Git is included in package section of cart.
<package>
...
perl-Git
</packge>

It was included for reasons that aren't relevant anymore and indeed, this packaging issue is precisely the reason it was removed for the upcoming release of Stacki :)