mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
net-misc/ubridge: update for unslotted iniparser
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
diff -ur a/Makefile b/Makefile
|
||||
--- a/Makefile 2019-05-20 10:02:14.000000000 +0300
|
||||
+++ b/Makefile 2019-05-20 10:32:04.972039000 +0300
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
ifeq ($(SYSTEM_INIPARSER),1)
|
||||
CFLAGS += -DUSE_SYSTEM_INIPARSER
|
||||
- LIBS += -liniparser
|
||||
+ LIBS += -liniparser4
|
||||
else
|
||||
SRC += src/iniparser/iniparser.c \
|
||||
src/iniparser/dictionary.c
|
||||
diff -ur a/src/parse.h b/src/parse.h
|
||||
--- a/src/parse.h 2019-05-20 10:02:14.000000000 +0300
|
||||
+++ b/src/parse.h 2019-05-20 10:32:04.968039000 +0300
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "ubridge.h"
|
||||
|
||||
#ifdef USE_SYSTEM_INIPARSER
|
||||
-#include <iniparser.h>
|
||||
+#include <iniparser4/iniparser.h>
|
||||
#else
|
||||
#include "iniparser/iniparser.h"
|
||||
#endif
|
||||
diff -ur a/src/ubridge.c b/src/ubridge.c
|
||||
--- a/src/ubridge.c 2019-05-20 10:02:14.000000000 +0300
|
||||
+++ b/src/ubridge.c 2019-05-20 10:32:04.968039000 +0300
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <pthread.h>
|
||||
|
||||
#ifdef USE_SYSTEM_INIPARSER
|
||||
-#include <iniparser.h>
|
||||
+#include <iniparser4/iniparser.h>
|
||||
#else
|
||||
#include "iniparser/iniparser.h"
|
||||
#endif
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit fcaps toolchain-funcs
|
||||
inherit fcaps flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces"
|
||||
HOMEPAGE="https://github.com/GNS3/ubridge"
|
||||
@@ -15,16 +15,16 @@ KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/ubridge
|
||||
dev-libs/iniparser:4=
|
||||
>=dev-libs/iniparser-4.1-r2:=
|
||||
net-libs/libpcap"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# Bugs: https://bugs.gentoo.org/647588
|
||||
# https://github.com/GNS3/ubridge/issues/60
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.9.16_add_slotted_iniparser-4.1+_support.patch" )
|
||||
|
||||
src_compile() {
|
||||
# iniparser.pc only exists in >=4.2 and it changes headers location
|
||||
has_version '>=dev-libs/iniparser-4.2' &&
|
||||
append-cflags $($(tc-getPKG_CONFIG) --cflags iniparser || die)
|
||||
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
SYSTEM_INIPARSER=1
|
||||
Reference in New Issue
Block a user