Bug 116631 - [PATCH] net/httping: fails to build when CFLAGS is set in /etc/make.conf
Summary: [PATCH] net/httping: fails to build when CFLAGS is set in /etc/make.conf
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: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 18:50 UTC by Beat Gaetzi
Modified: 2007-09-25 23:10 UTC (History)
0 users

See Also:


Attachments
httping.patch (1022 bytes, patch)
2007-09-25 18:50 UTC, Beat Gaetzi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Beat Gaetzi 2007-09-25 18:50:00 UTC
	When CFLAGS are set in /etc/make.conf httping fails to build.

Fix: Apply this patch in the httping directory and rebuild the port:
	patch -p1 < /path-to-patch/httping.patch
	
How-To-Repeat: 	Set CFLAGS in /etc/make.conf like:
	CFLAGS= -O -pipe

	Build net/httping:
	/usr/ports/net/httping/> make install clean
	===>  Extracting for httping-1.2.5
	=> MD5 Checksum OK for httping-1.2.5.tgz.
	=> SHA256 Checksum OK for httping-1.2.5.tgz.
	===>  Patching for httping-1.2.5
	===>  Configuring for httping-1.2.5
	===>  Building for httping-1.2.5
	cc -O -pipe  -c mem.c
	cc -O -pipe  -c http.c
	cc -O -pipe  -c io.c
	cc -O -pipe  -c str.c
	cc -O -pipe  -c error.c
	cc -O -pipe  -c utils.c
	cc -O -pipe  -c main.c
	main.c: In function `version':
	main.c:53: error: syntax error before "VERSION"
	main.c: In function `main':
	main.c:422: error: syntax error before "VERSION"
	*** Error code 1

	Stop in /usr/ports/net/httping/work/httping-1.2.5.
	*** Error code 1

	Stop in /usr/ports/net/httping.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-25 18:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-09-25 23:01:55 UTC
ehaupt      2007-09-25 22:01:43 UTC

  FreeBSD ports repository

  Modified files:
    net/httping          Makefile 
  Added files:
    net/httping/files    patch-Makefile 
  Log:
  Fix a compilation error when CFLAGS are set in /etc/make.conf.
  
  PR:             116631
  Submitted by:   Beat Gaetzi <beat@chruetertee.ch>
  
  Revision  Changes    Path
  1.15      +0 -5      ports/net/httping/Makefile
  1.1       +13 -0     ports/net/httping/files/patch-Makefile (new)
_______________________________________________
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 Emanuel Haupt freebsd_committer freebsd_triage 2007-09-25 23:02:08 UTC
State Changed
From-To: open->closed

Committed, thanks!