Rpmbuild solution to Installed (but unpackaged) file (s) found

Source: Internet
Author: User

After encountering this problem, I searched for it and integrated your suggestions. If method 1 is used, no error is reported, but the availability of RPM is not confirmed.


1,

Find/usr/lib/rpm/macros
% __Check_files

/Usr/lib/rpm/check-files % {buildroot} Comment out
2. There is a definition in the/usr/lib/rpm/macros file:
% _ Unpackaged_files_terminate_build 1, change 1 to 0 only warning
3. In the spec file, find % files (there are many % {_ bindir}, % {_ libdir}, and % {_ datadir ), add the content prompted above according to the gourd image below.
/Usr/bin/xxx =>%{_ bindir}/xxx
/Usr/lib/xxx =>%{_ libdir}/xxx
/Usr/include/xxx =>%{_ includedir}/xxx
/Usr/share/xxx =>%{_ datadir}
/Xxx/usr/man/xxx = >%{_ mandir}/xxx

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.