Why does rpmbuild create an empty debug rpm file of a custom rpm containing scripts?

Solution Unverified - Updated -


  • The rpmbuild is creating a blank debuginfo rpm of a custom rpm as follows.
[root@localhost x86_64]# rpm -qp test-debuginfo-12.1.2-1.el6.x86_64.rpm 
[root@localhost x86_64]# rpm -qlp test-debuginfo-12.1.2-1.el6.x86_64.rpm 
(contains no files)
  • For other rpms, it's creating debuginfo populated with files.
[root@localhost x86_64]# rpm -qlp tree-debuginfo-1.5.3-3.el6.x86_64.rpm 


  • Red Hat Enterprise Linux 6
  • rpmbuild

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content