I downloaded (from Suse FTP site) and recompiled courier-imap from source to add support for MySQL in the authentication modules. Configuration, compiling and installing according the the INSTALL file went with only minor problems EXCEPT the install failed to update the files in /usr/sbin or /etc/courier. Is there some way to assure this gets done without having to manually modify the makefiles? Did I miss something in the recompile process? (I did untar the download file and run configure and make as a non-root user; make install was run as root.) Thank you, Lucky Leavell
The Thursday 2005-03-24 at 12:32 -0500, Lucky Leavell wrote:
Is there some way to assure this gets done without having to manually modify the makefiles? Did I miss something in the recompile process? (I did untar the download file and run configure and make as a non-root user; make install was run as root.)
You are suppossed to edit the spec file and use rpmbuild. Check this email: |Date: Mon, 3 Feb 2003 13:40:47 +0200 |From: Öykü Gençay |Subject: Re: [SLE] How do I recompile a whatever.src.rpm from SuSE? Mmm, not, that one did not get to the list, somehow. But my answer is there (http://lists.suse.com/archive/suse-linux-e/2003-Feb/0318.html ). Ok, I'll copy his recomendation here (and he was right): |Checkout the spec file. You'll see the patches will be applied and conigure |would be run. | |The general procedure is to run |rpm -bb /usr/src/packages/SPECS/balsa.spec | |However if you want to mangle with some of the parameters in the configure |script. You'd better expand sources and try to manually run configure script |apply patches etc. But DO NOT run make at all !!! Leave this to rpm. after |you are satisfied with parameters, edit your SPEC file and add those conigure |parameters. Those would typically be --with-something=/blabla | |If you just want to rebuild the stock RPM, you don't and you are not supposed |to edit SPEC file. | |Hope this helps. Just substitute rpm with rpmbuild, options changed since then. -- Cheers, Carlos Robinson
On Fri, 25 Mar 2005, Carlos E. R. wrote:
You are suppossed to edit the spec file and use rpmbuild. Check this email:
Aha! That seems to be the missing piece of the puzzle! I had another question concerning propagating a binary compiled from source to multiple servers but rpmbuild answers that need as well. One more question: What happens to a package I have built from source (in this case adding mysql support to courier-imap) and installed if SuSE releases an update to the same package? Dare I allow YoU to install such an update or should I download the updated source and roll my own binary again? Thank you, Lucky
The Thursday 2005-03-24 at 20:37 -0500, Lucky Leavell wrote:
One more question: What happens to a package I have built from source (in this case adding mysql support to courier-imap) and installed if SuSE releases an update to the same package? Dare I allow YoU to install such an update or should I download the updated source and roll my own binary again?
You have to roll your own again, of course: YOU will install security patches of almost the same version, with the same settings. -- Cheers, Carlos Robinson
You are suppossed to edit the spec file and use rpmbuild. Check this email:
|The general procedure is to run |rpm -bb /usr/src/packages/SPECS/balsa.spec |
OK, I tried this and it made it through the step where it checks for unpackaged files: /usr/lib/rpm/check-files /var/tmp/courier-imap-3.0.7-build which gave the following errors: Installed (but unpackaged) file(s) found: /etc/courier/authmysqlrc.dist /etc/courier/authpgsqlrc.dist /usr/lib/courier-imap/authlib/authdaemond.mysql /usr/lib/courier-imap/authlib/authdaemond.pgsql These were generated by the rpmbuild process; I do not understand what it is complaining about or what to do about it. (The mysql and pgsql stuff was added by the courier-imap build process after detecting presence of the /usr/lib/mysql and /usr/lib/pgsql directories which is OK, I think - I DO want mysql support.) What should I do next? Thank you, Lucky
The Thursday 2005-03-24 at 21:34 -0500, Lucky Leavell wrote:
OK, I tried this and it made it through the step where it checks for unpackaged files:
/usr/lib/rpm/check-files /var/tmp/courier-imap-3.0.7-build
which gave the following errors:
Installed (but unpackaged) file(s) found: /etc/courier/authmysqlrc.dist /etc/courier/authpgsqlrc.dist /usr/lib/courier-imap/authlib/authdaemond.mysql /usr/lib/courier-imap/authlib/authdaemond.pgsql
These were generated by the rpmbuild process; I do not understand what it is complaining about or what to do about it. (The mysql and pgsql stuff was added by the courier-imap build process after detecting presence of the /usr/lib/mysql and /usr/lib/pgsql directories which is OK, I think - I DO want mysql support.)
I think - I'm not a developer, mind - that as your settings makes the compilation process to generate more files, you have to tell the spec file about those extra files. Have a look at these documents - don't ask me about them ;-) : http://www.suse.de/~mmj/Package-Conventions/SuSE-Package-Conventions.html http://www.rpm.org/ And this sugestion: Date: Tue, 01 Apr 2003 23:34:56 +0100 From: Philipp Thomas Subject: Re: [SLE] Re: working with source rpms [WAS [Is there a howto for building a source rpm?]] ... For building SuSE rpms I'd suggest to give the build script a try. The package build.rpm contains a script that builds a chroot environment using the CDs/DVDs. -- Cheers, Carlos Robinson
Somehow, I messed something up, and I now get the following message from jpilot: Backup: Fetching 'DatebookDB'... Failed, unable to back up database This occurs after the sync completes. I would prefer not to perform a hard reset. I did that yesterday and restored from an older backup. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
* Jerry Feldman <gaf@blu.org> [03-25-05 10:11]:
Somehow, I messed something up, and I now get the following message from jpilot: Backup: Fetching 'DatebookDB'... Failed, unable to back up database
This occurs after the sync completes.
I would prefer not to perform a hard reset. I did that yesterday and restored from an older backup.
Jerry, how did this message get into the thread: Re: [SLE] Compiling Courier-imap Problems -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
participants (4)
-
Carlos E. R.
-
Jerry Feldman
-
Lucky Leavell
-
Patrick Shanahan