winpty: rebuild
This commit is contained in:
parent
58c55c6c15
commit
62ef4d4c2a
13
winpty/0003-restore-old-macro.patch
Normal file
13
winpty/0003-restore-old-macro.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- winpty-0.4.3/src/unix-adapter/main.cc.orig 2023-12-17 14:19:19.673630100 +0100
|
||||
+++ winpty-0.4.3/src/unix-adapter/main.cc 2023-12-17 14:20:01.022627000 +0100
|
||||
@@ -198,6 +199,10 @@
|
||||
sigaction(SIGWINCH, &resizeSigAct, NULL);
|
||||
}
|
||||
|
||||
+#ifndef CYGWIN_VERSION_CYGWIN_CONV
|
||||
+ #define CYGWIN_VERSION_CYGWIN_CONV 181
|
||||
+#endif
|
||||
+
|
||||
// Convert the path to a Win32 path if it is a POSIX path, and convert slashes
|
||||
// to backslashes.
|
||||
static std::string convertPosixPathToWin(const std::string &path)
|
||||
@ -6,7 +6,7 @@
|
||||
_realname=winpty
|
||||
pkgname="${_realname}"
|
||||
pkgver=0.4.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A Windows software package providing an interface similar to a Unix pty-master for communicating with Windows console programs"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/rprichard/winpty"
|
||||
@ -14,7 +14,7 @@ license=('MIT')
|
||||
|
||||
# Explicitly reference the git version of the indirect dependency mingw-w64-cross-crt
|
||||
# for avoiding problems with its default provider mingw-w64-cross-crt-clang-git
|
||||
makedepends=(git tar 'autotools' xz
|
||||
makedepends=(git tar 'autotools' xz gcc
|
||||
mingw-w64-cross-gcc
|
||||
mingw-w64-cross-crt)
|
||||
|
||||
@ -28,13 +28,15 @@ source=("${_realname}-${pkgver}.tar.gz::https://github.com/rprichard/${_realname
|
||||
path_conv.cc::'https://github.com/Alexpux/path_convert/raw/2aa1874a513e919fcf3e10d65fce4bb7336ef219/src/path_conv.cpp'
|
||||
path_conv.h::'https://github.com/Alexpux/path_convert/raw/2aa1874a513e919fcf3e10d65fce4bb7336ef219/src/path_conv.h'
|
||||
0001-Apply-POSIX-to-Win-conversion-on-all-arguments-on-MSYS.patch
|
||||
0002-fix-path-conversion.patch)
|
||||
0002-fix-path-conversion.patch
|
||||
0003-restore-old-macro.patch)
|
||||
|
||||
sha256sums=('093037c39f9c899d79b74d5e15ff74fb59a98c492c5ed621e97e1090c3442865'
|
||||
'7181d260592dc193f235965f202a5509b113d8b478efae3f06176b8625b683cc'
|
||||
'c84e4edc5a1e387dc1ea06445db76a7bfe43e816f0c32558ce8d8562378d5782'
|
||||
'c9705d86feba11f1155e4259d28131afb14db3c30c17efe96bdd655afa72ee04'
|
||||
'47568cc4ee701c936f49bce4958c05b19260bb85a9cdea0ab8b4d9bf8a1133bd')
|
||||
'47568cc4ee701c936f49bce4958c05b19260bb85a9cdea0ab8b4d9bf8a1133bd'
|
||||
'cf4ecc9ea3f26ab96bcfd21917c8f56a3eb7785d4e719955f45925d79cf38e95')
|
||||
|
||||
consolidate() {
|
||||
cp ../path_conv.cc src/unix-adapter/path_conv.cc
|
||||
@ -46,6 +48,8 @@ prepare() {
|
||||
consolidate
|
||||
patch -p1 -i ${srcdir}/0001-Apply-POSIX-to-Win-conversion-on-all-arguments-on-MSYS.patch
|
||||
patch -p1 -i ${srcdir}/0002-fix-path-conversion.patch
|
||||
# Removed in https://github.com/cygwin/cygwin/commit/c41f0e700a4865ed1bf23621e9c76343ae5f8587
|
||||
patch -p1 -i ${srcdir}/0003-restore-old-macro.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user