Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490842 - =mail-filter/opendmarc-1.1.3 init script support
Summary: =mail-filter/opendmarc-1.1.3 init script support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords: EBUILD
: 677100 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-09 12:04 UTC by Kim B. Sindalsen
Modified: 2019-03-16 07:58 UTC (History)
4 users (show)

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


Attachments
modified ebuild and init-script (opendmarc.rar,1.70 KB, application/x-rar)
2013-11-09 12:04 UTC, Kim B. Sindalsen
Details
Modified ebuild - installs config-file and init-script (opendmarc-1.1.3.ebuild,1.40 KB, text/plain)
2013-11-09 12:05 UTC, Kim B. Sindalsen
Details
init-script for the modified opendmarc-ebuild (opendmarc.init,1.42 KB, text/plain)
2013-11-09 12:06 UTC, Kim B. Sindalsen
Details
Modified ebuild - installs config-file and init-script (opendmarc-1.1.3.ebuild,1.40 KB, text/plain)
2013-11-09 12:29 UTC, Kim B. Sindalsen
Details
New ebuild - removed RDEPEND for perl-Switch (opendmarc.ebuild.txt,1.65 KB, text/plain)
2014-02-25 16:43 UTC, Kim B. Sindalsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim B. Sindalsen 2013-11-09 12:04:16 UTC
Created attachment 362858 [details]
modified ebuild and init-script

Hi,

I've modified the existing ebuild for mail-filter/opendmarc to create/install config-file and init-script.

Also - works for me on otherwise stable x86 :)

-- 
Kim
Comment 1 Kim B. Sindalsen 2013-11-09 12:05:06 UTC
Created attachment 362860 [details]
Modified ebuild - installs config-file and init-script
Comment 2 Kim B. Sindalsen 2013-11-09 12:06:43 UTC
Created attachment 362862 [details]
init-script for the modified opendmarc-ebuild

files/opendmarc.init
Comment 3 Kim B. Sindalsen 2013-11-09 12:29:53 UTC
Created attachment 362868 [details]
Modified ebuild - installs config-file and init-script
Comment 4 Marko Weber Bürgermeister 2014-02-25 16:12:10 UTC
(In reply to Kim B. Sindalsen from comment #3)
> Created attachment 362868 [details]
> Modified ebuild - installs config-file and init-script

Hello,

i get an error when i try to install opendmarc on my gentoo mailserver:

mailserver ~ # emerge mail-filter/opendmarc                                                

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.                         

Calculating dependencies... done!
[ebuild  N     ] sys-devel/libperl-5.10.1 
[ebuild     UD ] dev-lang/perl-5.12.4-r1 [5.16.3] USE="-build%" 
[ebuild  N     ] virtual/perl-Switch-2.160.0                    
[ebuild  N    ~] mail-filter/opendmarc-1.1.3                    

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:                

dev-lang/perl:0

  (dev-lang/perl-5.12.4-r1::gentoo, ebuild scheduled for merge) pulled in by
    ~dev-lang/perl-5.12.4 required by (virtual/perl-File-Temp-0.220.0-r2::gentoo, installed)
    <dev-lang/perl-5.16[-build] required by (dev-perl/Digest-SHA1-2.130.0::gentoo, installed)
    =dev-lang/perl-5.12* required by (virtual/perl-Switch-2.160.0::gentoo, ebuild scheduled for merge)
    (and 91 more with the same problems)

  (dev-lang/perl-5.16.3::gentoo, installed) pulled in by
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/PlRPC-0.202.0-r2::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/IO-Socket-SSL-1.953.0::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/Net-Daemon-0.480.0-r1::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/HTTP-Negotiate-6.0.1-r1::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/log-dispatch-2.410.0::gentoo, installed)
    =dev-lang/perl-5.16* required by (virtual/perl-digest-base-1.170.0-r1::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/WWW-RobotRules-6.10.0-r1::gentoo, installed)
    (and 7 more with the same problems)

any other had this? and if yes, how did you solved it?

thanks for any tipps n tricks.

marko
Comment 5 Kim B. Sindalsen 2014-02-25 16:43:18 UTC
Created attachment 371238 [details]
New ebuild - removed RDEPEND for perl-Switch
Comment 6 Kim B. Sindalsen 2014-02-25 16:47:14 UTC
(In reply to Marko Weber Bürgermeister from comment #4)
> (In reply to Kim B. Sindalsen from comment #3)
> > Created attachment 362868 [details]
> > Modified ebuild - installs config-file and init-script
> 
> Hello,
> 
> i get an error when i try to install opendmarc on my gentoo mailserver:
> 
> mailserver ~ # emerge mail-filter/opendmarc                                 
> 
> 
>  * IMPORTANT: 9 news items need reading for repository 'gentoo'.
>  * Use eselect news to read news items.                         
> 
> Calculating dependencies... done!
> [ebuild  N     ] sys-devel/libperl-5.10.1 
> [ebuild     UD ] dev-lang/perl-5.12.4-r1 [5.16.3] USE="-build%" 
> [ebuild  N     ] virtual/perl-Switch-2.160.0                    
> [ebuild  N    ~] mail-filter/opendmarc-1.1.3                    
> 
> !!! Multiple package instances within a single package slot have been pulled
> !!! into the dependency graph, resulting in a slot conflict:                
> 
> dev-lang/perl:0
> 
>   (dev-lang/perl-5.12.4-r1::gentoo, ebuild scheduled for merge) pulled in by
>     ~dev-lang/perl-5.12.4 required by
> (virtual/perl-File-Temp-0.220.0-r2::gentoo, installed)
>     <dev-lang/perl-5.16[-build] required by
> (dev-perl/Digest-SHA1-2.130.0::gentoo, installed)
>     =dev-lang/perl-5.12* required by (virtual/perl-Switch-2.160.0::gentoo,
> ebuild scheduled for merge)
>     (and 91 more with the same problems)
> 
>   (dev-lang/perl-5.16.3::gentoo, installed) pulled in by
>     dev-lang/perl:0/5.16=[-build(-)] required by
> (dev-perl/PlRPC-0.202.0-r2::gentoo, installed)
>     dev-lang/perl:0/5.16=[-build(-)] required by
> (dev-perl/IO-Socket-SSL-1.953.0::gentoo, installed)
>     dev-lang/perl:0/5.16=[-build(-)] required by
> (dev-perl/Net-Daemon-0.480.0-r1::gentoo, installed)
>     dev-lang/perl:0/5.16=[-build(-)] required by
> (dev-perl/HTTP-Negotiate-6.0.1-r1::gentoo, installed)
>     dev-lang/perl:0/5.16=[-build(-)] required by
> (dev-perl/log-dispatch-2.410.0::gentoo, installed)
>     =dev-lang/perl-5.16* required by
> (virtual/perl-digest-base-1.170.0-r1::gentoo, installed)
>     dev-lang/perl:0/5.16=[-build(-)] required by
> (dev-perl/WWW-RobotRules-6.10.0-r1::gentoo, installed)
>     (and 7 more with the same problems)
> 
> any other had this? and if yes, how did you solved it?
> 
> thanks for any tipps n tricks.
> 
> marko

Old perl pulled in by perl-Switch (which isn't actually isn't required) dependency.

Uploaded a new ebuild that *works for me*
(on an otherwise stable x86)
Comment 7 Fabian Groffen gentoo-dev 2014-04-17 06:55:27 UTC
(In reply to Kim B. Sindalsen from comment #6)
> Old perl pulled in by perl-Switch (which isn't actually isn't required)
> dependency.
> 
> Uploaded a new ebuild that *works for me*
> (on an otherwise stable x86)

The perl scripts distributed with opendmarc do this:

  use Switch;

e.g. running those without Switch installed would break.  See also bug #496278.
Comment 8 Fabian Groffen gentoo-dev 2014-04-17 07:01:08 UTC
(In reply to Marko Weber Bürgermeister from comment #4)
> i get an error when i try to install opendmarc on my gentoo mailserver:
> 
> mailserver ~ # emerge mail-filter/opendmarc                                 
[snip]
> any other had this? and if yes, how did you solved it?
> 
> thanks for any tipps n tricks.

You can add perl-core/Switch to package.accept_keywords (in /etc/portage) for your arch.  That's what I did.
Comment 9 Fabian Groffen gentoo-dev 2014-04-17 07:57:28 UTC
done in 1.2.0
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2019-02-03 10:52:36 UTC
*** Bug 677100 has been marked as a duplicate of this bug. ***
Comment 11 Nick Wiltshire 2019-03-16 00:27:16 UTC
Has there been a regression on this bug? It's 2019 and no init file is installed with this build. Also, is it time to unmask v1.3.2-r2? It's like 2 years old, and does properly install a config file.
Comment 12 Fabian Groffen gentoo-dev 2019-03-16 07:58:00 UTC
>=1.2 never got stabled.  It's time to go for it.