Skip to contentSkip to conversation

dialog: fix the redirection of the error information

PATCH New [email protected] 1 participant 1 message Sep 23, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dialog: fix the redirection of the error information

From: Roy Li <[email protected]>

Drop the error information, other than redirect them to stdout, otherwise the error information will be included into LIBS/CFLAG

---
 .../dialog/files/use-pkg-config-for-ncurses-detection.patch        |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch +2 -2
index b5b4b3c..09cdb37 100644
@@ -21,8 +21,8 @@ index 24e28c1..c78735d 100755
  
 -CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
 -LIBS="`$NCURSES_CONFIG --libs` $LIBS"
-+CPPFLAGS="$CPPFLAGS `pkg-config --short-errors --print-errors --cflags "ncurses" 2>&1`"
-+LIBS="`pkg-config --short-errors --print-errors --libs "ncurses" 2>&1` $LIBS"
++CPPFLAGS="$CPPFLAGS `pkg-config --short-errors --print-errors --cflags "ncurses" 2>/dev/null`"
++LIBS="`pkg-config --short-errors --print-errors --libs "ncurses" 2>/dev/null` $LIBS"
  
  # even with config script, some packages use no-override for curses.h
  
Signature · 1 line
1.7.10.4