msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.28k stars 484 forks source link

makepkg fails for no apparent reason #940

Open orgads opened 7 years ago

orgads commented 7 years ago

I'm using the git-sdk, but I also tried with official MSYS2 installation.

Both makepkg (for MSYS2-PACKAGES) and makepkg-mingw (for MINGW) fail on every package I try to build. The log shows:

==> Making package: ncurses 6.0.20170527-1 (Mon, Jul 03, 2017  6:20:36 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ncurses-6.0.20170527.tar.gz
  -> Found 0001-CRITICAL-fix-return-value-of-drv_CanHandle-on-unknow.patch
==> Validating source files with sha256sums...
    ncurses-6.0.20170527.tar.gz ... Passed
    0001-CRITICAL-fix-return-value-of-drv_CanHandle-on-unknow.patch ... Passed
==> Extracting sources...
  -> Extracting ncurses-6.0.20170527.tar.gz with bsdtar
==> Starting prepare()...
patching file ncurses/tinfo/tinfo_driver.c
Hunk #1 succeeded at 144 with fuzz 2 (offset 31 lines).
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> ERROR: A failure occurred in build().
    Aborting...

Nothing constructive. Manually running configure/make works just fine.

elieux commented 7 years ago

Hmm. Have you tried debugging it (adding for example set -x inside build())?

orgads commented 6 years ago

Hi,

Sorry for the late response.

The failed build log is here. A successful one is here. I only pasted the beginning of the file, until the options are parsed.

It looks like the build fails when trying to parse the arguments.

Any idea?

orgads commented 6 years ago

ping?

ErichDonGubler commented 6 years ago

The latest version of the ncurses package builds just fine for me (using pacman, that is). Have you modified the PKGBUILD in any way? Could you make a minimum reproducible example?

orgads commented 6 years ago

This is not specific to ncurses. I merely used it as an example. It happens for every package I try to build, with or without modifications.

Like I said, manually running configure/make works. Looks like something is wrong in makepkg or in my environment.