]> git.michaelhowe.org Git - packages/o/openafs.git/commit
redhat: fix conditional for kernel-debuginfo files directive
authorMichael Meffie <mmeffie@sinenomine.net>
Wed, 17 Jan 2018 22:33:50 +0000 (17:33 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 9 Feb 2018 13:29:07 +0000 (08:29 -0500)
commit5eb64632fd76bb7e26a90ab08c83132e7ac99e23
treef0a77da701f9133d2db06dae386519b216c6a2e1
parent781624f7f4290a1f44a0f48a04d780e10dd5b3e1
redhat: fix conditional for kernel-debuginfo files directive

Commit 443dd5367e0cd9050ad39a6594c5be521271b4e9 added support for a
separate debuginfo package for the kernel module.  Unfortunately, the
%files directive for the kernel module debuginfo package was incorrectly
placed in the %if stanza of the build_userspace condition, so the
rpmbuild fails when attempting to build just the kernel module.

That is, when running rpmbuild with the options:

    rpmbuild --define "build_userspace 0" --define "build_modules 1" ...

rpmbuild fails with:

    RPM build errors:
       Installed (but unpackaged) file(s) found:
       /usr/lib/debug/lib/modules/.../extra/openafs/openafs.ko.debug

Fix this by moving the new %files directive out of the build_userspace
conditional.

Reviewed-on: https://gerrit.openafs.org/12874
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit f599e1ce6354c42a9c0c8f7205ba8a03c35ea72b)

Change-Id: I07e25d3dd43b2cd7056cefb8f0f5c10f78347b85
Reviewed-on: https://gerrit.openafs.org/12875
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/packaging/RedHat/openafs.spec.in