Bug 146376 - [PATCH] www/apache: fails to start with mod_auth_digest after last commit
[PATCH] www/apache: fails to start with mod_auth_digest after last commit
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: apache
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-07 15:30 UTC by Guido Falsi
Modified: 2010-05-07 19:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.24 KB, patch)
2010-05-07 15:30 UTC, Guido Falsi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Falsi freebsd_committer 2010-05-07 15:30:04 UTC
After this morning's commits apache was dieing on startup with the following errors in it's log:

[Fri May 07 12:53:55 2010] [notice] Digest: generating secret for digest authentication ...
[Fri May 07 12:53:55 2010] [crit] (2)No such file or directory: Digest: error generating secret: No such file or directory
Configuration Failed

due to a failed connect() from the apr port.

The problem appears also when using included apr.

This affect only people using mod_auth_digest.

After some search I found out that apr enables and prefers egd when any configure options references it (so both --with-egd and --without-egd DO enable it), so ignoring /dev/random.

I noticed also that the apr code conditionally includes egd support XOR /dev/random support (never both).

I assume it is, then, safe to remove any reference to egd in our ports.

AFAIK we do not have egd on FreebSD, and anyway do provide a decent /dev/random, which I think is to be preferred anyway.

How-To-Repeat: 
install apache, enable mod_auth_digest and try to start apache.
Comment 1 Philip M. Gollucci freebsd_committer 2010-05-07 19:23:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer.
Comment 2 dfilter freebsd_committer 2010-05-07 19:32:37 UTC
pgollucci    2010-05-07 18:32:28 UTC

  FreeBSD ports repository

  Modified files:
    devel/apr            Makefile 
  Log:
  - FreeBSD doesn't use EGD sockets. Also the option handling doesn't honor
    without-egd.
  
  PR:             ports/146376
  Submitted by:   Guido Falsi <mad@madpilot.net>
  With Hat:       apache@
  
  Revision  Changes    Path
  1.100     +0 -12     ports/devel/apr/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Philip M. Gollucci freebsd_committer 2010-05-07 19:33:54 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter freebsd_committer 2010-05-07 19:33:59 UTC
pgollucci    2010-05-07 18:33:45 UTC

  FreeBSD ports repository

  Modified files:
    www/apache22         Makefile 
  Log:
  - FreeBSD doesn't use EGD sockets. Also the option handling doesn't honor
    without-egd.
    Carry the devel/apr fix through
  
  PR:             ports/146376
  Submitted by:   Guido Fals
  
  Revision  Changes    Path
  1.264     +0 -4      ports/www/apache22/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"