LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2009, 10:36 AM   #1
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Rep: Reputation: 15
Help installing a patch to rpm'ed software (postfix-2.5.5-1.fc8.i386)


Hi!

I want to install a patch on postfix so that it can handle mail quotas (the patch is postfix-2.5.5-vda-ng.patch). The README file directs me to install that patch while i'm in postfix directory (expecting that I instaklled postfix by tarballs, i.e thru directory such as /usr/share/postfix-2.5.5/...). However I installed postfix by rpm and the directories for postyfix are /etc/postfic and /usr/libexec/postfix. As the patch searches for which file to replace, I don't which file should be affected by that patch, is is main.cf or whuch file.

I tried to run the patch while I'm on /etc/postfix/ and specified main.cf as the file to patch but it gave errors:


############
[root@libismail postfix]# patch -p0 < postfix-2.5.5-vda-ng.patch
patching file postfix-2.5.5/README_FILES/VDA_README
can't find file to patch at input line 105
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr postfix-2.5.5.orig/src/global/mail_params.h postfix-2.5.5/src/global/mail_params.h
|--- postfix-2.5.5.orig/src/global/mail_params.h 2008-07-27 21:10:27.000000000 +0200
|+++ postfix-2.5.5/src/global/mail_params.h 2008-08-25 11:57:48.813792568 +0200
--------------------------
File to patch:
############
when I specified main.cf as a file to patch it gave errors
File to patch: main.cf
patching file main.cf
Hunk #1 FAILED at 2171.
1 out of 1 hunk FAILED -- saving rejects to file main.cf.rej
can't find file to patch at input line 163
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr postfix-2.5.5.orig/src/util/file_limit.c postfix-2.5.5/src/util/file_limit.c
|--- postfix-2.5.5.orig/src/util/file_limit.c 2003-10-22 20:48:36.000000000 +0200
|+++ postfix-2.5.5/src/util/file_limit.c 2008-08-25 11:57:48.813792568 +0200
--------------------------
File to patch:
###############
Any help please?

Cheers,
Stefano
 
Old 06-11-2009, 01:52 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Get "postfix-2.5.5-1.fc8.src.rpm" and and extract the files to your RPM buildroot.
Get http://vda.sourceforge.net/VDA/postf...da-ng.patch.gz and gunzip into ~/redhat/SOURCES/
If you did it all by the book then postfix.spec resides in ~/redhat/SPECS/.
Open it with any text editor and where it reads "Patch10: postfix-2.4.5-open_define.patch" add a line below reading "Patch11: postfix-2.5.5-vda-ng.patch", and where it reads "%patch10 -p1 -b .open_define" add a line below "%patch11 -p1", save .spec file.
Now build as usual with 'rpmbuild -ba ~/redhat/SPECS/postfix.spec'.
Should patch and build w/o probs.
 
  


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
error : Public key for perl-Socket6-0.20-1.fc8.rf.i386.rpm is not installed ankushkool Fedora 1 02-20-2009 03:53 AM
patch kernel 2.6.26.3-14.fc8 katrok Linux - Kernel 2 10-10-2008 09:46 AM
directfb on FC8 on i386 ilkras Linux - Desktop 1 10-07-2008 02:05 AM
Is there any software for FC8 to show what is being downloaded? mrfixit1951 Linux - Software 6 07-23-2008 01:34 PM
installing i386 software on x86_64 arch--easy way? silex Linux - Software 0 09-09-2004 01:02 PM

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

All times are GMT -5. The time now is 08:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration