5793ec69147102f5bdb9c464be9dafaaaa9393b5
[librecmc/package-feed.git] / utils / irqbalance / patches / 100-disable-ui-compilation.patch
1 Revert upstream commit bf9297132d219539e07506c125c6801dd77202f4
2 to prevent building the UI component. Also disable manpage.
3
4 --- a/Makefile.am
5 +++ b/Makefile.am
6 @@ -24,19 +24,14 @@ AUTOMAKE_OPTIONS = no-dependencies
7  ACLOCAL_AMFLAGS = -I m4
8  EXTRA_DIST = COPYING autogen.sh misc/irqbalance.service misc/irqbalance.env
9  
10 -UI_DIR = ui
11  AM_CFLAGS = $(LIBCAP_NG_CFLAGS) $(GLIB_CFLAGS)
12  AM_CPPFLAGS = -I${top_srcdir} -W -Wall -Wshadow -Wformat -Wundef -D_GNU_SOURCE
13  noinst_HEADERS = bitmap.h constants.h cpumask.h irqbalance.h non-atomic.h \
14 -       types.h $(UI_DIR)/helpers.h $(UI_DIR)/irqbalance-ui.h $(UI_DIR)/ui.h
15 -sbin_PROGRAMS = irqbalance irqbalance-ui
16 +       types.h
17 +sbin_PROGRAMS = irqbalance
18  irqbalance_SOURCES = activate.c bitmap.c classify.c cputree.c irqbalance.c \
19         irqlist.c numa.c placement.c procinterrupts.c
20  irqbalance_LDADD = $(LIBCAP_NG_LIBS) $(GLIB_LIBS)
21 -irqbalance_ui_SOURCES = $(UI_DIR)/helpers.c $(UI_DIR)/irqbalance-ui.c \
22 -       $(UI_DIR)/ui.c
23 -irqbalance_ui_LDADD = $(GLIB_LIBS) $(CURSES_LIBS)
24 -dist_man_MANS = irqbalance.1
25  
26  CONFIG_CLEAN_FILES = debug*.list config/*
27  clean-generic:
28 --- a/configure.ac
29 +++ b/configure.ac
30 @@ -3,7 +3,7 @@ AC_PREREQ(2.12)dnl
31  AM_CONFIG_HEADER(config.h)
32  
33  AC_CONFIG_MACRO_DIR([m4])
34 -AM_INIT_AUTOMAKE([foreign] [subdir-objects])
35 +AM_INIT_AUTOMAKE([foreign])
36  AM_PROG_LIBTOOL
37  AC_SUBST(LIBTOOL_DEPS)
38  
39 @@ -26,8 +26,6 @@ AC_CHECK_FUNCS(getopt_long)
40  AC_CHECK_LIB(numa, numa_available)
41  AC_CHECK_LIB(m, floor)
42  
43 -AC_CHECK_LIB(curses, mvprintw)
44 -
45  AC_C_CONST
46  AC_C_INLINE
47  AM_PROG_CC_C_O