The rpmbuild command returns "error: Two files on one line: /etc/rc.d/init.d" in Red Hat Enterprise Linux 5, when I defined %define _initddir "%{_initrddir}" in spec file.

Solution Unverified - Updated -

Issue

  • I defined the following macro in my spec file.
  %define _initddir "%{_initrddir}"
  • I could use the macro in %build and %install, but when I used it in %files, I got the following error.
"error: Two files on one line: /etc/rc.d/init.d"
  • I want to know the reason why the error is output.

Environment

Red Hat Enterprise Linux 5

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