On Thu, Nov 13, 2014 at 03:59:19PM +0100, Emmanuel Vadot wrote:
> 
>  Hello list,
> 
>  Currently the build system for the extras (table, filters etc ...) is not 
> really intelligent.
>  It does not check is the required libs or interpreters in present on the 
> machine and doesn't even use the correct path for the libs.
>  This is a problem for user and packagers since now it's not possible to 
> easily provide an OpenSMTPD package with mysql for example.
> 
>  After talking to gilles@ in private on IRC we tought on possibly make the 
> following changes :
> 
>  1) Each extras will provides it's own configure script
>  2) Each configure scripts will correctly check its dependancies
>  3) All extras will be shipped in a single archive
>  4) Maybe have just one branch in the git since OpenBSD doesn't ship with 
> smtpd extras.
>
>  For 1, it will simply keep the configure as simple as it need to be
> 
>  For 2, well ...
> 
>  For 3, I know that the FreeBSD ports infrastructures can handle this 
> correctly (having multiple ports that depends on one distfiles, the Qt ports 
> for plugins does that). Is there some ports/packages infrastructure that 
> can't ?
>

To make it more clear, right now people tend to clone / fetch the entire
extras just to grab that one bit they need.

The idea is to make each extra individual so that while they are all in
the same repository, one can package a specific extra for his system so
ultimately you can:  pkg_add opensmtpd-filter-dkim, ...


 
>  For 4, I think that for now smtpd uses ${PREFIX}/libexec/opensmtpd/ to look 
> at custom tables/filters which will fail on OpenBSD if the user use the smtpd 
> in base (PREFIX=/usr) and an extra via the packages (PREFIX=/usr/local IIRC).
> 

At the moment, extras are not correctly integrated, it took us quite some
effort to split them out of the smtpd tree but we have not yet worked on
how to "easily" plug them.

What I suggested with regard to the "just one branch" idea, is the
following:

smtpd is developed on OpenBSD and "fixed" for portability using the
compat glue, so we need two branches to avoid the compat glue ending
in the openbsd tree where it's not needed.

-extras are different: they are developped on different systems by
non-openbsd developers, they can have any dependencies and are supposed
to be the same code on OpenBSD and other systems are they communicate
with smtpd through a common API.

therefore my idea was to drop the master/portable difference for extras
and have a single branch for both.


>  Also currently the libasr doesn't provide an .pc for pkg-config and 
> OpenSMTPD doesn't check in configure if libasr is available,
>  it simply fail when building.
>  Is it possible to provide a .pc and maybe tag a stable release for libasr so 
> packagers can start packaging in the different OS.
>

talked with eric, he said he'll have a look at it :-)


>  Let the discution begins.
> 

yay !


-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to