Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: fix tmp/%.mod.fc target #333

Merged
merged 1 commit into from
Mar 18, 2020
Merged

Conversation

vmojzis
Copy link
Member

@vmojzis vmojzis commented Mar 17, 2020

%.pp target requires both "tmp/%.mod" and "tmp/%.mod.fc", however only the
former creates the tmp directory when it does not exist. This may lead to
failure since order of satisfying dependencies is not defined.

Fixes:
#git clone https://github.com/fedora-selinux/selinux-policy-contrib.git -b rawhide
#cd selinux-policy-contrib
#make -f /usr/share/selinux/devel/Makefile tmp/ipa.mod.fc
/bin/sh: tmp/ipa.mod.fc: No such file or directory
make: *** [/usr/share/selinux/devel/include/Makefile:160: tmp/ipa.mod.fc] Error 1

%.pp target requires both "tmp/%.mod" and "tmp/%.mod.fc", however only the
former creates the tmp directory when it does not exist. This may lead to
failure since order of satisfying dependencies is not defined.

Fixes:
   #git clone https://github.com/fedora-selinux/selinux-policy-contrib.git -b rawhide
   #cd selinux-policy-contrib
   #make -f /usr/share/selinux/devel/Makefile tmp/ipa.mod.fc
   /bin/sh: tmp/ipa.mod.fc: No such file or directory
   make: *** [/usr/share/selinux/devel/include/Makefile:160: tmp/ipa.mod.fc] Error 1
@vmojzis
Copy link
Member Author

vmojzis commented Mar 18, 2020

This issue is blocking freeipa build in rawhide.

@wrabcak
Copy link
Member

wrabcak commented Mar 18, 2020

LGTM. Merging.
@zpytela, we need Fedora Rawhide build with this change to allow freeipa make build.

@wrabcak wrabcak merged commit 0072731 into fedora-selinux:rawhide Mar 18, 2020
@WOnder93
Copy link
Member

Just a side note: In refpolicy, this exact same fix was merged over 5 years ago:
SELinuxProject/refpolicy@ad2d828

@zpytela
Copy link
Contributor

zpytela commented Mar 18, 2020

@wrabcak, understand, will prepare all builds soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants