Skip to content

Commit

Permalink
irqbalance: avoid external glib2
Browse files Browse the repository at this point in the history
Revert an upstream commit to enable compiling without external glib2.

Edit the 'disable UI compilation' patch to match the original
upstream commit more closely.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
  • Loading branch information
hnyman committed Feb 8, 2017
1 parent 14f9bff commit c42ecd0
Show file tree
Hide file tree
Showing 3 changed files with 454 additions and 5 deletions.
5 changes: 2 additions & 3 deletions utils/irqbalance/Makefile
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=irqbalance
PKG_VERSION:=1.2.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_PROTO:=git
Expand All @@ -27,7 +27,6 @@ include $(INCLUDE_DIR)/package.mk
define Package/irqbalance
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+glib2
TITLE:=IRQ usage balancing for multi-core systems
URL:=https://github.com/Irqbalance/irqbalance
endef
Expand All @@ -42,7 +41,7 @@ CONFIGURE_ARGS+= \
--disable-numa \
--with-libcap_ng=no \
--with-systemd=no \
--with-glib2=yes
--without-glib2

define Package/irqbalance/install
$(INSTALL_DIR) $(1)/usr/sbin
Expand Down
33 changes: 31 additions & 2 deletions utils/irqbalance/patches/100-disable-ui-compilation.patch
@@ -1,10 +1,19 @@
Revert upstream commit bf9297132d219539e07506c125c6801dd77202f4
to prevent building the UI component. Also disable manpage.

--- a/Makefile.am
+++ b/Makefile.am
@@ -29,14 +29,10 @@
@@ -24,19 +24,14 @@ AUTOMAKE_OPTIONS = no-dependencies
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = COPYING autogen.sh misc/irqbalance.service misc/irqbalance.env

-UI_DIR = ui
AM_CFLAGS = $(LIBCAP_NG_CFLAGS) $(GLIB_CFLAGS)
AM_CPPFLAGS = -I${top_srcdir} -W -Wall -Wshadow -Wformat -Wundef -D_GNU_SOURCE
noinst_HEADERS = bitmap.h constants.h cpumask.h irqbalance.h non-atomic.h \
types.h $(UI_DIR)/helpers.h $(UI_DIR)/irqbalance-ui.h $(UI_DIR)/ui.h
- types.h $(UI_DIR)/helpers.h $(UI_DIR)/irqbalance-ui.h $(UI_DIR)/ui.h
-sbin_PROGRAMS = irqbalance irqbalance-ui
+ types.h
+sbin_PROGRAMS = irqbalance
irqbalance_SOURCES = activate.c bitmap.c classify.c cputree.c irqbalance.c \
irqlist.c numa.c placement.c procinterrupts.c
Expand All @@ -16,3 +25,23 @@

CONFIG_CLEAN_FILES = debug*.list config/*
clean-generic:
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ AC_PREREQ(2.12)dnl
AM_CONFIG_HEADER(config.h)

AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([foreign] [subdir-objects])
+AM_INIT_AUTOMAKE([foreign])
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

@@ -26,8 +26,6 @@ AC_CHECK_FUNCS(getopt_long)
AC_CHECK_LIB(numa, numa_available)
AC_CHECK_LIB(m, floor)

-AC_CHECK_LIB(curses, mvprintw)
-
AC_C_CONST
AC_C_INLINE
AM_PROG_CC_C_O

0 comments on commit c42ecd0

Please sign in to comment.