View Issue Details

IDProjectCategoryView StatusLast Update
0016752CentOS-7openldappublic2019-11-19 22:57
Reporterkj4ips 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.7-1908 
Target VersionFixed in Version 
Summary0016752: rpms/openldap does not contain ltb-project-openldap-ppolicy-check-password
DescriptionThe OpenLDAP (c7) repo [ https://git.centos.org/rpms/openldap/tree/c7 ] does not contain (either normally, or LFS) the password checker source tarball that is used as source10 [ https://git.centos.org/rpms/openldap/blob/c7/f/SPECS/openldap.spec#_20]

The hash of the tarball is available in the .openldap.metadata, but there is no location provided, without this, one cannot build the openldap package.

While the ltb-project password checker is available on github [ https://github.com/ltb-project/openldap-ppolicy-check-password ], the .tar.gz provided by github is laid out differently, and cannot be used, additionally, the version on github has changes that cause the patches to ppolicy to fail.
Steps To Reproduce(the below is run in a fresh centos:centos7 container)
# We also install make, because it is missing from buildeps
yum install -y rpmdevtools rpm-build redhat-rpm-config make
spectool -g SPECS/openldap.spec -C SOURCES
rpmbuild -D "_topdir `pwd`" -bs SPECS/openldap.spec
find ./SRPMS/ -iname '*.src.rpm' | xargs yum-builddep -y
rpmbuild -D "_topdir `pwd`" -bb SPECS/openldap.spec

There are probably cleaner ways to do this.
Additional InformationPossible Workaround: use the tarball from a previous src rpm, the above excerpt becomes:

# We also install make, because it is missing from buildeps
yum install -y rpmdevtools rpm-build redhat-rpm-config make
spectool -g SPECS/openldap.spec -C SOURCES
# This is a bit of a cheat, but I can't find this anywhere, and the github one doesn't match the patches.
curl -Lv http://vault.centos.org/7.7.1908/os/Source/SPackages/openldap-2.4.44-21.el7_6.src.rpm | rpm2cpio | cpio --to-stdout -i ltb-project-openldap-ppolicy-check-password-1.1.tar.gz > SOURCES/ltb-project-openldap-ppolicy-check-password-1.1.tar.gz
rpmbuild -D "_topdir `pwd`" -bs SPECS/openldap.spec
find ./SRPMS/ -iname '*.src.rpm' | xargs yum-builddep -y
rpmbuild -D "_topdir `pwd`" -bb SPECS/openldap.spec
TagsNo tags attached.
abrt_hash
URLhttps://git.centos.org/rpms/openldap/tree/c7

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-11-19 22:57 kj4ips New Issue