Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] build-sys: cal requires both ncurses and tinfo
@ 2015-07-23 22:56 Joel Holdsworth
  2015-07-24  6:23 ` Bernhard Voelker
  2015-07-24  7:51 ` Karel Zak
  0 siblings, 2 replies; 7+ messages in thread
From: Joel Holdsworth @ 2015-07-23 22:56 UTC (permalink / raw)
  To: util-linux; +Cc: Joel Holdsworth

From: Joel Holdsworth <joel@airwebreathe.org.uk>

This fixes a bug in the build system when building without ncurses
and tinfo. When cal is linked, it depends on both these libraries
and will fail to link if either of them is not available.

This patch resolves the issue by explicitly declaring these
dependencies in the confgure.ac.
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 6bc9efd..76ba349 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1232,7 +1232,9 @@ AS_IF([test "x$build_mkswap" = xyes -a "x$build_libuuid" != xyes], [
   AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs])
 ])
 
-UL_BUILD_INIT([cal], [yes])
+UL_BUILD_INIT([cal], [check])
+UL_REQUIRES_HAVE([cal], [ncurses], [ncurses library])
+UL_REQUIRES_HAVE([cal], [tinfo], [tinfo library])
 AM_CONDITIONAL([BUILD_CAL], [test "x$build_cal" = xyes])
 
 UL_BUILD_INIT([logger], [yes])
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-27  9:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 22:56 [PATCH] build-sys: cal requires both ncurses and tinfo Joel Holdsworth
2015-07-24  6:23 ` Bernhard Voelker
2015-07-24  7:56   ` Karel Zak
2015-07-24 17:33     ` Joel Holdsworth
2015-07-24 20:09       ` Karel Zak
2015-07-27  9:55       ` Karel Zak
2015-07-24  7:51 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox