On 11/23/2018 10:04 PM, Liu Hao wrote:
在 2018/11/24 上午9:31, Edward Diener 写道:
On 11/23/2018 5:06 PM, Greg Jung wrote:
You should try "makepkg -g" and paste/copy the results, for the lines
that
are different,  into the PKGBUILD.
Then, makepkg --check can be used to test it.

When I run makepkg -g I get:

==> ERROR: pkgname is not allowed to start with a hyphen.
==> ERROR: depends is not allowed to start with a hyphen.
==> ERROR: depends is not allowed to start with a hyphen.
==> ERROR: makedepends is not allowed to start with a hyphen.
==> ERROR: makedepends is not allowed to start with a hyphen.

In the PKGBUILD file I see these lines among others:

pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
depends=("${MINGW_PACKAGE_PREFIX}-libiconv" "${MINGW_PACKAGE_PREFIX}-zlib")
makedepends=("${MINGW_PACKAGE_PREFIX}-libiconv"
"${MINGW_PACKAGE_PREFIX}-zlib")

Needless to say I did not change any of these lines.


Use `makepkg-mingw` to build MinGW{32,64} packages, rather than
`makepkg`. That is exactly the difference.

First output:

$ makepkg-mingw --skippgpcheck -g
==> Retrieving sources...
  -> Found binutils-2.30.tar.bz2
  -> Found binutils-2.30.tar.bz2.sig
  -> Found 0001-enable-gold-on.mingw32.patch
  -> Found 0002-check-for-unusual-file-harder.patch
  -> Found 0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch
  -> Found 0110-binutils-mingw-gnu-print.patch
  -> Found 0200-remove-provide-qualifiers.patch
  -> Found binutils-gdb.git-73af69e74974eaa155eec89867e3ccc77ab39f6d.patch
==> Generating checksums for source files...
sha256sums=('efeade848067e9a03f1918b1da0d37aaffa0b0127a06b5e9236229851d9d0c09'
            'SKIP'

'93296b909e1a4f9d8a4bbe2437aafa17ca565ef6642a9812b0360c05be228c9d'

'2c99345fc575c3a060d6677537f636c6c4154fac0fde508070f3b6296c1060d4'

'604e76e0f702ced493ee22aa3c1768b4776b2008a7d70ae0dd35fe5be3522141'

'0f145655d4f2aae3383e0c0269d0c47b8a7176144bf0595425fc38b7ebf53153'

'28b6d20d1f7e1f29b61bdafff452f2421b7f5b084f69c9563ec4630b1f041abd'

'e4508ea8be28da56e0285c054cbb03636b95fcbb871ba10aa181fa7788f8c8d1')
==> Retrieving sources...
  -> Found binutils-2.30.tar.bz2
  -> Found binutils-2.30.tar.bz2.sig
  -> Found 0001-enable-gold-on.mingw32.patch
  -> Found 0002-check-for-unusual-file-harder.patch
  -> Found 0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch
  -> Found 0110-binutils-mingw-gnu-print.patch
  -> Found 0200-remove-provide-qualifiers.patch
  -> Found binutils-gdb.git-73af69e74974eaa155eec89867e3ccc77ab39f6d.patch
==> Generating checksums for source files...
sha256sums=('efeade848067e9a03f1918b1da0d37aaffa0b0127a06b5e9236229851d9d0c09'
            'SKIP'

'93296b909e1a4f9d8a4bbe2437aafa17ca565ef6642a9812b0360c05be228c9d'

'2c99345fc575c3a060d6677537f636c6c4154fac0fde508070f3b6296c1060d4'

'604e76e0f702ced493ee22aa3c1768b4776b2008a7d70ae0dd35fe5be3522141'

'0f145655d4f2aae3383e0c0269d0c47b8a7176144bf0595425fc38b7ebf53153'

'28b6d20d1f7e1f29b61bdafff452f2421b7f5b084f69c9563ec4630b1f041abd'

'e4508ea8be28da56e0285c054cbb03636b95fcbb871ba10aa181fa7788f8c8d1')

Second output:

$ makepkg-mingw --skippgpcheck
==> Making package: mingw-w64-binutils 2.30-5 (Sat, Nov 24, 2018 12:21:41 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found binutils-2.30.tar.bz2
  -> Found binutils-2.30.tar.bz2.sig
  -> Found 0001-enable-gold-on.mingw32.patch
  -> Found 0002-check-for-unusual-file-harder.patch
  -> Found 0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch
  -> Found 0110-binutils-mingw-gnu-print.patch
  -> Found 0200-remove-provide-qualifiers.patch
  -> Found binutils-gdb.git-73af69e74974eaa155eec89867e3ccc77ab39f6d.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    binutils-2.30.tar.bz2 ... Passed
    binutils-2.30.tar.bz2.sig ... Skipped
    0001-enable-gold-on.mingw32.patch ... Passed
    0002-check-for-unusual-file-harder.patch ... Passed
    0010-bfd-Increase-_bfd_coff_max_nscns-to-65279.patch ... Passed
    0110-binutils-mingw-gnu-print.patch ... Passed
    0200-remove-provide-qualifiers.patch ... Passed
binutils-gdb.git-73af69e74974eaa155eec89867e3ccc77ab39f6d.patch ... Passed
==> Extracting sources...
  -> Extracting binutils-2.30.tar.bz2 with bsdtar
==> Starting prepare()...
patch: invalid argument 'E:\\Programming\\VersionControl' for '$VERSION_CONTROL'
Valid arguments are:
  - 'none', 'off'
  - 'simple', 'never'
  - 'existing', 'nil'
  - 'numbered', 't'
==> ERROR: A failure occurred in prepare().
    Aborting...

I do not know what I am doing wrong.





_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public





_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to