dozzie / yumbootstrap

Linux chroot installer for Yum-based distributions
http://dozzie.jarowit.net/trac/wiki/yumbootstrap
GNU General Public License v3.0
118 stars 45 forks source link

Pulling in rpms newer than those needed? #16

Open hartwork opened 9 years ago

hartwork commented 9 years ago

When trying to install fedora-22, a version of rpm is installed that is too to mee other the requirements of other packages, it seems.

A version "<= 4.2.2-1" seems to be needed:

# time sudo http_proxy=http://127.0.0.1:8123/ yumbootstrap fedora-22 fedora-22-root
[..]
Running transaction check
ERROR You need to update rpm to handle:
rpmlib(BuiltinLuaScripts) <= 4.2.2-1 is needed by glibc-2.21-5.fc22.x86_64
rpmlib(BuiltinLuaScripts) <= 4.2.2-1 is needed by glibc-common-2.21-5.fc22.x86_64
rpmlib(BuiltinLuaScripts) <= 4.2.2-1 is needed by libgcc-5.1.1-3.fc22.x86_64
rpmlib(FileCaps) <= 4.6.1-1 is needed by iputils-20140519-4.fc22.x86_64
rpmlib(BuiltinLuaScripts) <= 4.2.2-1 is needed by bash-4.3.39-1.fc22.x86_64
rpmlib(BuiltinLuaScripts) <= 4.2.2-1 is needed by filesystem-3.2-32.fc22.x86_64
rpmlib(BuiltinLuaScripts) <= 4.2.2-1 is needed by setup-2.9.6-1.fc22.noarch
RPM needs to be updated
[..]

But version 4.12.0.1 seems to be downloaded and installed:

# find fedora-22-root/ -type f -name 'rpm*' | xargs -n1 basename
rpm-libs-4.12.0.1-10.fc22.x86_64.rpm
rpm-python-4.12.0.1-10.fc22.x86_64.rpm
rpm-plugin-systemd-inhibit-4.12.0.1-10.fc22.x86_64.rpm
rpm-plugin-selinux-4.12.0.1-10.fc22.x86_64.rpm
rpm-build-libs-4.12.0.1-10.fc22.x86_64.rpm
rpm-4.12.0.1-10.fc22.x86_64.rpm

How come?

Could it be that mirrors different fedora releases are mixed or something?

chewi commented 8 years ago

I'm hitting this when trying Fedora 23.

chewi commented 8 years ago

I just figured it out! @hartwork and I are both Gentoo users and Gentoo installs rpm with the caps and lua USE flags disabled by default. Enabling these makes the problem go away.

hartwork commented 8 years ago

@chewi, it seems you are right: many thanks! I have fixed the yumbootstrap dependencies in betagarden now, as proposed (https://cgit.gentoo.org/proj/betagarden.git/commit/?id=9137f823357ea4ff482e6dc88f5ecfb215985b4b).

Could you elaborate how you found caps or why it is needed?

chewi commented 8 years ago

I just saw BuiltinLuaScripts and FileCaps and figured that's what was needed!

hartwork commented 8 years ago

Alright, I overlooked FileCaps. Thanks!