From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/mbrowse/, net-analyzer/mbrowse/files/
Date: Thu, 13 Feb 2020 10:13:41 +0000 (UTC) [thread overview]
Message-ID: <1581588817.6cd511fdaadd068af8ce0b2872450d02c6a63364.jer@gentoo> (raw)
commit: 6cd511fdaadd068af8ce0b2872450d02c6a63364
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 13 10:08:45 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Feb 13 10:13:37 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cd511fd
net-analyzer/mbrowse: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Closes: https://bugs.gentoo.org/show_bug.cgi?id=709402
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
.../mbrowse/files/mbrowse-0.4.3-flags.patch | 16 ++++++++++++
.../mbrowse/files/mbrowse-0.4.3-fno-common.patch | 29 ++++++++++++++++++++++
net-analyzer/mbrowse/mbrowse-0.4.3-r1.ebuild | 9 ++++---
3 files changed, 50 insertions(+), 4 deletions(-)
diff --git a/net-analyzer/mbrowse/files/mbrowse-0.4.3-flags.patch b/net-analyzer/mbrowse/files/mbrowse-0.4.3-flags.patch
new file mode 100644
index 00000000000..f17904b6690
--- /dev/null
+++ b/net-analyzer/mbrowse/files/mbrowse-0.4.3-flags.patch
@@ -0,0 +1,16 @@
+--- acinclude.m4
++++ b/acinclude.m4
+@@ -277,13 +277,11 @@
+ echo "*** --with-snmp-lib=DIR"
+ echo "***"
+ CFLAGS="$ac_save_CFLAGS"
+- LDFLAGS="$ac_save_LDFLAGS"
+ LIBS="$ac_save_LIBS"
+ ifelse([$3], ,:,[$3])
+ fi
+
+ CFLAGS="$ac_save_CFLAGS"
+- LDFLAGS="$ac_save_LDFLAGS"
+ LIBS="$ac_save_LIBS"
+
+ AC_SUBST(SNMP_CFLAGS)
diff --git a/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch b/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch
new file mode 100644
index 00000000000..72a4c785a13
--- /dev/null
+++ b/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch
@@ -0,0 +1,29 @@
+--- a/src/interface.h
++++ b/src/interface.h
+@@ -9,12 +9,14 @@
+ GtkAccelGroup *accels;
+ } main_widgets_t;
+
+-struct menu_items {
++typedef struct menu_items {
+ char *item;
+ GtkSignalFunc func;
+ gpointer data;
+ GtkWidget *mi;
+-};
++} menu_items;
++
++extern struct menu_items bookmark_items[128];
+
+ void set_hostname(const char *host);
+ void set_oid(const char *oid);
+--- a/src/bookmarks.c
++++ b/src/bookmarks.c
+@@ -27,7 +27,6 @@
+ static GtkWidget *bkdial;
+ int delete = 0;
+
+-struct menu_items bookmark_items[128];
+ static GtkWidget* create_bookmark_dialogue(void);
+
+ static void mark_for_delete(void) {
diff --git a/net-analyzer/mbrowse/mbrowse-0.4.3-r1.ebuild b/net-analyzer/mbrowse/mbrowse-0.4.3-r1.ebuild
index 703e99ef3cc..ab930a39ba2 100644
--- a/net-analyzer/mbrowse/mbrowse-0.4.3-r1.ebuild
+++ b/net-analyzer/mbrowse/mbrowse-0.4.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -21,12 +21,13 @@ DEPEND="
RDEPEND="${DEPEND}"
DOCS=( AUTHORS README ChangeLog )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.4.3-flags.patch
+ "${FILESDIR}"/${PN}-0.4.3-fno-common.patch
+)
src_prepare() {
default
- sed -i \
- -e '/LDFLAGS=/d' \
- acinclude.m4 || die
eautoreconf
}
reply other threads:[~2020-02-13 10:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1581588817.6cd511fdaadd068af8ce0b2872450d02c6a63364.jer@gentoo \
--to=jer@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox