Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195334 - mail-filter/dkim-milter-2.3.0-r1 allows use of libtre but does not enable the feature which use it
Summary: mail-filter/dkim-milter-2.3.0-r1 allows use of libtre but does not enable the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Alin Năstac (RETIRED)
URL: http://sourceforge.net/tracker/?group...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 08:34 UTC by Graham Murray
Modified: 2007-10-22 04:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dkim-milter-2.3.0-r1.ebuild (dkim-milter-2.3.0-r1.ebuild,2.50 KB, text/plain)
2007-10-10 10:01 UTC, Daniel Black (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2007-10-10 08:34:47 UTC
The approx-regex USE flag sets dev-libs/tre as a dependency but this library is only used in dkim-milter if the 'DIFFHEADERS' feature is enabled in site.config.m4. This feature is not enabled in the ebuild.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2007-10-10 09:14:11 UTC
ok working on this.

Alin - parallel make problems?

I'll add you to the maintainer and remove some old version.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2007-10-10 09:36:21 UTC
Yeah, I've spotted "job control not available" through compilation output.

Please allow me to fix this. I'm already working on -r2 which will have:
 - a default /etc/mail/dkim-filter/dkim-filter.conf file (conf.d will no longer be used, -P and -x parameters being forced by init script)
 - keys will be created in pkg_config()

Do you guys have a better name for approx-regex useflag?
Comment 3 Daniel Black (RETIRED) gentoo-dev 2007-10-10 09:58:13 UTC
(In reply to comment #2)
> Yeah, I've spotted "job control not available" through compilation output.
> 
> Please allow me to fix this.

Fixed the original problem and a few others I found. Cleaned it up a bit.

> I'm already working on -r2 which will have:
>  - a default /etc/mail/dkim-filter/dkim-filter.conf file (conf.d will no longer
> be used, -P and -x parameters being forced by init script)
>  - keys will be created in pkg_config()
> 
Sounds really good.

> Do you guys have a better name for approx-regex useflag?
> 
DIFFHEADERS  ??/

committed as -r1 so you can incorporate your changes.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2007-10-10 10:01:10 UTC
Created attachment 133059 [details]
dkim-milter-2.3.0-r1.ebuild

> committed as -r1 so you can incorporate your changes.
ok - i lied - as attached.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2007-10-10 10:31:59 UTC
patches added upstream too
Comment 6 Daniel Black (RETIRED) gentoo-dev 2007-10-10 11:15:45 UTC
dodoc ./dkim-filter/dkim-filter.conf.sample
Comment 7 Alin Năstac (RETIRED) gentoo-dev 2007-10-10 16:04:30 UTC
Fixed in -r2 by applying a patch. My favorite way...;)
As of now, all previous revisions have been removed from the tree.

Daniel, if you have MAKEOPTS=-j2 and remove those -j1 from emake command line, you will see several warnings with "use -j1".

The previous revision installed man pages full of funny escape sequences, so I figured I have to install the man pages myself. No need for MANROOT and stuff...

I don't think they will ever going to change their Linux.m4. Is like this for as much as I can remember. Anyway, no biggie, we can use emake foo=bar for that, like is done in sendmail ebuild.

The new version do not use a conf.d file anymore. Instead it has a healty (read patched) dkim-filter.conf.

Cryptographic keys are now created pkg_config. This function also give you information on how you should configure your DNS and MTA.

That's all folks! I don't have anything more to offer in this ebuild. Well mostly all... Support for DomainKeys verification would be a nice thing to have (did you knew yahoo still use DomainKeys?!?).
Comment 8 Daniel Black (RETIRED) gentoo-dev 2007-10-10 19:45:14 UTC
(In reply to comment #7)
> Fixed in -r2 by applying a patch. My favorite way...;)

cool.

> As of now, all previous revisions have been removed from the tree.

yeh it was getting a bit ugly.

> Daniel, if you have MAKEOPTS=-j2 and remove those -j1 from emake command line,
> you will see several warnings with "use -j1".

yeh - i just assumed it was because of my other distcc machine being off. opps.

> 
> The previous revision installed man pages full of funny escape sequences, so I
> figured I have to install the man pages myself. No need for MANROOT and
> stuff...

ah - I though i saw a m4 option for that. could be wrong.

> I don't think they will ever going to change their Linux.m4. Is like this for
> as much as I can remember. Anyway, no biggie, we can use emake foo=bar for
> that, like is done in sendmail ebuild.

They said they'd pass it on. I was going to suggest autoconf but that would just be like asking them to change religion.

> The new version do not use a conf.d file anymore. Instead it has a healty (read
> patched) dkim-filter.conf.

Yay.

> Cryptographic keys are now created pkg_config. This function also give you
> information on how you should configure your DNS and MTA.

Looks pretty.

> That's all folks! I don't have anything more to offer in this ebuild. Well
> mostly all... Support for DomainKeys verification would be a nice thing to have
> (did you knew yahoo still use DomainKeys?!?).
> 

and gmail, and everyone who sends through gmail. 

Comment 9 Alin Năstac (RETIRED) gentoo-dev 2007-10-10 20:08:40 UTC
(In reply to comment #8)
> > The previous revision installed man pages full of funny escape sequences, so I
> > figured I have to install the man pages myself. No need for MANROOT and
> > stuff...
> 
> ah - I though i saw a m4 option for that. could be wrong.

yes, there is a option to disable man reformat and I've already used it ;)
just that you need to install man pages by hand after enabling NO_MAN_BUILD

> They said they'd pass it on. I was going to suggest autoconf but that would
> just be like asking them to change religion.

prolly sendmail is older than autotools :D

> > That's all folks! I don't have anything more to offer in this ebuild. Well
> > mostly all... Support for DomainKeys verification would be a nice thing to have
> > (did you knew yahoo still use DomainKeys?!?).
> > 
> 
> and gmail, and everyone who sends through gmail. 

gmail supports DK and DKIM, so it isn't an issue to verify their email. 
yahoo on the other hand supports only DK. 
guess I will have to mess with dk-milter after all (dkim-milter needs libdk for verifying domains that only support DK).
Comment 10 Daniel Black (RETIRED) gentoo-dev 2007-10-11 01:41:35 UTC
> 
> gmail supports DK and DKIM, so it isn't an issue to verify their email. 
> yahoo on the other hand supports only DK. 
> guess I will have to mess with dk-milter after all (dkim-milter needs libdk for
> verifying domains that only support DK).

I got part of the way until i ran out of time and dk-milter was old didn't install the libs.

in site.config.m4 below
define(`bld_VERIFY_DOMAINKEYS', `true')
APPENDDEF(`bld_dkim_filter_LIB', `-ldk ')

dkim-filter/Makefile.m4
-bldPUSH_SMLIB(`dk')


other thoughts
pkg_postinst - einfo -> elog
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2007-10-11 05:32:13 UTC
I will add verify-dk useflag which will add dk-milter to DEPENDs.

Since not many will want to clutter their etc with useless files, I will also add a libdk-only useflag to dk-milter. Thoughts?
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2007-10-11 05:38:14 UTC
An alternative way would be to add dk-milter tarball to SRC_URI and compile libdk within dkim-milter.
Comment 13 Daniel Black (RETIRED) gentoo-dev 2007-10-11 12:23:03 UTC
(In reply to comment #11)
> I will add verify-dk useflag which will add dk-milter to DEPENDs.
> 
Sounds good.

> Since not many will want to clutter their etc with useless files, I will also
> add a libdk-only useflag to dk-milter. Thoughts?

probably a bit excessive. As its a static lib it will only show up as a DEPEND. A decent clean will remove it anyway. Its only a small library and a header file anyway.

Come to think of it - maybe we should install the libdkim.a and headers for those that want to use it? 

(In reply to comment #12)
> An alternative way would be to add dk-milter tarball to SRC_URI and compile
> libdk within dkim-milter.
This may simplify the make system that wants to look in ../libdk. Happy either way.

PS - Graham - sorry for the bug spam.

Noted that although gmail uses dkim signatures they don't define a Sender Signing Policy in _ssp.domainkey.gmail.com. Hmm interesting. Its all testing anyway. Not sure who uses it in non-testing mode.
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2007-10-11 13:38:11 UTC
I've looked over the dkim-milter sources and discovered I'm not insterested by this option. All it does is generate logs about DK signature status. 
Whoever want to filter mail that doesn't verify with DK policies declared by the sender's domain will have to install separate software for that (e.g. dk-milter).

I've made a s/einfo/elog/ in pkg_postinst's body.
Comment 15 Daniel Black (RETIRED) gentoo-dev 2007-10-22 04:09:28 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > > The previous revision installed man pages full of funny escape sequences, so I
> > > figured I have to install the man pages myself. No need for MANROOT and
> > > stuff...
> > 
> > ah - I though i saw a m4 option for that. could be wrong.
> 
> yes, there is a option to disable man reformat and I've already used it ;)
> just that you need to install man pages by hand after enabling NO_MAN_BUILD
> 

option to disable the build and keep the install. I'm just noting it here so I may remember it for next release.

define(`confNO_MAN_BUILD',`')

Next release will also include a umask config option to set permissions on the socket correctly.