On 2018/11/04 10:29, Daniel Dickman wrote:
> The below overrides the cached autoconf value that says that we have
> sbrk(2) on our system and pretends like we don't have it.
>
> With this we can build tcsh without a need for sbrk(2).
>
> ok?

Should we just remove or change the entry in infrastructure/db/config.site
instead?

This is where it shows up.


$ find . -name 'configure*' -print0 | xargs -0 fgrep ac_cv_func_sbrk 2>/dev/null
./arm-elf-binutils-2.20/binutils-2.20/gas/configure:  ac_fn_c_check_func 
"$LINENO" "sbrk" "ac_cv_func_sbrk"
./arm-elf-binutils-2.20/binutils-2.20/gas/configure:if test "x$ac_cv_func_sbrk" 
= x""yes; then :
./msp430-binutils-2.21.1a/binutils-2.21.1/gas/configure:  ac_fn_c_check_func 
"$LINENO" "sbrk" "ac_cv_func_sbrk"
./msp430-binutils-2.21.1a/binutils-2.21.1/gas/configure:if test 
"x$ac_cv_func_sbrk" = x""yes; then :
./erlang-R16B03-1/otp_src_R16B03-1/erts/configure:if test "x$ac_cv_func_sbrk" = 
"xyes"; then
./erlang-R16B03-1/otp_src_R16B03-1/erts/configure:if test $ac_cv_func_sbrk = 
yes; then
./erlang-R16B03-1/otp_src_R16B03-1/erts/configure.in:if test 
"x$ac_cv_func_sbrk" = "xyes"; then
./erlang-R16B03-1/otp_src_R16B03-1/erts/configure.in:if test $ac_cv_func_sbrk = 
yes; then
./erlang-17.5/otp_src_17.5/erts/configure.in:if test "x$ac_cv_func_sbrk" = 
"xyes"; then
./erlang-17.5/otp_src_17.5/erts/configure.in:if test $ac_cv_func_sbrk = yes; 
then
./erlang-17.5/otp_src_17.5/erts/configure:if test "x$ac_cv_func_sbrk" = "xyes"; 
then
./erlang-17.5/otp_src_17.5/erts/configure:if test $ac_cv_func_sbrk = yes; then
./erlang-18.1/otp_src_18.1/erts/configure.in:if test "x$ac_cv_func_sbrk" = 
"xyes"; then
./erlang-18.1/otp_src_18.1/erts/configure.in:if test $ac_cv_func_sbrk = yes; 
then
./erlang-18.1/otp_src_18.1/erts/configure:if test "x$ac_cv_func_sbrk" = "xyes"; 
then
./erlang-18.1/otp_src_18.1/erts/configure:if test $ac_cv_func_sbrk = yes; then
./erlang-19.3/otp_src_19.3/erts/configure.in:if test "x$ac_cv_func_sbrk" = 
"xyes"; then
./erlang-19.3/otp_src_19.3/erts/configure.in:if test $ac_cv_func_sbrk = yes; 
then
./erlang-19.3/otp_src_19.3/erts/configure:if test "x$ac_cv_func_sbrk" = "xyes"; 
then
./erlang-19.3/otp_src_19.3/erts/configure:if test $ac_cv_func_sbrk = yes; then
./redis-4.0.11/redis-4.0.11/deps/jemalloc/configure:ac_fn_c_check_func 
"$LINENO" "sbrk" "ac_cv_func_sbrk"
./redis-4.0.11/redis-4.0.11/deps/jemalloc/configure:if test "x$ac_cv_func_sbrk" 
= xyes; then :
./spidermonkey-52.8.1/firefox-52.8.1esr/memory/jemalloc/src/configure:ac_fn_c_check_func
 "$LINENO" "sbrk" "ac_cv_func_sbrk"
./spidermonkey-52.8.1/firefox-52.8.1esr/memory/jemalloc/src/configure:if test 
"x$ac_cv_func_sbrk" = xyes; then :
./emacs-26.1-gtk3/emacs-26.1/configure:  *) test "$ac_cv_func_sbrk" = yes && 
system_malloc=$emacs_cv_sanitize_address;;
./emacs-26.1-gtk3/emacs-26.1/configure.ac:  *) test "$ac_cv_func_sbrk" = yes && 
system_malloc=$emacs_cv_sanitize_address;;
./emacs-26.1-gtk2/emacs-26.1/configure:  *) test "$ac_cv_func_sbrk" = yes && 
system_malloc=$emacs_cv_sanitize_address;;
./emacs-26.1-gtk2/emacs-26.1/configure.ac:  *) test "$ac_cv_func_sbrk" = yes && 
system_malloc=$emacs_cv_sanitize_address;;
./emacs-26.1-no_x11/emacs-26.1/configure:  *) test "$ac_cv_func_sbrk" = yes && 
system_malloc=$emacs_cv_sanitize_address;;
./emacs-26.1-no_x11/emacs-26.1/configure.ac:  *) test "$ac_cv_func_sbrk" = yes 
&& system_malloc=$emacs_cv_sanitize_address;;
./rust-1.29.1/rustc-1.29.1-src/src/jemalloc/configure:ac_fn_c_check_func 
"$LINENO" "sbrk" "ac_cv_func_sbrk"
./rust-1.29.1/rustc-1.29.1-src/src/jemalloc/configure:if test 
"x$ac_cv_func_sbrk" = xyes; then :
./thunderbird-52.9.1/thunderbird-52.9.1/mozilla/memory/jemalloc/src/configure:ac_fn_c_check_func
 "$LINENO" "sbrk" "ac_cv_func_sbrk"
./thunderbird-52.9.1/thunderbird-52.9.1/mozilla/memory/jemalloc/src/configure:if
 test "x$ac_cv_func_sbrk" = xyes; then :
./chromium-69.0.3497.100/chromium-69.0.3497.100/third_party/tcmalloc/gperftools-2.0/vendor/configure:
  ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
./chromium-69.0.3497.100/chromium-69.0.3497.100/third_party/tcmalloc/gperftools-2.0/vendor/configure:if
 test "x$ac_cv_func_sbrk" = x""yes; then :
./iridium-2018.5.67/iridium-browser-2018.5.67/third_party/tcmalloc/vendor/configure:
  ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
./iridium-2018.5.67/iridium-browser-2018.5.67/third_party/tcmalloc/vendor/configure:if
 test "x$ac_cv_func_sbrk" = x""yes; then :
./seamonkey-2.49.4/seamonkey-2.49.4/mozilla/memory/jemalloc/src/configure:ac_fn_c_check_func
 "$LINENO" "sbrk" "ac_cv_func_sbrk"
./seamonkey-2.49.4/seamonkey-2.49.4/mozilla/memory/jemalloc/src/configure:if 
test "x$ac_cv_func_sbrk" = xyes; then :
./tb-browser-7.5.3/tor-browser-7.5.3/memory/jemalloc/src/configure:ac_fn_c_check_func
 "$LINENO" "sbrk" "ac_cv_func_sbrk"
./tb-browser-7.5.3/tor-browser-7.5.3/memory/jemalloc/src/configure:if test 
"x$ac_cv_func_sbrk" = xyes; then :



> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/shells/tcsh/Makefile,v
> retrieving revision 1.59
> diff -u -p -u -r1.59 Makefile
> --- Makefile  10 Sep 2018 16:23:27 -0000      1.59
> +++ Makefile  4 Nov 2018 19:01:18 -0000
> @@ -3,7 +3,7 @@
>  COMMENT=     extended C-shell with many useful features
>
>  DISTNAME=    tcsh-6.20.00
> -REVISION=    1
> +REVISION=    2
>  CATEGORIES=  shells
>  HOMEPAGE=    http://www.tcsh.org/
>
> @@ -23,6 +23,7 @@ CONFIGURE_ENV=      LDFLAGS="${STATIC}"
>  .endif
>
>  CONFIGURE_STYLE=gnu
> +CONFIGURE_ENV += ac_cv_func_sbrk=no
>
>  AUTOCONF_VERSION=2.59
>  TEST_DEPENDS=        ${MODGNU_AUTOCONF_DEPENDS}
>

Reply via email to