Bug 1943130

Summary: sssd: FTBFS with upcoming autoconf-2.71
Product: [Fedora] Fedora Reporter: Ondrej Dubaj <odubaj>
Component: sssdAssignee: Iker Pedrosa <ipedrosa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, atikhono, jhrozek, lslebodn, mzidek, pbrezina, sbose, ssorce, sssd-maintainers, thalman
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-12 11:16:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1942967    

Description Ondrej Dubaj 2021-03-25 12:57:03 UTC
Your package fails to build with the newest upcoming autoconf-2.71, which is part of a wide Fedora change. Please see the attached copr: https://copr.fedorainfracloud.org/coprs/odubaj/autoconf-2.70/packages/. More information about testing your package when building with autoconf available here: https://fedoraproject.org/wiki/Changes/Autoconf_271#How_To_Test

Comment 1 Iker Pedrosa 2021-04-06 14:55:06 UTC
I've been able to solve the python headers dependency problem by including the changes from https://github.com/SSSD/sssd/pull/5495. Nowadays I'm facing another problem related with the samba dependency that I think has its root cause in the mock configuration provided by @odubaj.

On the one hand when I try to build sssd locally with autoconf-2.70 and mock with the configuration provided by copr, the build fails because it can't find '/usr/include/samba-4.0'. I've checked it and samba-devel seems to be installed, at least that's what installed_pkgs.log reports, but '/var/lib/mock/odubaj-autoconf-2.70_fedora-rawhide-x86_64-bootstrap/root/usr/include/samba-4.0' doesn't exist.

On the other hand when I try to build sssd locally with autoconf-2.69 and mock with the standard configuration, then it succeeds and '/var/lib/mock/fedora-rawhide-x86_64/root/usr/include/samba-4.0' exists.

I provide the mock configuration file:
include('/etc/mock/fedora-rawhide-x86_64.cfg')

config_opts['root'] = 'odubaj-autoconf-2.70_fedora-rawhide-x86_64'

config_opts[config_opts['package_manager'] + '.conf'] += """

[copr_base]
name="Copr repository"
baseurl=https://download.copr.fedorainfracloud.org/results/odubaj/autoconf-2.70/fedora-rawhide-x86_64/
gpgcheck=0
enabled=1
skip_if_unavailable=1
metadata_expire=0
cost=1
best=1

[https_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch]
name="Additional repo https_kojipkgs_fedoraproject_org_repos_rawhide_latest_basearch"
baseurl=https://kojipkgs.fedoraproject.org/repos/rawhide/latest/$basearch/
gpgcheck=0
enabled=1
skip_if_unavailable=1
metadata_expire=0
cost=1
best=1
"""

Comment 2 Ondrej Dubaj 2021-04-06 17:35:59 UTC
Hi,

added samba  package explicitly to the repository, please test if it resolves your problem.

https://copr.fedorainfracloud.org/coprs/odubaj/autoconf-2.70/package/samba/

Thanks.

Comment 3 Iker Pedrosa 2021-04-08 13:55:11 UTC
Upstream changes in master branch:
49010b16ed90eb743dc7c47d2ba7b6ae84c049cd - configure: set CPP macro with AC_PROG_CPP 
cd843dafe63589d0a77145445c454f6fc19dabae - configure: Fix python headers detection with recent autoconf

I've also opened a PR against fedora rawhide:
https://src.fedoraproject.org/rpms/sssd/pull-request/13

Comment 4 Ondrej Dubaj 2021-04-12 07:23:05 UTC
Gentle ping.

Comment 5 Iker Pedrosa 2021-04-12 10:35:12 UTC
The changes has been merged in Fedora rawhide and is being built by copr: https://copr.fedorainfracloud.org/coprs/odubaj/autoconf-2.70/build/2129464/