On 04/12/2012 06:25 PM, Roman Suvorov wrote: > Thank you very much for your help. Just to clarify, absolutely, I'm > not an expert in building from source but I don't really need to be > one. What I need a build of gcc 2.95 on my machine for is compiling > some really old code and recording performance metrics (i.e., build > times). I don't intend to use the resulting binaries, but I can't > use a more modern build of gcc as it would need massive code to > compile such old projects. > > I ran into a problem with mock & rpm and I was wondering if you > could help. I posted this on the rpm mailing list but if you could > shed some light on this it'd be appreciated. The error message from > mock prompting to update rpm appears immediately even before I build > the shell - when initializing a chroot with "mock -r fedora-17-i386 > --init". > > ### > I'm trying to build rpm from source to use with mock (1.1.22), which with my current build complains that: > *** > ERROR You need to update rpm to handle: > rpmlib(PayloadIsXz) <= 5.2-1 is needed by coreutils-8.15-6.fc17.i686 > --snip-- > rpmlib(X-CheckUnifiedSystemdir) is needed by filesystem-3-2.fc17.i686 > --snip-- > *** > I'm trying to build the latest version, 4.9.1.2, using the following configure/make commands: The latest version of what RPM? > ./configure --prefix=/usr --enable-sqlite3 --enable-python --with-cap --with-acl --with-lua --with-dmalloc CPPFLAGS="`pkg-config --cflags nss` -I/path/to/lua/src" LDFLAGS="-L/path/to/lua/src -llua -lm" LUA_CFLAGS="-I/path/to/lua/src" LUA_LIBS="-L/path/to/lua/src" > make > > This should enable just about everything in my rpm build. CPPFLAGS are set to find NSPR & NSS headers; /path/to/lua contains a build of lua-5.1.5 with an additional shared library liblua.so target (that's what -llua in LDFLAGS is for). All the other flags ensure I use my 5.1.5 lua build. > This still produces a build with the following rpmlib's. Here's part of the output of ./rpm --showrc: > *** > rpmlib(BuiltinLuaScripts) = 4.2.2-1 > rpmlib(CompressedFileNames) = 3.0.4-1 > rpmlib(ConcurrentAccess) = 4.1-1 > rpmlib(ExplicitPackageProvide) = 4.0-1 > rpmlib(FileCaps) = 4.6.1-1 > rpmlib(FileDigests) = 4.6.0-1 > rpmlib(HeaderLoadSortsTags) = 4.0.1-1 > rpmlib(PartialHardlinkSets) = 4.0.4-1 > rpmlib(PayloadFilesHavePrefix) = 4.0-1 > rpmlib(PayloadIsBzip2) = 3.0.5-1 > rpmlib(ScriptletExpansion) = 4.9.0-1 > rpmlib(ScriptletInterpreterArgs) = 4.0.3-1 > rpmlib(VersionedDependencies) = 3.0.3-1 > *** > So BuiltinLuaScripts & FileCaps are now present - the 4.7.2 build I had on my system was lacking those too, but I'm still not seeing PayloadIsXz & X-CheckUnifiedSystemdir. > What can I do to enable those rpmlib's? Any help would be greatly appreciated. Sorry, it's hard for me to say. All I can say for sure is that I just built gcc from the source tree without all this RPM stuff. :-) Andrew.