LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2007, 09:20 AM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
Red face Editing the file ~/.rpmrc ?


Does any one know how to edit file ~/rpmrc (It is not present by default). This file is checked by rpmbuild command while making the rpm along with files /usr/lib/rpm/rpmrc and /etc/rpmrc.

Actually I want to unset the variable __arch_install_post. It's entry is made only in ~/.rpmrc

So what should I insert? Take for EG:

__arch_install_post {%nil}

or may be:

__arch_install_post /bin/true

Any ideas?????
 
Old 11-05-2007, 10:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
AFAIK the line should be in ~/.rpmmacros instead. Some distros set it as:
Code:
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
so if it's there:
Code:
%__arch_install_post /bin/true
should work for your purpose, but I wonder if it's the "right" place since forgetting it would be easy. Could you set something like
Code:
%global __arch_install_post /bin/true
in your .spec file instead? (I wonder if that works).

BTW, you're not building RPMs as root account user, aren't you?

Last edited by unSpawn; 11-05-2007 at 10:12 AM.
 
  


Reply

Tags
rpm, rpmbuild



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
? on editing a file steve_f60 Linux - Software 4 09-20-2005 05:22 PM
Editing boot file???? partyk1d24 Linux - General 2 09-08-2005 10:58 PM
file editing newdummy Linux - Newbie 5 03-18-2005 07:16 PM
File editing digger Linux - Newbie 3 01-28-2004 03:42 PM
Help Editing Sudoers File Rubicone Linux - Newbie 2 05-03-2002 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration