开发者

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

开发者 https://www.devze.com 2023-02-11 06:25 出处:网络
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.

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 w开发者_JAVA百科e 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


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..


Instead of just an 'rm -rf /httpd-2.2.7', try 'rm -rf $RPM_BUILD_ROOT/httpd-2.2.7' near the end of the %install section of the spec file.


https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s07.html

You can disable the Fascist build and it will just give you a package regardless of your extra files. Depends on how concerned you are about a clean package build.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号