Skip to contentSkip to conversation

dialog: Override ncurses config script

PATCH New Maarten ter Huurne 2 participants 3 messages Sep 3, 2014 – Sep 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dialog: Override ncurses config script

Without the override, systemwide ncurses6-config can be found instead of ncurses5-config from staging.

---
 package/dialog/dialog.mk | 2 ++
 1 file changed, 2 insertions(+)
package/dialog/dialog.mk +2 -0
index fb00c9c..72990a8 100644
@@ -17,4 +17,6 @@ ifneq ($(BR2_ENABLE_LOCALE),y)
 DIALOG_DEPENDENCIES += libiconv
 endif
 
+DIALOG_CONF_OPT = NCURSES_CONFIG=$(STAGING_DIR)/usr/bin/ncurses5-config
+
 $(eval $(autotools-package))
Signature · 1 line
1.8.4.5
#1 lore raw

PATCH 1/1 dialog: Override ncurses config script

Without the override, systemwide ncurses6-config can be found instead of ncurses5-config from staging.

---
My previous patch contained a bug: DIALOG_CONF_OPT was overridden instead of appended to. This was not fatal on the build I tested it with but can break other builds. Below is the corrected patch.

 package/dialog/dialog.mk | 2 ++
 1 file changed, 2 insertions(+)
package/dialog/dialog.mk +2 -0
index fb00c9c..9af56e7 100644
@@ -17,4 +17,6 @@ ifneq ($(BR2_ENABLE_LOCALE),y)
 DIALOG_DEPENDENCIES += libiconv
 endif
 
+DIALOG_CONF_OPT += NCURSES_CONFIG=$(STAGING_DIR)/usr/bin/ncurses5-config
+
 $(eval $(autotools-package))
Signature · 1 line
1.8.4.5
#2 lore raw

PATCH 1/1 dialog: Override ncurses config script

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maarten" == Maarten ter Huurne <[email protected]> writes:

Without the override, systemwide ncurses6-config can be found instead of ncurses5-config from staging.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard