[SOLVED] [PATCH] Re: Kolab2 Postfix build does not recognize NetBSD 3 (improve postfix.patch)

Raphael Langerhorst raphael.langerhorst at kdemail.net
Wed Jan 4 17:04:53 CET 2006


Am Mittwoch 04 Januar 2006 12:01 schrieb Bernhard Reiter:
> Am Dienstag, 3. Januar 2006 21:58 schrieb Raphael Langerhorst:
> > Am Dienstag 03 Januar 2006 17:52 schrieb Bernhard Reiter:
> > > thanks for the report.
> > > Can you open an issue for this and add a patch for the Kolab Server?
> > > I do not have NetBSD available so I cannot test this,
> > > but if the patch is well commented we can apply it for future versions.
> >
> > actually, I'd like to, but I don't know how to deal with source rpms, how
> > to unpack them, repackage, install them step-by-step (unpack, patch,
> > build, install). I need to know this so I can modify/improve the postfix
> > patch myself and send it to you.
> >
> > Please (anyone) tell me how I can step-by-step unpack, patch, build and
> > install a source rpm - instructions that are kolab2 specific are
> > prefered.
>
> The Kolab Server packages released by the Kolab Projekt so far
> are based on www.OpenPKG.org, they have documentation,
> which might include how to handle their rpms.
>
> In general in a Kolab Server installation you have
> /kolab/bin/openpkg rpm
> /kolab/bin/openpkg rpmbuild
> /kolab/bin/openpkg man rpm
>
> To install a source package /kolab/bin/openpkg rpm --install xxxxxx.src.rpm
>  /kolab/bin/openpkg rpmbuild -bX  spec.file
> on the unpacked sources, is your friend.
> (With X having different values, see the manpage.)
> There is a lot of RPM related information around.
>
> Bernhard

Hello,

these instructions were sufficient, thanks a lot.

I have now prepared a working patch that recognizes (additionally) NetBSD 3 
and NetBSD 4 (note: netbsd 4 is not yet available, but in development, it's 
like detecting FreeBSD 7 which is also not available yet).

Anyway, here we go:

Attached are two patches, one for Kolab 2.0.1 and the other for the December 
snapshot of Kolab 2.1 the instructions apply for both patches alike.

The postfix-2.2.3-2.4.1_kolab.src.rpm includes an existing patch called 
"postfix.patch". The attached patch REPLACES this patch. To build a patched 
postifx source rpm:

$ /kolab/bin/openpkg rpm --install postfix-2.2.3-2.4.1_kolab.src.rpm
$ cd /kolab/RPM/SRC/postfix
$ cp /full/path/to/postfix.patch__kolab2.0.1 ./postfix.patch
$ /kolab/bin/openpkg rpmbuild -bs postfix.spec

The resulting source rpm with the new patch is written to:
/kolab/RPM/PKG/postfix-2.2.3-2.4.1_kolab.src.rpm

You can grab it from there and reinstall it into an existing kolab2 
installation with:
$ /kolab/bin/openpkg rpm --install postfix-2.2.3-2.4.1_kolab.src.rpm


Both patches are tested to work, at least they "install" on a NetBSD 3.0 
installation. From the changes I made though there is hardly any chance to 
"break" functionality.


Please include this patch into any further release (2.0.2 and/or 2.1.0). 
Please confirm.


Thank you very much,
Raphael


PS: I still have issues installing the cyrus imapd package of Kolab 2.0.1 with 
the options set by obmtool.conf, it does install without any options though, 
but that's not ... "supported" by the kolab project (and doesn't work on 
first glance). That's a note so you do not expect Kolab 2.0.1 to build 
perfectly fine on NetBSD 3 _just_ with this patch. For a BSD based production 
system I still heavily recommend FreeBSD 5.4 (or 6, but 6.0 I haven't tested)


PPS: I did find out about OpenBSD 3.8: the OpenPKG base system does not 
correctly bootstrap, and yes I DID send the logfile to the OpenPKG people, so 
I hope they fix it... soon enough.

-- 
Raphael Langerhorst
http://raphael.g-system.at/blog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postfix.patch__kolab2.0.1
Type: text/x-diff
Size: 3211 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20060104/0d7ddb65/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postfix.patch__kolab21dec_full_snapshot
Type: text/x-diff
Size: 3271 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20060104/0d7ddb65/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20060104/0d7ddb65/attachment.sig>


More information about the users mailing list