Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bump] python-pyopenssl #237

Closed
forenuser opened this issue Mar 21, 2021 · 7 comments
Closed

[bump] python-pyopenssl #237

forenuser opened this issue Mar 21, 2021 · 7 comments

Comments

@forenuser
Copy link

forenuser commented Mar 21, 2021

7520-Alien7530_07.25.all_freetz-ng-18157-b7e2f21c7

mkdir -p packages/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1/root
if test -d make/python-pyopenssl/files; then    tools/tar-gnu -cf - -C make/python-pyopenssl/files --exclude=.svn --exclude=.git --exclude=.gitignore --exclude=.build-prereq-checked --exclude=.unpacked --exclude=.configured --exclude=.compiled --exclude=.installed . | tools/tar-gnu -xf - -C packages/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1; fi
---> package/python-pyopenssl ... preparing ... mkdir -p source/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1; tools/gunzip -c dl/pyOpenSSL-0.13.1.tar.gz | tools/tar-gnu -x -C source/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1 --transform='s|^./\+||' --strip-components=1
set -e; shopt -s nullglob; for i in make/python-pyopenssl/patches/*.patch*; do case $i in *.patch|*.patch.gz|*.patch.bzip2|*.patch.bz2|*.patch.bz|*.patch.xz|*.patch.lz|*.patch.lzma|*.patch.Z) ;; *) continue ;; esac; tools/freetz_patch source/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1 $i; done;
    applying patch file make/python-pyopenssl/patches/010-no_tests.patch
    patching file setup.py
    ----------------------------------------------------------------------
    applying patch file make/python-pyopenssl/patches/020-openssl-1.0.2-name-clash.patch
    patching file OpenSSL/crypto/crl.c
    ----------------------------------------------------------------------
( export PYTHONPATH="/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/usr/lib/python2.7:/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi//usr/lib/python2.7/site-packages"; export PYTHONOPTIMIZE=""; export PYTHONDONTWRITEBYTECODE=1;  cd source/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1;  PATH="/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin:/home/freetz/7520/toolchain/build/arm_gcc-5.5.0/arm-unknown-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" FREETZ_LIBRARY_DIR="/usr/lib/freetz" FREETZ_KERNEL_VERSION_MAJOR="4.4" FREETZ_TARGET_ARCH="arm" FREETZ_TARGET_ARCH_ENDIANNESS_DEPENDENT="arm" CC="/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin/arm-linux-uclibcgnueabi-gcc" CXX="/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin/arm-linux-uclibcgnueabi-g++-wrapper" CFLAGS="-mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp -marm -Ofast -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-I/usr/lib/freetz/ld-uClibc.so.1" CXXFLAGS="-mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp -marm -Ofast -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-I/usr/lib/freetz/ld-uClibc.so.1" LDFLAGS="" PKG_CONFIG_PATH="/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin/../lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin/../lib/pkgconfig" GLOBAL_LIBDIR=/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/usr/lib LD_RUN_PATH="/usr/lib/freetz"    /home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/usr/bin/hostpython  ./setup.py  install --prefix=/usr --root=/home/freetz/7520/packages/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1/root  ; )
/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/OpenSSL
copying OpenSSL/__init__.py -> build/lib.linux-x86_64-2.7/OpenSSL
copying OpenSSL/tsafe.py -> build/lib.linux-x86_64-2.7/OpenSSL
copying OpenSSL/version.py -> build/lib.linux-x86_64-2.7/OpenSSL
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'OpenSSL.crypto' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/OpenSSL
creating build/temp.linux-x86_64-2.7/OpenSSL/crypto
/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin/arm-linux-uclibcgnueabi-gcc -fno-strict-aliasing -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp -marm -Ofast -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-I/usr/lib/freetz/ld-uClibc.so.1 -DNDEBUG -fno-inline -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp -marm -Ofast -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-I/usr/lib/freetz/ld-uClibc.so.1 -fPIC -I/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/usr/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/crypto.o
OpenSSL/crypto/crypto.c: In function 'crypto_sign':
OpenSSL/crypto/crypto.c:626:16: error: storage size of 'md_ctx' isn't known
     EVP_MD_CTX md_ctx;
                ^
OpenSSL/crypto/crypto.c: In function 'crypto_verify':
OpenSSL/crypto/crypto.c:673:16: error: storage size of 'md_ctx' isn't known
     EVP_MD_CTX md_ctx;
                ^
error: command '/home/freetz/7520/toolchain/build/arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/arm-linux-uclibcgnueabi/bin/arm-linux-uclibcgnueabi-gcc' failed with exit status 1
make: *** [make/python-pyopenssl/python-pyopenssl.mk:18: packages/target-arm_gcc-5.5.0_uClibc-1.0.37-nptl_kernel-4.4/python-pyopenssl-0.13.1/root/usr/lib/python2.7/site-packages/OpenSSL/SSL.so] Error 1

.config.2.txt

@fda77
Copy link

fda77 commented Mar 21, 2021

Wenn du nach dem Fehler googelst: https://stackoverflow.com/questions/42662733/evp-md-ctx-error-storage-size-of-ctx-isn-t-known/42666983

Es sieht so aus dass pyopenssl noch keine openssl 1.1 kennt, sondenr nur das seit 2 Jahren veraltete und unsupportete 1.0
Am besten machst du einen Bump davon. Wie: https://freetz-ng.github.io/freetz-ng/SUPPORT.html#package-bump vielleicht klappt das so

https://pypi.org/project/pyOpenSSL/0.14/

High-level wrapper around a subset of the OpenSSL library, includes
* SSL.Connection objects, wrapping the methods of Python's portable
sockets

Oder gleich https://pypi.org/project/pyOpenSSL/20.0.1/

@forenuser
Copy link
Author

Mit pyOpenSSL/0.14 bzw. 0.15.1 erhalte ich folgenden Fehler:

  File "./setup.py", line 11, in <module>
    from setuptools import setup
ImportError: No module named setuptools

@fda77
Copy link

fda77 commented Mar 22, 2021

Dann ist beim bump was nicht okay. Evtl wird im falschen Pfad gesucht oder die Datei heisst nun anders

@forenuser
Copy link
Author

Die Zeile "setuptools import setup" ist neu in setup.py.
Für ein Hostcompiler wird empfohlen, folgendes Paket zu installieren.
sudo apt-get install -y python-setuptools
Alternativ: python -m pip install -U pip setuptools
Ich nehme an, dass setuptools für die Crosstoolchain bereitgestellt werden muss, weiß allerdings nicht, wie man das macht.

@fda77
Copy link

fda77 commented Mar 23, 2021

Was passiert wenn du es tatsächlich installierst? Kann gut sein dass es nur auf dem host gebraucht wird

@forenuser
Copy link
Author

Nach Installation auf dem host ist das Verhalten unverändert.

fda77 added a commit that referenced this issue Mar 24, 2021
@fda77 fda77 changed the title 7520: Make bricht bei pycurl ab [bump] python-pyopenssl Mar 24, 2021
@fda77
Copy link

fda77 commented Mar 24, 2021

Bis es gebumpt ist...
Ausser in der Überschrift tauch übrigends "pycurl" nicht auf

@fda77 fda77 closed this as completed Mar 26, 2021
@Freetz-NG Freetz-NG locked and limited conversation to collaborators Mar 26, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Development

No branches or pull requests

2 participants