Bug 115939 - mail/nmh: needs CFLAGS=-O
Summary: mail/nmh: needs CFLAGS=-O
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: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-30 09:20 UTC by Poul-Henning Kamp
Modified: 2007-10-03 09:40 UTC (History)
0 users

See Also:


Attachments
file.diff (531 bytes, patch)
2007-08-30 09:20 UTC, Poul-Henning Kamp
no flags Details | Diff
nmh-cflags.patch (524 bytes, patch)
2007-09-30 18:42 UTC, Stefan Walter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Poul-Henning Kamp 2007-08-30 09:20:00 UTC
	I just installed a -CURRENT machine, and the mail/nmh port
	compiles but the programs do not work.

	Adding CFLAGS=-O to the makefile of the port solved the problem.

	In all likelyhood this is merely a band-aid, the problem could be
	in either of nmh or GCC, but without this patch the port is useless.

How-To-Repeat: 	
	try using any of the commands "scan", "show" or "pick"
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-08-30 09:20:12 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Stefan Walter freebsd_committer freebsd_triage 2007-09-30 18:42:45 UTC
Hi Poul-Henning,

your patch overrides the CFLAGS setting further down in the Makefile. I
have attached a different patch that should work, but I don't have a
-CURRENT machine to test it on. Could you let me know if it fixes the
problem for you?

Thanks and regards,
Stefan
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2007-09-30 18:43:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 4 Poul-Henning Kamp 2007-10-03 08:49:11 UTC
In message <20070930174242.GA7287@kyuzo.dunkelkammer.void>, Stefan Walter write
s:

>Hi Poul-Henning,
>
>your patch overrides the CFLAGS setting further down in the Makefile. I
>have attached a different patch that should work, but I don't have a
>-CURRENT machine to test it on. Could you let me know if it fixes the
>problem for you?

Works here.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-10-03 09:35:12 UTC
stefan      2007-10-03 08:35:00 UTC

  FreeBSD ports repository

  Modified files:
    mail/nmh             Makefile 
  Log:
  Override compiler optimization to make the compiled programs work on -CURRENT.
  
  PR:             115939
  Submitted by:   phk
  Approved by:    maintainer timeout (>4 weeks)
  
  Revision  Changes    Path
  1.43      +1 -1      ports/mail/nmh/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 6 Stefan Walter freebsd_committer freebsd_triage 2007-10-03 09:35:26 UTC
State Changed
From-To: feedback->closed

Fix committed, thanks!