* [Buildroot] [PATCH] SCREEN: Added support for GNU Screen
@ 2008-04-08 19:41 Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Michel
2008-04-08 19:57 ` [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Nigel Kukard
0 siblings, 2 replies; 10+ messages in thread
From: Michel @ 2008-04-08 19:41 UTC (permalink / raw)
To: buildroot
From: Michel <michel.git@pollet.net>
screen is a terminal multiplexor that runs several separate "screens" on a single
physical character-based terminal. Each virtual terminal emulates a DEC VT100
plus several ANSI X3.64 and ISO 2022 functions.
Screen sessions can be detached and resumed later on a different terminal.
Screen also supports a whole slew of other features. Some of these are:
configurable input and output translation, serial port support, configurable
logging, multi-user support, and utf8 charset support.
---
package/Config.in | 1 +
package/screen/Config.in | 17 +
.../screen/screen-4.0.2-100-cross-compile.patch | 967 ++++++++++++++++++++
package/screen/screen.mk | 61 ++
4 files changed, 1046 insertions(+), 0 deletions(-)
create mode 100644 package/screen/Config.in
create mode 100644 package/screen/screen-4.0.2-100-cross-compile.patch
create mode 100644 package/screen/screen.mk
diff --git a/package/Config.in b/package/Config.in
index f3a68ed..3ca06ff 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -313,6 +313,7 @@ source "package/slang/Config.in"
comment "text rendering applications"
source "package/dialog/Config.in"
+source "package/screen/Config.in"
comment "graphic libraries"
source "package/directfb/Config.in"
diff --git a/package/screen/Config.in b/package/screen/Config.in
new file mode 100644
index 0000000..da29343
--- /dev/null
+++ b/package/screen/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_SCREEN
+ bool "screen"
+ default n
+ select BR2_PACKAGE_NCURSES
+ help
+ screen - terminal multiplexor with VT100/ANSI terminal emulation
+
+ screen is a terminal multiplexor that runs several separate "screens"
+ on a single physical character-based terminal. Each virtual terminal
+ emulates a DEC VT100 plus several ANSI X3.64 and ISO 2022 functions.
+ Screen sessions can be detached and resumed later on a different terminal.
+
+ Screen also supports a whole slew of other features.
+ Some of these are: configurable input and output translation,
+ serial port support, configurable logging, multi-user support,
+ and utf8 charset support.
+
diff --git a/package/screen/screen-4.0.2-100-cross-compile.patch b/package/screen/screen-4.0.2-100-cross-compile.patch
new file mode 100644
index 0000000..4c22bf2
--- /dev/null
+++ b/package/screen/screen-4.0.2-100-cross-compile.patch
@@ -0,0 +1,967 @@
+diff -c screen.orig/configure screen-4.0.2/configure
+*** screen.orig/configure 2003-12-05 13:46:53.000000000 +0000
+--- screen-4.0.2/configure 2008-04-05 18:48:27.000000000 +0100
+***************
+*** 124,130 ****
+ fi
+ if test ! -f "$as_myself"; then
+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
+! { (exit 1); exit 1; }; }
+ fi
+ case $CONFIG_SHELL in
+ '')
+--- 124,130 ----
+ fi
+ if test ! -f "$as_myself"; then
+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
+! }
+ fi
+ case $CONFIG_SHELL in
+ '')
+***************
+*** 174,180 ****
+ ' >$as_me.lineno &&
+ chmod +x $as_me.lineno ||
+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+! { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+--- 174,180 ----
+ ' >$as_me.lineno &&
+ chmod +x $as_me.lineno ||
+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+! }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+***************
+*** 397,403 ****
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+! { (exit 1); exit 1; }; }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ eval "enable_$ac_feature=no" ;;
+
+--- 397,403 ----
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+! }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ eval "enable_$ac_feature=no" ;;
+
+***************
+*** 406,412 ****
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+! { (exit 1); exit 1; }; }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+--- 406,412 ----
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+! }
+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+***************
+*** 588,594 ****
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+! { (exit 1); exit 1; }; }
+ ac_package=`echo $ac_package| sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+--- 588,594 ----
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+! }
+ ac_package=`echo $ac_package| sed 's/-/_/g'`
+ case $ac_option in
+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+***************
+*** 601,607 ****
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+! { (exit 1); exit 1; }; }
+ ac_package=`echo $ac_package | sed 's/-/_/g'`
+ eval "with_$ac_package=no" ;;
+
+--- 601,607 ----
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid package name: $ac_package" >&2
+! }
+ ac_package=`echo $ac_package | sed 's/-/_/g'`
+ eval "with_$ac_package=no" ;;
+
+***************
+*** 625,631 ****
+
+ -*) { echo "$as_me: error: unrecognized option: $ac_option
+ Try \`$0 --help' for more information." >&2
+! { (exit 1); exit 1; }; }
+ ;;
+
+ *=*)
+--- 625,631 ----
+
+ -*) { echo "$as_me: error: unrecognized option: $ac_option
+ Try \`$0 --help' for more information." >&2
+! }
+ ;;
+
+ *=*)
+***************
+*** 633,639 ****
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+! { (exit 1); exit 1; }; }
+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+ eval "$ac_envvar='$ac_optarg'"
+ export $ac_envvar ;;
+--- 633,639 ----
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+! }
+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+ eval "$ac_envvar='$ac_optarg'"
+ export $ac_envvar ;;
+***************
+*** 652,658 ****
+ if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ { echo "$as_me: error: missing argument to $ac_option" >&2
+! { (exit 1); exit 1; }; }
+ fi
+
+ # Be sure to have absolute paths.
+--- 652,658 ----
+ if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ { echo "$as_me: error: missing argument to $ac_option" >&2
+! }
+ fi
+
+ # Be sure to have absolute paths.
+***************
+*** 662,668 ****
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+! { (exit 1); exit 1; }; };;
+ esac
+ done
+
+--- 662,668 ----
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+! };;
+ esac
+ done
+
+***************
+*** 674,680 ****
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+! { (exit 1); exit 1; }; };;
+ esac
+ done
+
+--- 674,680 ----
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) ;;
+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+! };;
+ esac
+ done
+
+***************
+*** 728,742 ****
+ if test ! -r $srcdir/$ac_unique_file; then
+ if test "$ac_srcdir_defaulted" = yes; then
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+! { (exit 1); exit 1; }; }
+ else
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+! { (exit 1); exit 1; }; }
+ fi
+ fi
+ (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+! { (exit 1); exit 1; }; }
+ srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ ac_env_build_alias_set=${build_alias+set}
+ ac_env_build_alias_value=$build_alias
+--- 728,742 ----
+ if test ! -r $srcdir/$ac_unique_file; then
+ if test "$ac_srcdir_defaulted" = yes; then
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+! }
+ else
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+! }
+ fi
+ fi
+ (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+! }
+ srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ ac_env_build_alias_set=${build_alias+set}
+ ac_env_build_alias_value=$build_alias
+***************
+*** 1243,1249 ****
+ echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+ echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+
+ ac_ext=c
+--- 1243,1249 ----
+ echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+ echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+! }
+ fi
+
+ ac_ext=c
+***************
+*** 1734,1740 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: no acceptable C compiler found in \$PATH
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+
+ # Provide some information about the compiler.
+ echo "$as_me:$LINENO:" \
+--- 1734,1740 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: no acceptable C compiler found in \$PATH
+ See \`config.log' for more details." >&2;}
+! }
+
+ # Provide some information about the compiler.
+ echo "$as_me:$LINENO:" \
+***************
+*** 1856,1862 ****
+ echo "$as_me: error: cannot run C compiled programs.
+ If you meant to cross compile, use \`--host'.
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ fi
+ fi
+--- 1856,1862 ----
+ echo "$as_me: error: cannot run C compiled programs.
+ If you meant to cross compile, use \`--host'.
+ See \`config.log' for more details." >&2;}
+! }
+ fi
+ fi
+ fi
+***************
+*** 1898,1904 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+
+ rm -f conftest$ac_cv_exeext
+--- 1898,1904 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+ See \`config.log' for more details." >&2;}
+! }
+ fi
+
+ rm -f conftest$ac_cv_exeext
+***************
+*** 1950,1956 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot compute suffix of object files: cannot compile
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+
+ rm -f conftest.$ac_cv_objext conftest.$ac_ext
+--- 1950,1956 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot compute suffix of object files: cannot compile
+ See \`config.log' for more details." >&2;}
+! }
+ fi
+
+ rm -f conftest.$ac_cv_objext conftest.$ac_ext
+***************
+*** 2514,2520 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+
+ ac_ext=c
+--- 2514,2520 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+ See \`config.log' for more details." >&2;}
+! }
+ fi
+
+ ac_ext=c
+***************
+*** 2704,2710 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 2704,2710 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 2753,2759 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 2753,2759 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 2790,2796 ****
+
+ { { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
+ echo "$as_me: error: Can't run the compiler - sorry" >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+--- 2790,2796 ----
+
+ { { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
+ echo "$as_me: error: Can't run the compiler - sorry" >&2;}
+! }
+ fi
+ rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+***************
+*** 2800,2806 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 2800,2806 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 2830,2836 ****
+ (exit $ac_status); }; }; then
+ { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
+ echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ echo "$as_me: program exited with status $ac_status" >&5
+ echo "$as_me: failed program was:" >&5
+--- 2830,2836 ----
+ (exit $ac_status); }; }; then
+ { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
+ echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
+! }
+ else
+ echo "$as_me: program exited with status $ac_status" >&5
+ echo "$as_me: failed program was:" >&5
+***************
+*** 2900,2906 ****
+ if test -z "$ac_aux_dir"; then
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
+ echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+--- 2900,2906 ----
+ if test -z "$ac_aux_dir"; then
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
+ echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
+! }
+ fi
+ ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+***************
+*** 4149,4155 ****
+
+ { { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
+ echo "$as_me: error: !!! no select - no screen" >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+
+--- 4149,4155 ----
+
+ { { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
+ echo "$as_me: error: !!! no select - no screen" >&2;}
+! }
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+
+***************
+*** 4163,4169 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 4163,4169 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 4272,4278 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 4272,4278 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 4365,4371 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 4365,4371 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 4460,4466 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 4460,4466 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 4562,4568 ****
+ else
+ { { echo "$as_me:$LINENO: error: you have neither usable sockets nor usable pipes -> no screen" >&5
+ echo "$as_me: error: you have neither usable sockets nor usable pipes -> no screen" >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+
+
+--- 4562,4568 ----
+ else
+ { { echo "$as_me:$LINENO: error: you have neither usable sockets nor usable pipes -> no screen" >&5
+ echo "$as_me: error: you have neither usable sockets nor usable pipes -> no screen" >&2;}
+! }
+ fi
+
+
+***************
+*** 4573,4579 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 4573,4579 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 4898,4904 ****
+
+ { { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
+ echo "$as_me: error: !!! no tgetent - no screen" >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+ fi
+--- 4898,4904 ----
+
+ { { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
+ echo "$as_me: error: !!! no tgetent - no screen" >&2;}
+! }
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+ fi
+***************
+*** 4915,4921 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 4915,4921 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 5359,5365 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 5359,5365 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 6206,6212 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 6206,6212 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 6482,6488 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 6482,6488 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 6598,6605 ****
+ LIBS="$oldlibs"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+- test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
+- test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
+ oldlibs="$LIBS"
+ LIBS="$LIBS -lsun"
+ { echo "$as_me:$LINENO: checking IRIX sun library..." >&5
+--- 6598,6603 ----
+***************
+*** 7004,7010 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 7002,7008 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 7056,7062 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 7054,7060 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 7110,7116 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 7108,7114 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 7951,7957 ****
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! { (exit 1); exit 1; }; }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+--- 7949,7955 ----
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&2;}
+! }
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+***************
+*** 7982,7988 ****
+ ( exit $ac_status )
+ { { echo "$as_me:$LINENO: error: Can't run the compiler - internal error. Sorry." >&5
+ echo "$as_me: error: Can't run the compiler - internal error. Sorry." >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+--- 7980,7986 ----
+ ( exit $ac_status )
+ { { echo "$as_me:$LINENO: error: Can't run the compiler - internal error. Sorry." >&5
+ echo "$as_me: error: Can't run the compiler - internal error. Sorry." >&2;}
+! }
+ fi
+ rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+***************
+*** 8251,8257 ****
+ if test ! -f "$as_myself"; then
+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+! { (exit 1); exit 1; }; }
+ fi
+ case $CONFIG_SHELL in
+ '')
+--- 8249,8255 ----
+ if test ! -f "$as_myself"; then
+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+! }
+ fi
+ case $CONFIG_SHELL in
+ '')
+***************
+*** 8302,8308 ****
+ chmod +x $as_me.lineno ||
+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+! { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+--- 8300,8306 ----
+ chmod +x $as_me.lineno ||
+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+! }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+***************
+*** 8494,8500 ****
+ Try \`$0 --help' for more information." >&5
+ echo "$as_me: error: ambiguous option: $1
+ Try \`$0 --help' for more information." >&2;}
+! { (exit 1); exit 1; }; };;
+ --help | --hel | -h )
+ echo "$ac_cs_usage"; exit 0 ;;
+ --debug | --d* | -d )
+--- 8492,8498 ----
+ Try \`$0 --help' for more information." >&5
+ echo "$as_me: error: ambiguous option: $1
+ Try \`$0 --help' for more information." >&2;}
+! };;
+ --help | --hel | -h )
+ echo "$ac_cs_usage"; exit 0 ;;
+ --debug | --d* | -d )
+***************
+*** 8516,8522 ****
+ Try \`$0 --help' for more information." >&5
+ echo "$as_me: error: unrecognized option: $1
+ Try \`$0 --help' for more information." >&2;}
+! { (exit 1); exit 1; }; } ;;
+
+ *) ac_config_targets="$ac_config_targets $1" ;;
+
+--- 8514,8520 ----
+ Try \`$0 --help' for more information." >&5
+ echo "$as_me: error: unrecognized option: $1
+ Try \`$0 --help' for more information." >&2;}
+! } ;;
+
+ *) ac_config_targets="$ac_config_targets $1" ;;
+
+***************
+*** 8555,8561 ****
+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+ echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+! { (exit 1); exit 1; }; };;
+ esac
+ done
+
+--- 8553,8559 ----
+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+ echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+! };;
+ esac
+ done
+
+***************
+*** 8750,8756 ****
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+! { (exit 1); exit 1; }; }; }
+
+ ac_builddir=.
+
+--- 8748,8754 ----
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+! }; }
+
+ ac_builddir=.
+
+***************
+*** 8816,8822 ****
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! { (exit 1); exit 1; }; }
+ echo $f;;
+ *) # Relative
+ if test -f "$f"; then
+--- 8814,8820 ----
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! }
+ echo $f;;
+ *) # Relative
+ if test -f "$f"; then
+***************
+*** 8829,8835 ****
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! { (exit 1); exit 1; }; }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+--- 8827,8833 ----
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+***************
+*** 8907,8913 ****
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! { (exit 1); exit 1; }; }
+ echo $f;;
+ *) # Relative
+ if test -f "$f"; then
+--- 8905,8911 ----
+ # Absolute (can't be DOS-style, as IFS=:)
+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! }
+ echo $f;;
+ *) # Relative
+ if test -f "$f"; then
+***************
+*** 8920,8926 ****
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! { (exit 1); exit 1; }; }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+--- 8918,8924 ----
+ # /dev/null tree
+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+ echo "$as_me: error: cannot find input file: $f" >&2;}
+! }
+ fi;;
+ esac
+ done` || { (exit 1); exit 1; }
+***************
+*** 9073,9079 ****
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+! { (exit 1); exit 1; }; }; }
+
+ rm -f $ac_file
+ mv $tmp/config.h $ac_file
+--- 9071,9077 ----
+ test ! -n "$as_dirs" || mkdir $as_dirs
+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+! }; }
+
+ rm -f $ac_file
+ mv $tmp/config.h $ac_file
+Common subdirectories: screen.orig/doc and screen-4.0.2/doc
+Common subdirectories: screen.orig/etc and screen-4.0.2/etc
+diff -c screen.orig/pty.c screen-4.0.2/pty.c
+*** screen.orig/pty.c 2003-09-08 15:26:18.000000000 +0100
+--- screen-4.0.2/pty.c 2008-04-05 18:48:27.000000000 +0100
+***************
+*** 34,42 ****
+ #endif
+
+ /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
+! #ifdef HAVE_SVR4_PTYS
+! # include <sys/stropts.h>
+! #endif
+
+ #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
+ # include <sys/ttold.h>
+--- 34,42 ----
+ #endif
+
+ /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
+! //#ifdef HAVE_SVR4_PTYS
+! //# include <sys/stropts.h>
+! //#endif
+
+ #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
+ # include <sys/ttold.h>
+diff -c screen.orig/sched.h screen-4.0.2/sched.h
+*** screen.orig/sched.h 2002-01-08 15:42:43.000000000 +0000
+--- screen-4.0.2/sched.h 2008-04-05 18:48:27.000000000 +0100
+***************
+*** 22,27 ****
+--- 22,32 ----
+ * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
+ */
+
++ #ifndef __SCHED_H
++ #define __SCHED_H
++
++ #include <sys/time.h>
++
+ struct event
+ {
+ struct event *next;
+***************
+*** 41,43 ****
+--- 46,50 ----
+ #define EV_READ 1
+ #define EV_WRITE 2
+ #define EV_ALWAYS 3
++
++ #endif
+Common subdirectories: screen.orig/terminfo and screen-4.0.2/terminfo
+Common subdirectories: screen.orig/utf8encodings and screen-4.0.2/utf8encodings
diff --git a/package/screen/screen.mk b/package/screen/screen.mk
new file mode 100644
index 0000000..3baab7b
--- /dev/null
+++ b/package/screen/screen.mk
@@ -0,0 +1,61 @@
+#############################################################
+#
+# screen
+#
+#############################################################
+SCREEN_VERSION:=4.0.2
+SCREEN_SOURCE:=screen-$(SCREEN_VERSION).tar.gz
+SCREEN_SITE:=$(BR2_GNU_MIRROR)/screen
+SCREEN_DIR:=$(BUILD_DIR)/screen-$(SCREEN_VERSION)
+SCREEN_BINARY:=screen
+SCREEN_TARGET_BINARY:=usr/bin/screen
+
+$(DL_DIR)/$(SCREEN_SOURCE):
+ $(WGET) -P $(DL_DIR) $(SCREEN_SITE)/$(SCREEN_SOURCE)
+
+$(SCREEN_DIR)/.source: $(DL_DIR)/$(SCREEN_SOURCE)
+ $(ZCAT) $(DL_DIR)/$(SCREEN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(SCREEN_DIR) package/screen/ screen-$(SCREEN_VERSION)\*.patch
+ $(CONFIG_UPDATE) $(SCREEN_DIR)
+ touch $@
+
+$(SCREEN_DIR)/.configured: $(SCREEN_DIR)/.source
+ (cd $(SCREEN_DIR); rm -f config.cache; echo Force autoconf; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CONFIGURE_ARGS) \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --disable-socket-dir \
+ --sysconfdir=/etc; \
+ )
+ touch $@
+
+$(SCREEN_DIR)/$(SCREEN_BINARY): $(SCREEN_DIR)/.configured
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(SCREEN_DIR)
+ touch -c $@
+
+$(TARGET_DIR)/$(SCREEN_TARGET_BINARY): $(SCREEN_DIR)/$(SCREEN_BINARY)
+ cp -a $(SCREEN_DIR)/$(SCREEN_BINARY) $(TARGET_DIR)/$(SCREEN_TARGET_BINARY)
+
+screen: uclibc ncurses $(TARGET_DIR)/$(SCREEN_TARGET_BINARY)
+
+screen-source: $(DL_DIR)/$(SCREEN_SOURCE)
+
+screen-clean:
+ $(MAKE) prefix=$(TARGET_DIR)/usr -C $(SCREEN_DIR) uninstall
+ -$(MAKE) -C $(SCREEN_DIR) clean
+
+screen-dirclean:
+ rm -rf $(SCREEN_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_SCREEN)),y)
+TARGETS+=screen
+endif
--
1.5.4.3
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target
2008-04-08 19:41 [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Michel
@ 2008-04-08 19:41 ` Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] IPTRAF: Added Interactive Colorful IP LAN Monitor Michel
2008-04-09 7:02 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Nigel Kukard
2008-04-08 19:57 ` [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Nigel Kukard
1 sibling, 2 replies; 10+ messages in thread
From: Michel @ 2008-04-08 19:41 UTC (permalink / raw)
To: buildroot
From: Michel <michel.git@pollet.net>
Some package use ncurses libpanel/libform/libmenu, this config allows to selectively
copy them to the target filesystem at the same time at the main library is installed.
---
package/ncurses/Config.in | 22 ++++++++++++++++++++++
package/ncurses/ncurses.mk | 9 +++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/package/ncurses/Config.in b/package/ncurses/Config.in
index 9a50768..904b924 100644
--- a/package/ncurses/Config.in
+++ b/package/ncurses/Config.in
@@ -13,3 +13,25 @@ config BR2_PACKAGE_NCURSES_TARGET_HEADERS
depends on BR2_PACKAGE_NCURSES
help
Ncurses headers in target
+
+config BR2_PACKAGE_NCURSES_TARGET_PANEL
+ bool "ncurses libpanel in target"
+ default n
+ depends on BR2_PACKAGE_NCURSES
+ help
+ Ncurses headers in target
+ Includes ncurses dynamic libpanel in target
+
+config BR2_PACKAGE_NCURSES_TARGET_FORM
+ bool "ncurses libform in target"
+ default n
+ depends on BR2_PACKAGE_NCURSES
+ help
+ Includes ncurses dynamic libform in target
+
+config BR2_PACKAGE_NCURSES_TARGET_MENU
+ bool "ncurses libmenu in target"
+ default n
+ depends on BR2_PACKAGE_NCURSES
+ help
+ Includes ncurses dynamic libmenu in target
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index ecdf00e..f65b77d 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -104,6 +104,15 @@ $(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION): $(NCURSES_DIR)/lib/libncurs
$(TARGET_DIR)/lib/libncurses.so.$(NCURSES_VERSION): $(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION)
cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_PANEL)),y)
+ cp -dpf $(NCURSES_DIR)/lib/libpanel.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_FORM)),y)
+ cp -dpf $(NCURSES_DIR)/lib/libform.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_MENU)),y)
+ cp -dpf $(NCURSES_DIR)/lib/libmenu.so* $(TARGET_DIR)/lib/
+endif
ln -sf /usr/share/terminfo $(TARGET_DIR)/usr/lib/terminfo
mkdir -p $(TARGET_DIR)/usr/share/terminfo/x
cp -dpf $(STAGING_DIR)/usr/share/terminfo/x/xterm $(TARGET_DIR)/usr/share/terminfo/x
--
1.5.4.3
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] IPTRAF: Added Interactive Colorful IP LAN Monitor
2008-04-08 19:41 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Michel
@ 2008-04-08 19:41 ` Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] U-BOOT: A patch to fix the fw_printenv compilation Michel
2008-04-09 7:02 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Nigel Kukard
1 sibling, 1 reply; 10+ messages in thread
From: Michel @ 2008-04-08 19:41 UTC (permalink / raw)
To: buildroot
From: Michel <michel.git@pollet.net>
IPTraf is an ncurses-based IP LAN monitor that generates various network statistics
including TCP info, UDP counts, ICMP and OSPF information, Ethernet load info, node
stats, IP checksum errors, and others.
---
package/Config.in | 1 +
package/iptraf/Config.in | 14 ++++
.../iptraf/iptraf-3.0.1-100-cross-compile.patch | 83 ++++++++++++++++++++
package/iptraf/iptraf.mk | 49 ++++++++++++
4 files changed, 147 insertions(+), 0 deletions(-)
create mode 100644 package/iptraf/Config.in
create mode 100644 package/iptraf/iptraf-3.0.1-100-cross-compile.patch
create mode 100644 package/iptraf/iptraf.mk
diff --git a/package/Config.in b/package/Config.in
index 3ca06ff..751623c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -314,6 +314,7 @@ source "package/slang/Config.in"
comment "text rendering applications"
source "package/dialog/Config.in"
source "package/screen/Config.in"
+source "package/iptraf/Config.in"
comment "graphic libraries"
source "package/directfb/Config.in"
diff --git a/package/iptraf/Config.in b/package/iptraf/Config.in
new file mode 100644
index 0000000..ce0d3f8
--- /dev/null
+++ b/package/iptraf/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_IPTRAF
+ bool "iptraf"
+ default n
+ select BR2_PACKAGE_NCURSES
+ select BR2_PACKAGE_NCURSES_TARGET_PANEL
+ help
+ iptraf - Interactive Colorful IP LAN Monitor
+
+ IPTraf is an ncurses-based IP LAN monitor that generates various
+ network statistics including TCP info, UDP counts, ICMP and OSPF
+ information, Ethernet load info, node stats, IP checksum errors,
+ and others.
+ This package depends on ncurses's libpanel library
+
diff --git a/package/iptraf/iptraf-3.0.1-100-cross-compile.patch b/package/iptraf/iptraf-3.0.1-100-cross-compile.patch
new file mode 100644
index 0000000..5cf8469
--- /dev/null
+++ b/package/iptraf/iptraf-3.0.1-100-cross-compile.patch
@@ -0,0 +1,83 @@
+diff -ru iptraf-3.0.1/src/Makefile iptraf-3.0.1.buildroot/src/Makefile
+--- iptraf-3.0.1/src/Makefile 2005-09-13 10:11:17.000000000 +0100
++++ iptraf-3.0.1.buildroot/src/Makefile 2008-04-05 20:23:14.000000000 +0100
+@@ -5,9 +5,9 @@
+ #
+ # Architecture determination string borrowed from the kernel makefile.
+ #
+-ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
++ARCH := $(shell $(GCC) -dumpmachine | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+ -e s/arm.*/arm/ -e s/sa110/arm/)
+-PLATFORM = -DPLATFORM=\"$(shell uname -s)/$(ARCH)\"
++PLATFORM = -DPLATFORM=\"$(ARCH)\"
+ VERNUMBER := $(shell cat version)
+ VERSION = -DVERSION=\"$(VERNUMBER)\"
+
+@@ -17,7 +17,7 @@
+ #
+ BINDIR = ../../iptraf-$(VERNUMBER).bin.$(ARCH)
+
+-CC = gcc
++CC = $(GCC)
+ LIBS = -L../support -ltextbox -lpanel -lncurses # in this order!
+
+ # comment this one out to omit debug code when done.
+@@ -39,7 +39,7 @@
+ # you may want to change this to point to your ncurses include directory
+ # if the ncurses include files are not in the default location.
+
+-INCLUDEDIR = -I/usr/include/ncurses -I../support
++INCLUDEDIR = -I../support
+
+ # You can uncomment this one to disable the backspace key in input fields.
+ # This means you must use the Del key or Ctrl+H combination to erase the
+@@ -68,12 +68,12 @@
+ # installation target directory. The iptraf and rvnamed programs get
+ # stored here. iptraf also exec's rvnamed from this directory.
+
+-TARGET = /usr/local/bin
++TARGET = /usr/bin
+
+ # The IPTraf working directory; if you change this. Starting with this
+ # version, this definition overrides dirs.h.
+
+-WORKDIR = /var/local/iptraf
++WORKDIR = /var/run/iptraf
+
+ # The IPTraf log file directory. IPTraf log files are placed here.
+ # This definition overrides dirs.h
+diff -ru iptraf-3.0.1/src/tr.c iptraf-3.0.1.buildroot/src/tr.c
+--- iptraf-3.0.1/src/tr.c 2005-09-13 07:42:54.000000000 +0100
++++ iptraf-3.0.1.buildroot/src/tr.c 2008-04-05 20:31:18.000000000 +0100
+@@ -6,9 +6,9 @@
+ * Copyright (c) Gerard Paul Java 2002
+ */
+
+-#include <asm/types.h>
+-#include <linux/if_tr.h>
+-#include <netinet/in.h>
++/*#include <asm/types.h> */
++#include <linux/if_tr.h>
++/*#include <netinet/in.h> */
+
+ unsigned int get_tr_ip_offset(unsigned char *pkt)
+ {
+diff -ru iptraf-3.0.1/support/Makefile iptraf-3.0.1.buildroot/support/Makefile
+--- iptraf-3.0.1/support/Makefile 2002-07-19 17:31:48.000000000 +0100
++++ iptraf-3.0.1.buildroot/support/Makefile 2008-04-05 20:35:16.000000000 +0100
+@@ -7,12 +7,12 @@
+
+ libtextbox.a: $(OBJS)
+ rm -rf libtextbox.a
+- ar cq libtextbox.a $(OBJS)
+- ranlib libtextbox.a
++ $(AR) cq libtextbox.a $(OBJS)
++ $(RANLIB) libtextbox.a
+ # gcc -shared -o libtextbox.so $(OBJS)
+
+ %.o: %.c *.h
+- gcc -O2 -g -Wall -fPIC $(INCLUDEDIR) -c -o $*.o $<
++ $(GCC) $(CFLAGS) $(INCLUDEDIR) -c -o $*.o $<
+
+ clean:
+ rm -rf *.o *~ libtextbox.a libtextbox.so
diff --git a/package/iptraf/iptraf.mk b/package/iptraf/iptraf.mk
new file mode 100644
index 0000000..990a071
--- /dev/null
+++ b/package/iptraf/iptraf.mk
@@ -0,0 +1,49 @@
+#############################################################
+#
+# iptraf
+#
+#############################################################
+IPTRAF_VERSION:=3.0.1
+IPTRAF_SOURCE:=iptraf-$(IPTRAF_VERSION).tar.gz
+IPTRAF_SITE:=ftp://iptraf.seul.org/pub/iptraf/
+IPTRAF_DIR:=$(BUILD_DIR)/iptraf-$(IPTRAF_VERSION)
+IPTRAF_BINARY:=src/iptraf
+IPTRAF_TARGET_BINARY:=usr/bin/iptraf
+
+$(DL_DIR)/$(IPTRAF_SOURCE):
+ $(WGET) -P $(DL_DIR) $(IPTRAF_SITE)/$(IPTRAF_SOURCE)
+
+$(IPTRAF_DIR)/.source: $(DL_DIR)/$(IPTRAF_SOURCE)
+ $(ZCAT) $(DL_DIR)/$(IPTRAF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(IPTRAF_DIR) package/iptraf/ iptraf-$(IPTRAF_VERSION)\*.patch
+ if [ ! -f $(IPTRAF_DIR)/Makefile ]; then printf "\nall:\n\nuninstall:\n\n">$(IPTRAF_DIR)/Makefile ; fi
+ $(CONFIG_UPDATE) $(IPTRAF_DIR)
+ touch $@
+
+$(IPTRAF_DIR)/$(IPTRAF_BINARY): $(IPTRAF_DIR)/.source
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(IPTRAF_DIR)/src
+ touch -c $@
+
+$(TARGET_DIR)/$(IPTRAF_TARGET_BINARY): $(IPTRAF_DIR)/$(IPTRAF_BINARY)
+ cp -a $(IPTRAF_DIR)/src/{iptraf,rvnamed,rawtime} $(TARGET_DIR)/usr/bin/
+
+iptraf: uclibc ncurses $(TARGET_DIR)/$(IPTRAF_TARGET_BINARY)
+
+iptraf-source: $(DL_DIR)/$(IPTRAF_SOURCE)
+
+iptraf-clean:
+ $(MAKE) prefix=$(TARGET_DIR)/usr -C $(IPTRAF_DIR) uninstall
+ -$(MAKE) -C $(IPTRAF_DIR)/src clean
+
+iptraf-dirclean:
+ rm -rf $(IPTRAF_DIR)
+
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_IPTRAF)),y)
+TARGETS+=iptraf
+endif
--
1.5.4.3
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH] U-BOOT: A patch to fix the fw_printenv compilation
2008-04-08 19:41 ` [Buildroot] [PATCH] IPTRAF: Added Interactive Colorful IP LAN Monitor Michel
@ 2008-04-08 19:41 ` Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] U-BOOT: Added support for linux userland environmnet access Michel
0 siblings, 1 reply; 10+ messages in thread
From: Michel @ 2008-04-08 19:41 UTC (permalink / raw)
To: buildroot
From: Michel <michel.git@pollet.net>
Signed-off-by: Michel <michel.git@pollet.net>
---
...oot-1.3.0-env-110-fw_printenv_compile_fix.patch | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
create mode 100644 target/u-boot/u-boot-1.3.0-env-110-fw_printenv_compile_fix.patch
diff --git a/target/u-boot/u-boot-1.3.0-env-110-fw_printenv_compile_fix.patch b/target/u-boot/u-boot-1.3.0-env-110-fw_printenv_compile_fix.patch
new file mode 100644
index 0000000..268a6ff
--- /dev/null
+++ b/target/u-boot/u-boot-1.3.0-env-110-fw_printenv_compile_fix.patch
@@ -0,0 +1,12 @@
+diff -ruN u-boot-1.3.0/tools/env/fw_env.c u-boot-1.3.0.new/tools/env/fw_env.c
+--- u-boot-1.3.0/tools/env/fw_env.c 2007-11-19 21:20:24.000000000 +0000
++++ u-boot-1.3.0.new/tools/env/fw_env.c 2008-04-07 15:34:51.000000000 +0100
+@@ -31,7 +31,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+-#include <linux/mtd/mtd.h>
++#include <mtd/mtd-user.h>
+ #include "fw_env.h"
+
+ typedef unsigned char uchar;
--
1.5.4.3
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] U-BOOT: Added support for linux userland environmnet access
2008-04-08 19:41 ` [Buildroot] [PATCH] U-BOOT: A patch to fix the fw_printenv compilation Michel
@ 2008-04-08 19:41 ` Michel
0 siblings, 0 replies; 10+ messages in thread
From: Michel @ 2008-04-08 19:41 UTC (permalink / raw)
To: buildroot
From: Michel <michel.git@pollet.net>
The config allows to add fw_printenv to the target filesystem, and also
to selectively add a link to fw_setenv and allow changing the environment.
The new configuration options also let you specify a (simple) set of
parameters that will be used to create a working comfiguration file in
the target's .../etc/fw_env.config.
Note that the fw_setenv will only work if the MTD partition is R/W. Some
kernels (avr32...) map it read-only by default.
---
target/u-boot/Config.in | 56 +++++++++++++++++++++++++++++++++++++++++++++
target/u-boot/Makefile.in | 29 +++++++++++++++++++++++
2 files changed, 85 insertions(+), 0 deletions(-)
diff --git a/target/u-boot/Config.in b/target/u-boot/Config.in
index 66ebaf5..c31bccf 100644
--- a/target/u-boot/Config.in
+++ b/target/u-boot/Config.in
@@ -20,6 +20,62 @@ config BR2_TARGET_UBOOT_CUSTOM_PATCH
If your board requires a custom patch, add the path to the file here.
Most users may leave this empty
+config BR2_TARGET_UBOOT_LINUX_ENV
+ bool "fw_printenv: linux userspace environment access"
+ depends on BR2_TARGET_UBOOT
+ help
+ Compile fw_printenv and add it to the target linux filesystem
+ It is also possible to symlink fw_setenv from it.
+ Note that the command needs a /etc/fw_env.config to work. Check
+ u-boot/tools/env/fw_env.config for an example to be adapted for
+ your board.
+
+config BR2_TARGET_UBOOT_LINUX_SETENV
+ bool "Also create fw_setenv link"
+ depends on BR2_TARGET_UBOOT_LINUX_ENV
+ help
+ Creates the link to fw_printenv to allow userspace to change
+ u-boot environment variables from shell scripts.
+ *Note* that your board setup code might mark the environment
+ flash partition as read only, in which case you will have to change
+ that for this command to work.
+
+config BR2_TARGET_UBOOT_LINUX_HASENV
+ bool "Specify a default environment access"
+ depends on BR2_TARGET_UBOOT_LINUX_ENV
+ help
+ Specifies the environment location and size for a default
+ Non-redundant u-boot environment. This will create a
+ /etc/fw_env.config into the target filesystem
+
+config BR2_TARGET_UBOOT_ENV_MTDDEV
+ string "MTD device pathname"
+ depends on BR2_TARGET_UBOOT_LINUX_HASENV
+ default "/dev/mtd2"
+ help
+ MTD device to use for environment
+
+config BR2_TARGET_UBOOT_ENV_MTDOFF
+ string "MTD device offset"
+ depends on BR2_TARGET_UBOOT_LINUX_HASENV
+ default "0x0000"
+ help
+ MTD device offset
+
+config BR2_TARGET_UBOOT_ENV_MTDSIZE
+ string "MTD environment sise"
+ depends on BR2_TARGET_UBOOT_LINUX_HASENV
+ default "0x10000"
+ help
+ MTD environment total size
+
+config BR2_TARGET_UBOOT_ENV_MTDESIZE
+ string "MTD environment erase sector sise"
+ depends on BR2_TARGET_UBOOT_LINUX_HASENV
+ default "0x10000"
+ help
+ MTD environment erase sector size
+
config BR2_TARGET_UBOOT_SERVERIP
string "server ip"
depends on BR2_TARGET_UBOOT
diff --git a/target/u-boot/Makefile.in b/target/u-boot/Makefile.in
index deb10ea..a27ae83 100644
--- a/target/u-boot/Makefile.in
+++ b/target/u-boot/Makefile.in
@@ -11,6 +11,8 @@ U_BOOT_PATCH_DIR:=$(PROJECT_BUILD_DIR)/u-boot-patches
U_BOOT_CAT:=$(BZCAT)
U_BOOT_BIN:=u-boot.bin
U_BOOT_TOOLS_BIN:=mkimage
+U_BOOT_PRINTENV_BIN:=fw_printenv
+U_BOOT_ENV_TARGET_DIR:=$(TARGET_DIR)/usr/bin
ifneq ($(BR2_TARGET_U_BOOT_CONFIG_BOARD),)
U_BOOT_INC_CONF_FILE:=$(U_BOOT_DIR)/include/configs/$(subst _config,,$(BR2_TARGET_U_BOOT_CONFIG_BOARD)).h
@@ -42,6 +44,10 @@ ifneq ($(strip $(BR2_TARGET_UBOOT_CUSTOM_PATCH)),"")
cp -dpr $(BR2_TARGET_UBOOT_CUSTOM_PATCH) $(U_BOOT_PATCH_DIR)
toolchain/patch-kernel.sh $(U_BOOT_DIR) $(U_BOOT_PATCH_DIR) *.patch
endif
+ifeq ($(strip $(BR2_TARGET_UBOOT_LINUX_ENV)),y)
+ toolchain/patch-kernel.sh $(U_BOOT_DIR) target/u-boot/ \
+ u-boot-$(U_BOOT_VERSION)-env-*.patch
+endif
touch $@
$(U_BOOT_DIR)/.header_copied: $(U_BOOT_DIR)/.patched
@@ -105,11 +111,34 @@ $(U_BOOT_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/.header_modified
LDFLAGS="$(TARGET_LDFLAGS)" \
$(MAKE) -C $(U_BOOT_DIR)
+$(U_BOOT_DIR)/tools/env/$(U_BOOT_PRINTENV_BIN):
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ $(MAKE) -C $(U_BOOT_DIR) env
+
+$(U_BOOT_DIR)/$(U_BOOT_PRINTENV_BIN): $(U_BOOT_DIR)/tools/env/$(U_BOOT_PRINTENV_BIN)
+ cp -dpf $(U_BOOT_DIR)/tools/env/$(U_BOOT_PRINTENV_BIN) $(U_BOOT_DIR)
+
+$(U_BOOT_ENV_TARGET_DIR)/$(U_BOOT_PRINTENV_BIN): $(U_BOOT_DIR)/$(U_BOOT_PRINTENV_BIN)
+ cp -dpf $(U_BOOT_DIR)/$(U_BOOT_PRINTENV_BIN) $(U_BOOT_ENV_TARGET_DIR)
+ifeq ($(strip $(BR2_TARGET_UBOOT_LINUX_SETENV)),y)
+ (cd $(U_BOOT_ENV_TARGET_DIR); ln -s fw_printenv fw_setenv)
+endif
+ifeq ($(strip $(BR2_TARGET_UBOOT_LINUX_HASENV)),y)
+ ( echo "# Automaticaly Generated from buildroot config";echo "$(BR2_TARGET_UBOOT_ENV_MTDDEV) $(BR2_TARGET_UBOOT_ENV_MTDOFF) $(BR2_TARGET_UBOOT_ENV_MTDSIZE) $(BR2_TARGET_UBOOT_ENV_MTDESIZE)") >$(TARGET_DIR)/etc/fw_env.config
+endif
+
+
$(BINARIES_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/$(U_BOOT_BIN)
cp -dpf $(U_BOOT_DIR)/$(U_BOOT_BIN) $(BINARIES_DIR)
cp -dpf $(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN) $(STAGING_DIR)/usr/bin/
+ifeq ($(strip $(BR2_TARGET_UBOOT_LINUX_ENV)),y)
+u-boot: gcc $(BINARIES_DIR)/$(U_BOOT_BIN) $(U_BOOT_ENV_TARGET_DIR)/$(U_BOOT_PRINTENV_BIN)
+else
u-boot: gcc $(BINARIES_DIR)/$(U_BOOT_BIN)
+endif
u-boot-clean:
-$(MAKE) -C $(U_BOOT_DIR) clean
--
1.5.4.3
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target
2008-04-08 19:41 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] IPTRAF: Added Interactive Colorful IP LAN Monitor Michel
@ 2008-04-09 7:02 ` Nigel Kukard
1 sibling, 0 replies; 10+ messages in thread
From: Nigel Kukard @ 2008-04-09 7:02 UTC (permalink / raw)
To: buildroot
> Some package use ncurses libpanel/libform/libmenu, this config allows to selectively
> copy them to the target filesystem at the same time at the main library is installed.
> ---
> package/ncurses/Config.in | 22 ++++++++++++++++++++++
> package/ncurses/ncurses.mk | 9 +++++++++
> 2 files changed, 31 insertions(+), 0 deletions(-)
<snip>
Can you attach patches please, makes it a little easier for us to
apply. :)
Also, please submit patches applied against latest SVN.
I've cleaned up the above patch against latest SVN, will test and
commit.
-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080409/6cad36ba/attachment.pgp
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] SCREEN: Added support for GNU Screen
2008-04-08 19:41 [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Michel
@ 2008-04-08 19:57 ` Nigel Kukard
2008-04-08 20:16 ` Michel
1 sibling, 1 reply; 10+ messages in thread
From: Nigel Kukard @ 2008-04-08 19:57 UTC (permalink / raw)
To: buildroot
> --- /dev/null
> +++ b/package/screen/screen-4.0.2-100-cross-compile.patch
> @@ -0,0 +1,967 @@
> +diff -c screen.orig/configure screen-4.0.2/configure
> +*** screen.orig/configure 2003-12-05 13:46:53.000000000 +0000
> +--- screen-4.0.2/configure 2008-04-05 18:48:27.000000000 +0100
<snip>
Can we not modify configure.ac/in and autoreconf? (assuming configure
is originally built from configure.in or configure.ac)
-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080408/325d1c54/attachment.pgp
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] SCREEN: Added support for GNU Screen
2008-04-08 19:57 ` [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Nigel Kukard
@ 2008-04-08 20:16 ` Michel
2008-04-09 5:15 ` Nigel Kukard
0 siblings, 1 reply; 10+ messages in thread
From: Michel @ 2008-04-08 20:16 UTC (permalink / raw)
To: buildroot
On Tuesday 08 April 2008, Nigel Kukard wrote:
> > --- /dev/null
> > +++ b/package/screen/screen-4.0.2-100-cross-compile.patch
> > @@ -0,0 +1,967 @@
> > +diff -c screen.orig/configure screen-4.0.2/configure
> > +*** screen.orig/configure 2003-12-05 13:46:53.000000000 +0000
> > +--- screen-4.0.2/configure 2008-04-05 18:48:27.000000000 +0100
>
> <snip>
>
> Can we not modify configure.ac/in and autoreconf? (assuming configure
> is originally built from configure.in or configure.ac)
>
> -N
You can't. I spent a lot of time trying. This configure relies /a lot/ on
testing the hosts libraries, and all of these test fail with these exit(1).
Unless you know of a magic auto*.* setting that skips the 'cross compile'
tests and/or errors, this is the only way I found to have it working...
Michel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] SCREEN: Added support for GNU Screen
2008-04-08 20:16 ` Michel
@ 2008-04-09 5:15 ` Nigel Kukard
2008-04-09 10:26 ` Michel
0 siblings, 1 reply; 10+ messages in thread
From: Nigel Kukard @ 2008-04-09 5:15 UTC (permalink / raw)
To: buildroot
> > > --- /dev/null
> > > +++ b/package/screen/screen-4.0.2-100-cross-compile.patch
> > > @@ -0,0 +1,967 @@
> > > +diff -c screen.orig/configure screen-4.0.2/configure
> > > +*** screen.orig/configure 2003-12-05 13:46:53.000000000 +0000
> > > +--- screen-4.0.2/configure 2008-04-05 18:48:27.000000000 +0100
> >
> > <snip>
> >
> > Can we not modify configure.ac/in and autoreconf? (assuming configure
> > is originally built from configure.in or configure.ac)
> >
> > -N
>
> You can't. I spent a lot of time trying. This configure relies /a lot/ on
> testing the hosts libraries, and all of these test fail with these exit(1).
> Unless you know of a magic auto*.* setting that skips the 'cross compile'
> tests and/or errors, this is the only way I found to have it working...
I really don't like adding a 40k patch, which will more than likely
break on each version bump. :)
Could you show me how to reproduce the errors when cross-compiling,
maybe send me your .config and I'll see what I can do?
-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080409/c3efdc49/attachment.pgp
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH] SCREEN: Added support for GNU Screen
2008-04-09 5:15 ` Nigel Kukard
@ 2008-04-09 10:26 ` Michel
0 siblings, 0 replies; 10+ messages in thread
From: Michel @ 2008-04-09 10:26 UTC (permalink / raw)
To: buildroot
On Wednesday 09 April 2008, Nigel Kukard wrote:
> > > > --- /dev/null
> > > > +++ b/package/screen/screen-4.0.2-100-cross-compile.patch
> > > > @@ -0,0 +1,967 @@
> > > > +diff -c screen.orig/configure screen-4.0.2/configure
> > > > +*** screen.orig/configure 2003-12-05 13:46:53.000000000 +0000
> > > > +--- screen-4.0.2/configure 2008-04-05 18:48:27.000000000 +0100
> > >
> > > <snip>
> > >
> > > Can we not modify configure.ac/in and autoreconf? (assuming configure
> > > is originally built from configure.in or configure.ac)
> > >
> > > -N
> >
> > You can't. I spent a lot of time trying. This configure relies /a lot/ on
> > testing the hosts libraries, and all of these test fail with these
> > exit(1). Unless you know of a magic auto*.* setting that skips the 'cross
> > compile' tests and/or errors, this is the only way I found to have it
> > working...
>
> I really don't like adding a 40k patch, which will more than likely
> break on each version bump. :)
>
> Could you show me how to reproduce the errors when cross-compiling,
> maybe send me your .config and I'll see what I can do?
>
> -N
Hi Nigel;
I think the easiest way is to apply the patch on a 'temp' tree, remove the
package/screen/*.patch file, 'make oldconfig' in buildroot, select
the 'screen' package, then 'make'. You will immediately see the dreaded
configure problems...
'screen' is very rarely updated tho, it's not a fast moving trendy package,
just a one that's indispensable once you grok it's power :-)
Michel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-04-09 10:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 19:41 [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] IPTRAF: Added Interactive Colorful IP LAN Monitor Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] U-BOOT: A patch to fix the fw_printenv compilation Michel
2008-04-08 19:41 ` [Buildroot] [PATCH] U-BOOT: Added support for linux userland environmnet access Michel
2008-04-09 7:02 ` [Buildroot] [PATCH] NCURSES: Added config support for copying ncurses 'extra' libraries to the target Nigel Kukard
2008-04-08 19:57 ` [Buildroot] [PATCH] SCREEN: Added support for GNU Screen Nigel Kukard
2008-04-08 20:16 ` Michel
2008-04-09 5:15 ` Nigel Kukard
2008-04-09 10:26 ` Michel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox