Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-11-2009, 09:36 AM   #1
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)


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 or whuch file.

I tried to run the patch while I'm on /etc/postfix/ and specified 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 as a file to patch it gave errors
File to patch:
patching file
Hunk #1 FAILED at 2171.
1 out of 1 hunk FAILED -- saving rejects to file
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?

Old 06-11-2009, 12:52 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Get "postfix-2.5.5-1.fc8.src.rpm" and and extract the files to your RPM buildroot.
Get 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.


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 02:53 AM
patch kernel katrok Linux - Kernel 2 10-10-2008 08:46 AM
directfb on FC8 on i386 ilkras Linux - Desktop 1 10-07-2008 01:05 AM
Is there any software for FC8 to show what is being downloaded? mrfixit1951 Linux - Software 6 07-23-2008 12:34 PM
installing i386 software on x86_64 arch--easy way? silex Linux - Software 0 09-09-2004 12:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:58 PM.

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