Control: tags -1 + patch

On 2018-05-06 09:44 +0200, Sven Joachim wrote:

> Source: ruby-ncurses
> Version:  1.4.9-1
> Tags: upstream
>
> The configure script for ruby-ncurses apparently does not check for the
> menuw library shipped in libncursesw6, but only for the menu library in
> libncurses6.  This is the relevant excerpt from the build log[1}:
>
> ,----
> | checking for the menu library...
> | checking for menu.h... yes
> | checking for new_menu() in -lmenu... yes
> `----
>
> And later it links with -lmenu, causing ruby-ncurses to depend on both
> libncurses6 and libncursesw6.

The attached patch does the trick, it should be applied upstream as
well.

Description: Link against menuw rather than menu
Author: Sven Joachim <svenj...@gmx.de>
Bug-Debian: https://bugs.debian.org/898039
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- ruby-ncurses-1.4.9.orig/extconf.rb
+++ ruby-ncurses-1.4.9/extconf.rb
@@ -153,9 +153,9 @@ end
 
 puts "checking for the menu library..."
 if have_header("menu.h") or have_header("ncursesw/menu.h")
-  have_library("menu", "new_menu")
+  have_library("menuw", "new_menu")
 else
-  raise "menu library not found."
+  raise "menuw library not found."
 end
 
 puts "checking for various ruby and standard functions.."

Reply via email to