Bug 75788 - [patch] mail/sendmail doesn't build when base system has no NIS
Summary: [patch] mail/sendmail doesn't build when base system has no NIS
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 11:00 UTC by Oleg Sharoiko
Modified: 2005-01-08 14:36 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.01 KB, patch)
2005-01-04 11:00 UTC, Oleg Sharoiko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Sharoiko 2005-01-04 11:00:51 UTC
	Base system can now be built without NIS (NO_NIS in make.conf) but mail/sendmail assumes NIS always present. When base system has no NIS sendmail fails to build.

Fix: Here is a simple patch, which adds SENDMAIL_WITHOUT_NIS knob. It lacks auto-detection of NIS absence - I don't know how to implement it. But this patch should be sufficient to fix sendmail build when base system has no NIS.

	The proposed patch replaces `-DNEWDB -DNIS -DMAP_REGEX' with `-DNEWDB -DMAP_REGEX'. Maybe it should be broader like s/-DNIS// but I prefer more conservative approach as there are less chances it will break anything. On the other hand there are chances that broader patch will work even when options are changed.
How-To-Repeat: 	Compile base system with NO_NIS
	Try to build mail/sendmail
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-01-04 12:40:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2005-01-04 19:55:39 UTC
State Changed
From-To: open->analyzed


Thanks, I make a few cosmetic changes 

preview: 
http://people.freebsd.org/~dinoex/ports/sendmail/ 

I will commit this after the port freeze is lifted
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2005-01-08 14:36:11 UTC
State Changed
From-To: analyzed->closed

committed, thanks.