-
Notifications
You must be signed in to change notification settings - Fork 90
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
Unable to build .pp file or RPM from RHEL branch or latest tag #34
Comments
Also, just so I am clear, which branch/tag should I be using to build from to use on a RHEL 7.3 box running docker-engine 1.13.1? |
The latest commit I am now checking to see if I can build an RPM and deploy it on a rhel7.3 box |
Yes I fixed the issues you were seeing yesterday. Sorry about breaking your build. |
@mlcooper just a headsup, make sure to update the commit id in container-selinux.spec on line 8 to the latest on RHEL-1.12 before you build it. Else it will probably complain. I think I can mirror the RHEL dist-git for container-selinux on github if people feel the need. I'm not a fan of the rpm specfile living in the upstream repo itself, but whatever makes @rhatdan happy. |
@lsm5 I'm not sure I follow where to put the commit id on line 8: It is a comment line at the moment. |
That file is way too old. Much preferable to fetch and use https://src.fedoraproject.org/cgit/rpms/container-selinux.git/tree/container-selinux.spec . Change line 9 to the latest commit id on RHEL-1.12 branch. Then specfiles in the upstream repo often end up being stale, coz all updates usually go to the dist-git repos. Hence me not being a fan of it. |
That's actually fedora's specfile, but does include conditions for RHEL. If it doesn't work like expected, let me know |
Thanks for the further instructions/clarification there, @lsm5 I built the rpm, and it installed successfully:
Is this the actual module it installs?
|
@lsm5 I agree, I also think the spec file should just be an example. The real spec file should live in the rhel/fedora dist-gits. |
BTW We have been asked to move this project to OCI/selinux repo. So all things SELinux for containers would be under one repo. Go bindings and selinux policy. |
@mlcooper yes, that's the installed module. @rhatdan is the spec file better under something like an |
Sure I will move it to a sample directory. |
Moved it to a contrib directory in master branch. |
My build server, where I'm trying to build the PP file or RPM package has these components:
However when I try to build the RPM from either of the RHEL branches, or master, I get a syntax error and the .bz2 file will got build. Here's an example:
I expected the .bz2 file to get built and then I can run an
rpmbuild -ba container-selinux.spec
to build the RPM file.Do you see anything I could be doing incorrect?
The text was updated successfully, but these errors were encountered: