Search code examples
rpmrpmbuildrpm-spec

rpmbuild error: Installed (but unpackaged) file(s) found


I am building a custom rpm to install apache, among other things. When i try and build i get the above error, and then it lists /httpd-2.2.17/ and all of its subfiles.

As far as i know, this is the build directory so it shouldn't be packaged. To try and fix this i added rm -rf /httpd-2.2.17 but that doesn't seem to help.

I don't want to add it to the %files section because they shouldn't be installed on the system when we are done.

Does anybody know what i am doing wrong?

Of note is that apache is the second source file, the first one is a tar file that doesn't get compiled


Solution

  • That sounds like it should not be there..I am not familiar with the Apache build process, but I would check the build flags (what is passed to configure or similar, maybe a prefix has gone awry?).

    Or, try adding an:

    %exclude %{buildroot}/.../httpd-2.2.7
    

    To the files section as a work around.

    And finally, and you probably already did this, check what other RPM-based distributions do, I imagine Apache is not a trivial package..