Package Details: mingw-w64-ncurses 6.5-2

Git Clone URL: https://aur.archlinux.org/mingw-w64-ncurses.git (read-only, click to copy)
Package Base: mingw-w64-ncurses
Description: System V Release 4.0 curses emulation library (mingw-w64)
Upstream URL: https://www.gnu.org/software/ncurses/
Licenses: MIT
Submitter: adsun
Maintainer: patlefort
Last Packager: patlefort
Votes: 0
Popularity: 0.000000
First Submitted: 2017-11-13 01:14 (UTC)
Last Updated: 2024-06-26 14:46 (UTC)

Latest Comments

1 2 Next › Last »

patlefort commented on 2024-06-26 14:49 (UTC)

The configure script is doing some weird stuff to try and figure out if we are cross-compiling. I pushed a fix that will force it to think it's cross-compiling.

Bottom line is, if you have wine installed and can run executable directly with wine and CHOST is empty, it will think you are not cross-compiling. This, combined with a bug in libmakepkg that unset CHOST when !buildflags is used. It also unset MAKEFLAGS which force it to compile with a single thread.

butter0423 commented on 2024-06-25 18:15 (UTC) (edited on 2024-06-25 18:29 (UTC) by butter0423)

Leaving this comment here if anyone is experiencing the make_hash error. My fix was adding --build=x86_64-pc-linux-gnu and --with-build-cc=gcc right before --without-ada option inside of PKBUILD.

As to why, PKGBUILD calls ./configure with '--build=' which somehow makes ncurses not recognize that its cross-compiling. The --with-build-cc flag is there to adhere to the INSTALL instructions of the package. It might be unnecessary, but I haven't tested it.

Side note: I got the build argument by running ./config.guess in the ncurses src directory.

Edit: Added diff


diff --git a/PKGBUILD b/PKGBUILD
index fe9684b..802ccb5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,6 +22,8 @@ build() {
        for _arch in ${_architectures}; do
                mkdir -p build-${_arch} && pushd build-${_arch}
                LIBS="$(${_arch}-pkg-config --libs regex) -liconv" ${_arch}-configure \
+                       --build=x86_64-pc-linux-gnu \
+                       --with-build-cc=gcc \
                        --without-ada \
                        --with-cxx \
                        --with-cxx-shared \

patlefort commented on 2024-05-23 00:02 (UTC)

I'm not sure what's going on. I've removed BUILD_EXEEXT and it now build fine in clean container. I tried with and without CHOST being defined.

dpogue commented on 2024-05-22 21:18 (UTC)

I'm having the same issue with make_hash not being found.

I believe it's supposed to be BUILD_EXEEXT='.exe' because I see that currently it's generating a make_hashexe.exe file, but I'm unable to get a successful build in any of the following 3 situations:

  1. No BUILD_EXEEXT variable
  2. BUILD_EXEEXT='exe'
  3. BUILD_EXEEXT='.exe'

patlefort commented on 2024-05-11 10:10 (UTC)

Compile fine here, that BUILD_EXEEXT='exe' is supposed to fix that exact issue.

alex.henrie commented on 2024-05-10 20:16 (UTC)

The latest version of this package does not compile:

/bin/sh -e ../../ncurses/tinfo/MKcaptab.sh gawk 1 ../../ncurses/tinfo/MKcaptab.awk ../../include/Caps ../../include/Caps-ncurses > comp_captab.c
../../ncurses/tinfo/MKcaptab.sh: line 74: ./make_hash: No such file or directory
make[1]: *** [Makefile:282: comp_captab.c] Error 127
make[1]: Leaving directory '/home/alex/.cache/yay/mingw-w64-ncurses/src/ncurses-6.5/build-i686-w64-mingw32/ncurses'
make: *** [Makefile:134: all] Error 2

patlefort commented on 2023-10-21 23:24 (UTC)

mingw-w64-libgnurx provides mingw-w64-regex so there should be no problem.

Roboron commented on 2023-10-21 16:43 (UTC)

It currently throws an error because it can't find mingw-w64-regex. Installing mingw-w64-libgnurx solves this.

Martchus commented on 2023-01-24 16:57 (UTC)

Thanks, it looks good now.

patlefort commented on 2023-01-22 21:23 (UTC)

@Martchus: I can't reproduce the issue. I've bumped up the version, can you check again?