RE: RPM query.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason,

   First, please don't top post. We don't care what Outlook wants.... <g>

Jason Morgan wrote:
>> From: m.roth@xxxxxxxxx
>> Jason Morgan wrote:
>> >
>> > I have an RPM spec file that I have taken from a RHEL Summit PDF.  On
>> > RHEL 5 this SPEC file builds ok. However when I try to build this RPM on
>> > RHEL 6 the build fails. Was there a change between RHEL5 & RHEL6 in the
>> > RPM build environment. I have attached my SPEC file and rpmbuild output
>> > below. Would appreciate if anyone can see what is missing ?
>> <snip>
>> > RPM build errors:
>> >     File not found:
>> > /root/rpmbuild/BUILDROOT/config-1-1.x86_64/etc/ntp.conf
>>
>> Seems pretty clear to me: you're missing this file, and I'd assume that
>> whatever you're building requires ntp.conf.
>>
> This SPEC file builds ok on RHEL5 and creates the rpm but fails to build
> on RHEL6. Sourc TAR is exactly the same on both server.

That may be the case, but it's possible that one of your dependencies
that's *not* your in-house stuff now has that as a requirement.

Interesting. I was looking to see if there was an ntp-devel, and ran
across this presentation:
<http://www.redhat.com/promo/summit/2010/presentations/summit/opensource-for-it-leaders/thurs/pwaterma-2-rpm/RPM-ifying-System-Configurations.pdf>.
On slide 40, he describes the .tgz going into an rpm:
Now we create a .tgz file containing the files going into
our RPM. Its contents look like this:
% tar tzf /usr/src/redhat/SOURCES/config-1.tgz
config-1/
config-1/etc/
config-1/etc/ntp.conf

You're sure that it's not in your .tgz?

      mark


       mark

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux