From b2283fada2107a8f91f620b46f387ffd1662c700 Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Mon, 19 Jun 2017 14:25:53 +0530 Subject: [PATCH] Don't remove libmenu.so library during cleanup on PowerPC Library libmenu.so is needed by lp_diag binary from ppc64-diag package. It leads to incomplete finish of compose iso generation on Power. Keeping libmenu.so on PowerPC should fix the problem. Resolves: rhbz#1461775 Signed-off-by: Sinny Kumari --- share/templates.d/99-generic/runtime-cleanup.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 53a7ea12..9922fb52 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -254,7 +254,11 @@ removefrom mtools /etc/* removefrom ncurses /usr/bin/captoinfo /usr/bin/infocmp /usr/bin/infotocap removefrom ncurses /usr/bin/reset /usr/bin/tabs /usr/bin/tic /usr/bin/toe removefrom ncurses /usr/bin/tput /usr/bin/tset -removefrom ncurses-libs /usr/${libdir}/libform* /usr/${libdir}/libmenu* +removefrom ncurses-libs /usr/${libdir}/libform* +## libmenu.so is needed by lp_diag binary from ppc64-diag which is a PowerPc specific package +%if basearch not in ("ppc", "ppc64", "ppc64le"): + removefrom ncurses-libs /usr/${libdir}/libmenu* +%endif removefrom ncurses-libs /usr/${libdir}/libpanel.* /usr/${libdir}/libtic* removefrom net-tools */bin/netstat */sbin/ether-wake */sbin/ipmaddr removefrom net-tools */sbin/iptunnel */sbin/mii-diag */sbin/mii-tool