How do I recompile a whatever.src.rpm from SuSE?
I want to have a go at recompiling balsa-1.2.4-31.src.rpm (suse 8.1), which is broken. However, I'm confused about how to reconstruct the original source tree, as used by suse to create the binary. The source rpm contains several files: balsa-1.2.4.tar.bz2 balsa-1.2.4-ac.patch balsa-1.2.4-gobcheck.patch balsa-1.2.4-ia64.patch These are installed to "/usr/src/packages/SOURCES". There is also a "balsa.spec", installed in "/usr/src/packages/SPECS". What is the general procedure? I guess I should expand first "balsa-1.2.4.tar.bz2" somewhere (anywhere, I guess), and then apply the three patches, in any order. Am I correct? Is there a method to automate that? Maybe I'll try the sources from balsa.gnome.org... if there was a bug, they'll have it corrected (they have version 1.4.2, and 2.0.6 for gnome_2). -- Cheers, Carlos Robinson
On 2003.02.03 12:31 Carlos E. R. wrote:
I want to have a go at recompiling balsa-1.2.4-31.src.rpm (suse 8.1), which is broken. However, I'm confused about how to reconstruct the original source tree, as used by suse to create the binary.
The source rpm contains several files:
balsa-1.2.4.tar.bz2 balsa-1.2.4-ac.patch balsa-1.2.4-gobcheck.patch balsa-1.2.4-ia64.patch
These are installed to "/usr/src/packages/SOURCES". There is also a "balsa.spec", installed in "/usr/src/packages/SPECS". What is the general procedure? I guess I should expand first "balsa-1.2.4.tar.bz2" somewhere (anywhere, I guess), and then apply the three patches, in any order. Am I correct? Is there a method to automate that?
rpm -bp balsa.spec
The 03.02.03 at 12:34, Anders Johansson wrote:
correct? Is there a method to automate that?
rpm -bp balsa.spec
Perfect! Thankyou.
From the man page:
BUILD OPTIONS
The general form of an rpm build command is
rpm -[b|t]O [build-options]
The 03.02.03 at 12:31, I wrote:
I want to have a go at recompiling balsa-1.2.4-31.src.rpm (suse 8.1), which is broken.
The problem with balsa - it can not send mails - is that it requires library libESMTP, which is not included by SuSE. Thus, balsa does not know how to send mail, I think it tries to use sendmail directly: and this fails as SuSe 8.1 has postfix. It's my guess. -- Cheers, Carlos Robinson
* Carlos E. R. (robin1.listas@tiscali.es) [030203 16:04]:
Thus, balsa does not know how to send mail, I think it tries to use sendmail directly: and this fails as SuSe 8.1 has postfix.
It probably uses /usr/lib/sendmail to send mail which postfix and pretty much every other mta has. -- -ckm
On 2003.02.04 01:13 Christopher Mahmood wrote:
It probably uses /usr/lib/sendmail to send mail which postfix and pretty much every other mta has.
Exactly, that is what I think: but that fails, there must be some difference between the "real" sendmail and postfix's sendmail. But, balsa can also talk to an smtp server by default: --with-esmtp Enable libESMTP default=yes This has been explicitly disabled on the distribution, as shown in "/usr/src/packages/SPECS/balsa.spec", with "--with-esmtp=no", thus rendering balsa useless if postfix is installed (or if the user wants to use a remote server). This switch requires the library "libesmtp", which is not included on the dvd. After compiling that library and balsa, I got it working: I'm writing this with balsa :-) -- Cheers, Carlos Robinson
participants (3)
-
Anders Johansson
-
Carlos E. R.
-
Christopher Mahmood