Comment 10 for bug 626567

Revision history for this message
Tobias Gerschner (tobias-gerschner) wrote :

For those running into similar problem, the valid configuration for us was

--with-libelf \
--with-build-extlibdep \
--with-build-maxextlibdep \
--enable-build-versionscript \
--enable-build-warnings \
--with-perl \
--with-python=2.7 \
--with-pcre=internal \
--with-usecrypto=beecrypt \
--with-beecrypt=external \
--with-db=internal --with-db-tools-integrated \
--with-bzip2=external \
--with-file=external \
--with-keyutils=external \
--with-lua=external \
--with-popt=external \
--with-xz=external \
--with-zlib=external

cat > $RPM_BUILD_ROOT/etc/rpm/platform <<"EOF"
i686-pc-linuxgnu
.*
EOF

where line should be the equivalent of
rpm --eval '%{_target_cpu}-%{_target_vendor}-%{_target_os}%{?_gnu}'

It was my understanding that this should have been sufficient to achieve an archscore match, however
python -c 'import rpm; print rpm.archscore("i686")' still reported '0' as in no match,

adding '.*' gave me an archscore of 2, ( for 2 matching lines ) . So rpm-python is a little buggy ?