* [gentoo-commits] gentoo-x86 commit in net-analyzer/cbm/files: cbm-0.1-gcc-4.7.patch cbm-0.1-gcc-4.3.patch cbm-0.1-headers-status-line.patch cbm-0.1-tinfo.patch cbm-gcc-4.7.patch cbm-gcc-4.3.patch
@ 2014-07-10 20:40 Jeroen Roovers (jer)
0 siblings, 0 replies; only message in thread
From: Jeroen Roovers (jer) @ 2014-07-10 20:40 UTC (permalink / raw
To: gentoo-commits
jer 14/07/10 20:40:23
Added: cbm-0.1-gcc-4.7.patch cbm-0.1-gcc-4.3.patch
cbm-0.1-headers-status-line.patch
cbm-0.1-tinfo.patch
Removed: cbm-gcc-4.7.patch cbm-gcc-4.3.patch
Log:
EAPI bump. Add Debian patch for missing headers and status line. Fix patch naming. Fix building against sys-libs/ncurses[tinfo].
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Revision Changes Path
1.1 net-analyzer/cbm/files/cbm-0.1-gcc-4.7.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-gcc-4.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-gcc-4.7.patch?rev=1.1&content-type=text/plain
Index: cbm-0.1-gcc-4.7.patch
===================================================================
--- a/src/cbm.cpp
+++ b/src/cbm.cpp
@@ -18,6 +18,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include <net/if.h>
+#include <unistd.h>
// Externs
extern int optind, opterr, optopt;
1.1 net-analyzer/cbm/files/cbm-0.1-gcc-4.3.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-gcc-4.3.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-gcc-4.3.patch?rev=1.1&content-type=text/plain
Index: cbm-0.1-gcc-4.3.patch
===================================================================
--- a/src/statistics.hpp
+++ b/src/statistics.hpp
@@ -3,6 +3,7 @@
#include <list>
#include <string>
+#include <sys/time.h>
namespace statistics {
1.1 net-analyzer/cbm/files/cbm-0.1-headers-status-line.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-headers-status-line.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-headers-status-line.patch?rev=1.1&content-type=text/plain
Index: cbm-0.1-headers-status-line.patch
===================================================================
From bdc4f02a6d7fb1416f36aef89af4592c691576d8 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Mon, 19 Sep 2011 14:27:04 +0300
Subject: [PATCH] [fix] Headers and status line don't display by Paul Martin
<pm@debian.org>
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
src/cbm.cpp | 9 ++++++++-
src/widgets/Window.cpp | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
index 74282e2..0197443 100644
--- a/src/cbm.cpp
+++ b/src/cbm.cpp
@@ -156,13 +156,20 @@ int main(int argc, char **argv) {
interfaceTable.setColumns(4);
interfaceTable.setActiveStyle(A_BOLD);
interfaceTable.setActiveRow(1);
+ // Position the interface table
+ interfaceTable.setPosition(2, 2);
+ interfaceTable.setSize(screen.getWidth() - 4,
+ 8); // TODO
// Create the detail table
VerticalTable detailTable(screen);
detailTable.setColumns(2);
detailTable.setRows(2);
detailTable.setActiveRow(-1);
-
+ // Position the detail table
+ detailTable.setPosition(2, 12); // TODO
+ detailTable.setSize(screen.getWidth() - 4, 10); // TODO
+
// Populate the detail table
detailTable.setText (0, 0, "Interface");
detailTable.setStyle(0, 0, COLOR_PAIR(COLOR_HEADING) | A_BOLD);
index 322cb9b..572eef7 100644
--- a/src/widgets/Window.cpp
+++ b/src/widgets/Window.cpp
@@ -14,7 +14,7 @@ Window::~Window() {
}
void Window::setPosition(unsigned x, unsigned y) {
- mvwin((WINDOW*) win_, y, x);
+ mvderwin((WINDOW*) win_, y, x);
}
void Window::setSize(unsigned width, unsigned height) {
--
1.7.5.4
1.1 net-analyzer/cbm/files/cbm-0.1-tinfo.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-tinfo.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cbm/files/cbm-0.1-tinfo.patch?rev=1.1&content-type=text/plain
Index: cbm-0.1-tinfo.patch
===================================================================
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,4 +3,4 @@
cbm_SOURCES = cbm.cpp \
ErrnoError.hpp \
statistics.cpp statistics.hpp
-cbm_LDADD = -lncurses widgets/libwidgets.la
+cbm_LDADD = $(ncurses_LIBS) widgets/libwidgets.la
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,8 @@
# Checks for libraries.
+PKG_CHECK_MODULES(ncurses,ncurses)
+
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-10 20:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 20:40 [gentoo-commits] gentoo-x86 commit in net-analyzer/cbm/files: cbm-0.1-gcc-4.7.patch cbm-0.1-gcc-4.3.patch cbm-0.1-headers-status-line.patch cbm-0.1-tinfo.patch cbm-gcc-4.7.patch cbm-gcc-4.3.patch Jeroen Roovers (jer)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox