Description of problem: zsh-5.7.1-1.fc30.src.rpm fails to build from source. Version-Release number of selected component (if applicable): zsh-5.7.1-1.fc30 How reproducible: Always Steps to Reproduce: 1. dnf download --enablerepo=rawhide --source zsh 2. rpmbuild --rebuild zsh-5.7.1-1.fc30.src.rpm Actual results: The build fails with: hashnameddir.c:49:12: fatal error: rpc/types.h: No such file or directory # include <rpc/types.h> ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makemod:230: hashnameddir.o] Error 1 Expected results: The build should complete successfully. Additional info: Adding CPPFLAGS=-I/usr/include/tirpc seems to help.
I cannot reproduce this. The existing package builds quite fine in mock for me (on both F30 and rawhide), and in our buildsystem (https://koji.fedoraproject.org/koji/packageinfo?packageID=251) and in the package CI system (https://apps.fedoraproject.org/koschei/package/zsh). I suspect that the issue falls with the environment in which you are building, as the clean environment provided by mock is fine. Note that in general you cannot expect to do a local build of a random source package and have it simply work. It works most of the time, but not all of the time. One major issue is that configure scripts may detect extra things you have installed on your system and cause the build to differ in various ways. Another possibility is that something in the default mock buildroot isn't installed on your local machine, though this is rarer and usually results in different breakage. (Lack of redhat-rpm-config is one such package, but I don't think that's the case here.) I can't really guess at what extra thing you might have which causes problems. I'll attach the installed_packages.log file from a mock build. If it's known what package causes an issue, it may be possible to work around it or, well, I've been told that BuildConflicts: exists.
Created attachment 1543042 [details] Mock's installed_pkgs.log for a successful rawhide build of zsh
It fails only if you have ypcat and valid NIS configuration.
downstream commit: https://src.fedoraproject.org/cgit/rpms/zsh.git/commit/?id=711462cd
FEDORA-2019-949a7cdde2 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-949a7cdde2
zsh-5.7.1-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-949a7cdde2
zsh-5.7.1-4.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.