Bug 182043 - Build failed for print/ansiprint 1.0 during build‏
Summary: Build failed for print/ansiprint 1.0 during build‏
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: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 17:00 UTC by stephenfisher
Modified: 2014-02-04 19:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stephenfisher 2013-09-12 17:00:00 UTC
I received an e-mail this morning from pkg-fallout because the print/ansiprint port I maintain is now failing to build on 10-CURRENT (http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-09-12_01h37m09s/logs/ansiprint-1.0.log)

===> Building for ansiprint-1.0
cd /wrkdirs/usr/ports/print/ansiprint/work/ansiprint-1.0 && c++ -O2 -pipe -fno-strict-aliasing -Wno-deprecated -o ansiprint ansiprint.cc
ansiprint.cc:39:10: fatal error: 'iostream.h' file not found
#include <iostream.h>
 ^
1 error generated.
*** Error code 1

I assume it's because this old program includes <iostream.h> instead of <iostream>.  Can you try changing that to see if it builds again?  The port still builds on my 9.1-RELEASE machine.
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2014-02-04 19:05:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-02-04 19:11:04 UTC
Author: pawel
Date: Tue Feb  4 19:10:51 2014
New Revision: 342590
URL: http://svnweb.freebsd.org/changeset/ports/342590
QAT: https://qat.redports.org/buildarchive/r342590/

Log:
  - Fix build with clang [1]
  - Support stage
  
  PR:		ports/182043 [1]
  Submitted by:	maintainer
  MFH:		2014Q1

Added:
  head/print/ansiprint/files/
  head/print/ansiprint/files/patch-ansiprint.cc   (contents, props changed)
Modified:
  head/print/ansiprint/Makefile

Modified: head/print/ansiprint/Makefile
==============================================================================
--- head/print/ansiprint/Makefile	Tue Feb  4 19:04:17 2014	(r342589)
+++ head/print/ansiprint/Makefile	Tue Feb  4 19:10:51 2014	(r342590)
@@ -14,7 +14,6 @@ PLIST_FILES=		bin/${PORTNAME}
 
 CXXFLAGS+=		-Wno-deprecated
 
-NO_STAGE=	yes
 post-extract:
 	@${RM} ${WRKSRC}/Makefile
 
@@ -22,6 +21,6 @@ do-build:
 	cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o ${PORTNAME} ansiprint.cc
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .include <bsd.port.mk>

Added: head/print/ansiprint/files/patch-ansiprint.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/ansiprint/files/patch-ansiprint.cc	Tue Feb  4 19:10:51 2014	(r342590)
@@ -0,0 +1,18 @@
+--- ./ansiprint.cc.orig	2014-02-04 20:01:43.741062023 +0100
++++ ./ansiprint.cc	2014-02-04 20:02:11.131060123 +0100
+@@ -36,13 +36,14 @@
+ #undef NOPRINT
+ 
+ // INCLUDES
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h> // Check to be sure we need this
+ #include <stdlib.h>
+ // below are the includes for raw I/O
+ #include <fcntl.h>
+ #include <unistd.h>
+ 
++using namespace std;
+ 
+ /***** GLOBAL VARIABLE DECLARATIONS *****/
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2014-02-04 19:11:16 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-02-04 19:37:20 UTC
Author: pawel
Date: Tue Feb  4 19:37:12 2014
New Revision: 342598
URL: http://svnweb.freebsd.org/changeset/ports/342598
QAT: https://qat.redports.org/buildarchive/r342598/

Log:
  MFH: r342590
  
  - Fix build with clang [1]
  - Support stage
  
  PR:		ports/182043 [1]
  Submitted by:	maintainer
  Approved by:	portmgr (erwin)

Added:
  branches/2014Q1/print/ansiprint/files/
     - copied from r342590, head/print/ansiprint/files/
Modified:
  branches/2014Q1/print/ansiprint/Makefile
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/print/ansiprint/Makefile
==============================================================================
--- branches/2014Q1/print/ansiprint/Makefile	Tue Feb  4 19:34:34 2014	(r342597)
+++ branches/2014Q1/print/ansiprint/Makefile	Tue Feb  4 19:37:12 2014	(r342598)
@@ -14,7 +14,6 @@ PLIST_FILES=		bin/${PORTNAME}
 
 CXXFLAGS+=		-Wno-deprecated
 
-NO_STAGE=	yes
 post-extract:
 	@${RM} ${WRKSRC}/Makefile
 
@@ -22,6 +21,6 @@ do-build:
 	cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o ${PORTNAME} ansiprint.cc
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"