]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI: install Python package impacket to run SMB test 1451
authorMarc Hoersken <info@marc-hoersken.de>
Mon, 13 Dec 2021 19:51:19 +0000 (20:51 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 6 Mar 2022 20:22:58 +0000 (21:22 +0100)
Install Python package impacket in relevant CI workflows.

Follow up to #7935
Supersedes #7940
Closes #8544

.azure-pipelines.yml
.cirrus.yml
.github/workflows/linux-hyper.yml
.github/workflows/macos.yml
.github/workflows/mbedtls.yml
.github/workflows/nss.yml
.github/workflows/rustls.yml
.github/workflows/wolfssl.yml

index 511b879f69a478170c3af521b7cf76b190328fca..97afbd189b341e8f333f7d9284a414007ab42835 100644 (file)
@@ -209,14 +209,14 @@ stages:
           name: 32-bit OpenSSL/libssh2
           container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
           container_cmd: C:\msys64\usr\bin\sh
-          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
+          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 mingw-w64-i686-python-pip mingw-w64-i686-python-wheel mingw-w64-i686-python-pyopenssl && python3 -m pip install --prefer-binary impacket
           configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --with-libssh2 --with-openssl
           tests: "~571"
         msys2_mingw64_debug_openssl:
           name: 64-bit OpenSSL/libssh2
           container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
           container_cmd: C:\msys64\usr\bin\sh
-          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
+          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-python-pyopenssl && python3 -m pip install --prefer-binary impacket
           configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --with-libssh2 --with-openssl
           tests: "~571"
         msys2_mingw64_debug_libssh:
@@ -248,14 +248,14 @@ stages:
           name: 32-bit Schannel/SSPI/WinIDN/libssh2
           container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
           container_cmd: C:\msys64\usr\bin\sh
-          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
+          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 mingw-w64-i686-python-pip mingw-w64-i686-python-wheel mingw-w64-i686-python-pyopenssl && python3 -m pip install --prefer-binary impacket
           configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
           tests: "~571"
         msys2_mingw64_debug_schannel:
           name: 64-bit Schannel/SSPI/WinIDN/libssh2
           container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
           container_cmd: C:\msys64\usr\bin\sh
-          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
+          prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-python-pyopenssl && python3 -m pip install --prefer-binary impacket
           configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-debug --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
           tests: "~571"
         msys1_mingw_debug_schannel:
index c1d7fdaee26febd1268c8b7c6df91abbee358e21..85fcc53825d59571353f3ea18a4acbac4448399b 100644 (file)
@@ -83,14 +83,14 @@ windows_task:
       env:
         container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
         container_cmd: C:\msys64\usr\bin\sh
-        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
+        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 mingw-w64-i686-python-pip mingw-w64-i686-python-wheel mingw-w64-i686-python-pyopenssl && python3 -m pip install --prefer-binary impacket
         configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
         tests: "~571"
     - name: Windows 32-bit static/release Schannel/SSPI/WinIDN/libssh2
       env:
         container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw32:ltsc2019
         container_cmd: C:\msys64\usr\bin\sh
-        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2
+        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-i686-libssh2 mingw-w64-i686-python-pip mingw-w64-i686-python-wheel mingw-w64-i686-python-pyopenssl && python3 -m pip install --prefer-binary impacket
         configure: --host=i686-w64-mingw32 --build=i686-w64-mingw32 --prefix=/mingw32 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --disable-shared --enable-static
         tests: "~571"
         curl_LDFLAGS: -all-static
@@ -99,14 +99,14 @@ windows_task:
       env:
         container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
         container_cmd: C:\msys64\usr\bin\sh
-        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
+        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-python-pyopenssl && python3 -m pip install --prefer-binary impacket
         configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2
         tests: "~571"
     - name: Windows 64-bit static/release Schannel/SSPI/WinIDN/libssh2
       env:
         container_img: ghcr.io/mback2k/curl-docker-winbuildenv/msys2-mingw64:ltsc2019
         container_cmd: C:\msys64\usr\bin\sh
-        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2
+        prepare: pacman -S --needed --noconfirm --noprogressbar libssh2-devel mingw-w64-x86_64-libssh2 mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-python-pyopenssl && python3 -m pip install --prefer-binary impacket
         configure: --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --prefix=/mingw64 --enable-werror --enable-sspi --with-schannel --with-winidn --with-libssh2 --disable-shared --enable-static
         tests: "~571"
         curl_LDFLAGS: -all-static
index d35bdcb07aab95eba5e62bcefdae73a676f0e70d..ba3cf97818afd75d2fa6883c64ec62f2d1826b4d 100644 (file)
@@ -25,8 +25,10 @@ jobs:
           configure: --with-openssl --with-hyper=$HOME/hyper
 
     steps:
-    - run: sudo apt-get install libtool autoconf automake pkg-config
-      name: install prereqs
+    - run: |
+        sudo apt-get install libtool autoconf automake pkg-config
+        sudo python3 -m pip install impacket
+      name: install prereqs and impacket
 
     - run: (cd $HOME;
         git clone --depth=1 https://github.com/hyperium/hyper.git;
index 9a836d4bcdae3f86353de705603a4e9a8a874ed5..ee31f07e017f6503926a03653f5b83c67a64a3b3 100644 (file)
@@ -80,6 +80,9 @@ jobs:
     - run: brew update && for i in 1 2 3; do brew bundle install --no-lock --file /tmp/Brewfile && break || sleep 1; done
       name: 'brew install'
 
+    - run: python3 -m pip install impacket
+      name: 'pip3 install'
+
     - uses: actions/checkout@v2
 
     - run: ./buildconf && ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
@@ -127,6 +130,9 @@ jobs:
     - run: brew update && brew bundle install --no-lock --file /tmp/Brewfile
       name: 'brew install'
 
+    - run: python3 -m pip install impacket
+      name: 'pip3 install'
+
     - uses: actions/checkout@v2
 
     - run: cmake -H. -Bbuild -DCURL_WERROR=ON -DPICKY_COMPILER=ON ${{ matrix.build.generate }}
index 9070482d9bd02ac3c7a7cc2414a65709bb3e835a..140b601b99a33c33bf05ce5cdb0769325a45208d 100644 (file)
@@ -28,8 +28,10 @@ jobs:
           configure: CC=clang --with-mbedtls=$HOME/mbed --enable-debug --enable-werror
 
     steps:
-    - run: sudo apt-get install libtool autoconf automake pkg-config clang stunnel4
-      name: install prereqs
+    - run: |
+        sudo apt-get install libtool autoconf automake pkg-config clang stunnel4
+        sudo python3 -m pip install impacket
+      name: install prereqs and impacket
 
     - run: |
         git clone --depth=1 -b v3.1.0 https://github.com/ARMmbed/mbedtls
index 9974d0440fcaa191a150bf6c4514571b09623871..6e4a9ee093aefaa0df064ea2f1a3af9a2009391b 100644 (file)
@@ -26,8 +26,8 @@ jobs:
 
     steps:
     - run: |
-        sudo apt-get install libtool autoconf automake pkg-config stunnel4 python3-pip libnss3-dev clang-9 libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev nss-plugin-pem
-        sudo pip3 install impacket
+        sudo apt-get install libtool autoconf automake pkg-config stunnel4 libnss3-dev clang-9 libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev nss-plugin-pem
+        sudo python3 -m pip install impacket
       name: install prereqs and impacket
 
     - uses: actions/checkout@v2
index de73bb5795519f4156af46d6893882716889d322..d02e37170940423762c3b14bb803db44000a3c4c 100644 (file)
@@ -25,8 +25,10 @@ jobs:
           configure: --with-rustls=$HOME/rustls --enable-debug --enable-werror
 
     steps:
-    - run: sudo apt-get install libtool autoconf automake pkg-config libpsl-dev libbrotli-dev libzstd-dev stunnel4
-      name: install prereqs
+    - run: |
+        sudo apt-get install libtool autoconf automake pkg-config libpsl-dev libbrotli-dev libzstd-dev stunnel4
+        sudo python3 -m pip install impacket
+      name: install prereqs and impacket
 
     - run: |
         git clone --depth=1 --recursive https://github.com/rustls/rustls-ffi.git -b v0.8.2
index 293ec1e60763d2703ce74b026dc52a09af8097ee..ea1fdeb29c5cf589f4f5e2e0bfbd5e2c08591184 100644 (file)
@@ -31,8 +31,8 @@ jobs:
 
     steps:
     - run: |
-        sudo apt-get install libtool autoconf automake pkg-config stunnel4 python3-pip
-        sudo pip3 install impacket
+        sudo apt-get install libtool autoconf automake pkg-config stunnel4
+        sudo python3 -m pip install impacket
       name: install prereqs and impacket
 
     - run: |