LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-11-2003, 05:03 AM   #1
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
rpm spec files


When i build my rpm i don't get any errors, but when i install it i get the following:

rpm -i --nodeps ../RPMS/i386/hp-managed-0.3-1.i386.rpm
file /etc/hosts.allow from install of hp-managed-0.3-1 conflicts with file from
package setup-2.5.12-1
file /etc/sysctl.conf from install of hp-managed-0.3-1 conflicts with file from
package initscripts-6.67-1
file /etc/my.cnf from install of hp-managed-0.3-1 conflicts with file from package mysql-3.23.56-1.73

Is there an option i can use in my spec file to override this?
 
Old 06-11-2003, 05:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
don't make it overwrite /etc/hosts.allow and other system files which should never be overwritten by a normal package
 
Old 06-11-2003, 05:50 AM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Original Poster
Rep: Reputation: 30
Thats why i moved those files to a seperate directory now. But now i get the following errors when i run rpmbuild -ba hp-managed.spec

+ exit 0
Processing files: hp-managed-0.3-1
error: File not found: /var/tmp/hp-managed/usr/local/netland/etc/firewall
error: File not found: /var/tmp/hp-managed/usr/local/netland/etc/ports.allow
error: File not found: /var/tmp/hp-managed/usr/local/netland/etc/hosts.allow
error: File not found: /var/tmp/hp-managed/usr/local/netland/etc/sysctl.conf
error: File not found: /var/tmp/hp-managed/usr/local/netland/etc/resolv.conf
error: File not found: /var/tmp/hp-managed/usr/local/netland/etc/my.cnf
PreReq: /bin/sh
Requires(interp): /bin/sh
Requires(post): /bin/sh


RPM build errors:
File not found: /var/tmp/hp-managed/usr/local/netland/etc/firewall
File not found: /var/tmp/hp-managed/usr/local/netland/etc/ports.allow
File not found: /var/tmp/hp-managed/usr/local/netland/etc/hosts.allow
File not found: /var/tmp/hp-managed/usr/local/netland/etc/sysctl.conf
File not found: /var/tmp/hp-managed/usr/local/netland/etc/resolv.conf
File not found: /var/tmp/hp-managed/usr/local/netland/etc/my.cnf
 
Old 06-11-2003, 05:53 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
udate the spec file then. There is no way you can allow this pacakge to overwrite those files, it has no logic right or reason to be able to do that. you want it to overwrite the mysql config file instantly...? that's nuts...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM Spec file creation, %files section question davidas Linux - Software 1 09-13-2007 03:26 AM
questions on writing own rpm .spec file adrianmak Linux - Software 0 08-18-2005 07:03 AM
RPM spec file install rule how its evaluated? cranium2004 Programming 2 03-11-2005 03:03 AM
%file attribute for RPM SPEC files Brian of Gep Linux - Software 3 06-18-2004 05:51 AM
%file attribute for RPM SPEC files Brian of Gep Fedora 0 06-15-2004 08:12 PM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration