Control: tags -1 + patch

On 2017-01-09 20:27 +0100, Sven Joachim wrote:

> Source: newsbeuter
> Version: 2.9-5
> User: [email protected]
> Usertags: ncursesw5-config
>
> The ncurses development packages are going to see a change after the
> Stretch release, ncursesw5-config will be replaced by ncursesw6-config.
> Your package FTBFS if ncursesw5-config is not present on the build
> system.  From my pbuilder log:
>
> ,----
> | Checking for package ncursesw5 using ncursesw5-config... not found
> | 
> | You need package ncursesw in order to compile this program.
> | Please make sure it is installed.
> | 
> | You can download ncursesw from here: 
> | 
> | One or more dependencies couldn't be found. Please install
> | these packages and retry compilation.
> | Makefile:211: recipe for target 'config.mk' failed
> | make[2]: *** [config.mk] Error 1
> | make[2]: Leaving directory '/build/newsbeuter-2.9'
> | dh_auto_build: make -j1 prefix=/usr all returned exit code 2
> | debian/rules:18: recipe for target 'override_dh_auto_build' failed
> `----
>
> It seems upstream has already fixed that by using a pkg-config test in
> favor of ncursesw5-config , I will dig it out as soon as I have the bug
> number.

Attached is a tested patch ready to be dropped into debian/patches,
taken from upstream commit 02f08698f7[1].

Cheers,
       Sven

1. 
https://github.com/akrennmair/newsbeuter/commit/02f08698f74bb5bba6f036292b1d26fd22255c7f

>From 02f08698f74bb5bba6f036292b1d26fd22255c7f Mon Sep 17 00:00:00 2001
From: Jan Pobrislo <[email protected]>
Date: Thu, 27 Aug 2015 12:32:18 +0200
Subject: [PATCH] Use pkg-config to search for ncursesw.

---
 config.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config.sh b/config.sh
index a9f0081..4f8afe4 100755
--- a/config.sh
+++ b/config.sh
@@ -110,6 +110,7 @@ check_pkg "stfl" || fail "stfl"
 if [ `uname -s` = "Darwin" ]; then
 	check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4"
 elif [ `uname -s` != "OpenBSD" ]; then
+	check_pkg "ncursesw" || \
 	check_custom "ncursesw5" "ncursesw5-config" ||  fail "ncursesw"
 fi
 check_ssl_implementation
-- 
2.11.0

Reply via email to