Bug 185335 - mail/bbmail: Fix build with clang
Summary: mail/bbmail: Fix build with clang
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-30 21:10 UTC by tkato432
Modified: 2014-01-25 13:00 UTC (History)
0 users

See Also:


Attachments
file.diff (3.15 KB, patch)
2013-12-30 21:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-30 21:10:08 UTC
- Fix build with clang
- Add LICENSE

New file:
files/patch-src__bbmail.cpp
files/patch-src__mailboxmenu.cpp
files/patch-src__main.cpp
files/patch-src__resource.cpp

How-To-Repeat:
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2014-01-19 09:27:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-01-19 09:27:48 UTC
Author: miwi
Date: Sun Jan 19 09:27:40 2014
New Revision: 340256
URL: http://svnweb.freebsd.org/changeset/ports/340256
QAT: https://qat.redports.org/buildarchive/r340256/

Log:
  - Fix build
  - Add License
  
  PR:		185335
  Submitted by:	ports fury

Added:
  head/mail/bbmail/files/
  head/mail/bbmail/files/patch-src__bbmail.cpp   (contents, props changed)
  head/mail/bbmail/files/patch-src__mailboxmenu.cpp   (contents, props changed)
  head/mail/bbmail/files/patch-src__main.cpp   (contents, props changed)
  head/mail/bbmail/files/patch-src__resource.cpp   (contents, props changed)
Modified:
  head/mail/bbmail/Makefile   (contents, props changed)

Modified: head/mail/bbmail/Makefile
==============================================================================
--- head/mail/bbmail/Makefile	Sun Jan 19 09:27:22 2014	(r340255)
+++ head/mail/bbmail/Makefile	Sun Jan 19 09:27:40 2014	(r340256)
@@ -7,7 +7,9 @@ CATEGORIES=	mail
 MASTER_SITES=	SF/bbtools/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A tool intended for Blackbox that checks for new mail
+COMMENT=	Tool intended for Blackbox that checks for new mail
+
+LICENSE=	GPLv2 # (or later)
 
 BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/libbt.pc:${PORTSDIR}/x11-wm/blackbox
 
@@ -15,12 +17,7 @@ USES=		pkgconfig
 USE_XORG=	xext
 GNU_CONFIGURE=	yes
 
-MAN1=		bbmail.1
-PLIST_FILES=	bin/bbmail share/bbtools/bbmail.rc
-
-NO_STAGE=	yes
-post-install:
-	@${ECHO_CMD} "@unexec rmdir %D/share/bbtools 2>/dev/null || true" \
-		>> ${TMPPLIST}
+PLIST_FILES=	bin/bbmail man/man1/bbmail.1.gz share/bbtools/bbmail.rc
+PLIST_DIRSTRY=	share/bbtools
 
 .include <bsd.port.mk>

Added: head/mail/bbmail/files/patch-src__bbmail.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/bbmail/files/patch-src__bbmail.cpp	Sun Jan 19 09:27:40 2014	(r340256)
@@ -0,0 +1,18 @@
+--- src/bbmail.cpp.orig
++++ src/bbmail.cpp
+@@ -22,13 +22,14 @@
+ #include "bbmail.h"
+ #include "config.h"
+ #include <string>
++#include <cstdlib>
++#include <cmath>
+ 
+ extern "C" {
+ #include <utime.h>
+ #include <dirent.h>
+ #include <X11/cursorfont.h>
+ #include <sys/stat.h>
+-#include <math.h>
+ }
+ 
+ #include "EWMH.hh"

Added: head/mail/bbmail/files/patch-src__mailboxmenu.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/bbmail/files/patch-src__mailboxmenu.cpp	Sun Jan 19 09:27:40 2014	(r340256)
@@ -0,0 +1,10 @@
+--- src/mailboxmenu.cpp.orig
++++ src/mailboxmenu.cpp
+@@ -20,6 +20,7 @@
+ //
+ //
+ #include "mailboxmenu.h"
++#include <cstdlib>
+ 
+ MailboxMenu::MailboxMenu(ToolWindow *toolwindow) :
+         Menu(*toolwindow, toolwindow->getCurrentScreen()), bbtool(toolwindow)

Added: head/mail/bbmail/files/patch-src__main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/bbmail/files/patch-src__main.cpp	Sun Jan 19 09:27:40 2014	(r340256)
@@ -0,0 +1,10 @@
+--- src/main.cpp.orig
++++ src/main.cpp
+@@ -22,6 +22,7 @@
+ #include "bbmail.h"
+ #include "main.h"
+ #include "config.h"
++#include <cstdlib>
+ 
+ Configuration::Configuration(int iargc, char **iargv)
+ {

Added: head/mail/bbmail/files/patch-src__resource.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/bbmail/files/patch-src__resource.cpp	Sun Jan 19 09:27:40 2014	(r340256)
@@ -0,0 +1,10 @@
+--- src/resource.cpp.orig
++++ src/resource.cpp
+@@ -22,6 +22,7 @@
+ #include "bbmail.h"
+ #include "resource.h"
+ #include "blackboxstyle.h"
++#include <cstdlib>
+ 
+ Resource::Resource(ToolWindow *toolwindow, const std::string &rc_file):
+ 		BaseResource(*toolwindow, toolwindow->getCurrentScreen(), rc_file), 
_______________________________________________
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 dfilter service freebsd_committer freebsd_triage 2014-01-25 12:58:16 UTC
Author: miwi
Date: Sat Jan 25 12:58:08 2014
New Revision: 341019
URL: http://svnweb.freebsd.org/changeset/ports/341019
QAT: https://qat.redports.org/buildarchive/r341019/

Log:
  MFH: r340256
  
  - Fix build
  - Add License
  
  PR:		185335
  Submitted by:	ports fury

Added:
  branches/2014Q1/mail/bbmail/files/
     - copied from r340256, head/mail/bbmail/files/
Modified:
  branches/2014Q1/mail/bbmail/Makefile   (contents, props changed)
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/mail/bbmail/Makefile
==============================================================================
--- branches/2014Q1/mail/bbmail/Makefile	Sat Jan 25 12:57:41 2014	(r341018)
+++ branches/2014Q1/mail/bbmail/Makefile	Sat Jan 25 12:58:08 2014	(r341019)
@@ -7,7 +7,9 @@ CATEGORIES=	mail
 MASTER_SITES=	SF/bbtools/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A tool intended for Blackbox that checks for new mail
+COMMENT=	Tool intended for Blackbox that checks for new mail
+
+LICENSE=	GPLv2 # (or later)
 
 BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/libbt.pc:${PORTSDIR}/x11-wm/blackbox
 
@@ -15,12 +17,7 @@ USES=		pkgconfig
 USE_XORG=	xext
 GNU_CONFIGURE=	yes
 
-MAN1=		bbmail.1
-PLIST_FILES=	bin/bbmail share/bbtools/bbmail.rc
-
-NO_STAGE=	yes
-post-install:
-	@${ECHO_CMD} "@unexec rmdir %D/share/bbtools 2>/dev/null || true" \
-		>> ${TMPPLIST}
+PLIST_FILES=	bin/bbmail man/man1/bbmail.1.gz share/bbtools/bbmail.rc
+PLIST_DIRSTRY=	share/bbtools
 
 .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"