Bug 183023 - Update to sysutils/copytape to fix compile errors
Summary: Update to sysutils/copytape to fix compile errors
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: Alex Kozlov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 13:10 UTC by sjroz
Modified: 2013-10-24 17:30 UTC (History)
1 user (show)

See Also:


Attachments
file.shar (721 bytes, text/plain)
2013-10-16 13:10 UTC, sjroz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description sjroz 2013-10-16 13:10:01 UTC
        Added missing include files to fix compile errors.  =20

Fix: =20
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-16 13:10:10 UTC
Class Changed
From-To: sw-bug->maintainer-update

Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool)
Comment 2 Alex Kozlov freebsd_committer freebsd_triage 2013-10-24 17:27:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ak

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-10-24 17:27:30 UTC
Author: ak
Date: Thu Oct 24 16:27:22 2013
New Revision: 331498
URL: http://svnweb.freebsd.org/changeset/ports/331498

Log:
  - Fix build [1]
  - Support STAGEDIR
  
  PR:	ports/183023 [1]
  Submitted by:	Stephen Roznowski <sjroz@verizon.net> (maintainer)

Added:
  head/sysutils/copytape/files/patch-ab   (contents, props changed)
Modified:
  head/sysutils/copytape/Makefile   (contents, props changed)

Modified: head/sysutils/copytape/Makefile
==============================================================================
--- head/sysutils/copytape/Makefile	Thu Oct 24 15:47:05 2013	(r331497)
+++ head/sysutils/copytape/Makefile	Thu Oct 24 16:27:22 2013	(r331498)
@@ -10,7 +10,7 @@ DISTNAME=		copytape
 EXTRACT_SUFX=		.Z
 
 MAINTAINER=		sjroz@verizon.net
-COMMENT=		A program that is used to duplicate magtapes
+COMMENT=		Program that is used to duplicate magtapes
 
 EXTRACT_DEPENDS=	gunshar:${PORTSDIR}/archivers/sharutils
 
@@ -19,16 +19,19 @@ NO_WRKSUBDIR=		yes
 EXTRACT_CMD=		zcat
 EXTRACT_BEFORE_ARGS=
 EXTRACT_AFTER_ARGS=	| gunshar -d ${WRKDIR}
+
+CFLAGS+=	-Wno-return-type
+# XXX upstream puts CFLAGS in CC
+MAKE_ARGS+=	CC="${CC} ${CFLAGS}"
 ALL_TARGET=		copytape
 
-MAN1=			copytape.1
-MAN5=			copytape.5
-PLIST_FILES=		bin/copytape
+PLIST_FILES=	bin/copytape \
+				man/man1/copytape.1.gz \
+				man/man5/copytape.5.gz
 
-NO_STAGE=	yes
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/copytape ${PREFIX}/bin/copytape
-	@${INSTALL_MAN} ${WRKSRC}/copytape.1 ${PREFIX}/man/man1/copytape.1
-	@${INSTALL_MAN} ${WRKSRC}/copytape.5 ${PREFIX}/man/man5/copytape.5
+	@${INSTALL_PROGRAM} ${WRKSRC}/copytape ${STAGEDIR}${PREFIX}/bin/copytape
+	@${INSTALL_MAN} ${WRKSRC}/copytape.1 ${STAGEDIR}${PREFIX}/man/man1/copytape.1
+	@${INSTALL_MAN} ${WRKSRC}/copytape.5 ${STAGEDIR}${PREFIX}/man/man5/copytape.5
 
 .include <bsd.port.mk>

Added: head/sysutils/copytape/files/patch-ab
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/copytape/files/patch-ab	Thu Oct 24 16:27:22 2013	(r331498)
@@ -0,0 +1,11 @@
+--- copytape.c.orig    2013-10-16 06:54:00.000000000 -0400
++++ copytape.c 2013-10-16 06:54:13.000000000 -0400
+@@ -29,6 +29,8 @@
+
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <sys/mtio.h>
_______________________________________________
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 4 Alex Kozlov freebsd_committer freebsd_triage 2013-10-24 17:27:38 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!