rebuild for loong64

This commit is contained in:
kreiserlee 2024-08-14 13:45:31 +08:00
parent 6b736dc3e9
commit 460f2e9d1c
5 changed files with 27 additions and 2 deletions

View File

@ -52,7 +52,7 @@ _raw_api.load_pycryptodome_raw_lib = lambda name, cdec: MockLib()
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.napoleon',
'sphinx.ext.imgmath' ]
'sphinx.ext.mathjax' ]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pycryptodome (3.20.0+dfsg-ok3) nile; urgency=medium
* fix loong64 build error
-- liyang <liyang01@kylinos.cn> Wed, 14 Aug 2024 10:41:02 +0800
pycryptodome (3.20.0+dfsg-ok2) nile; urgency=medium
* rebuild

5
debian/clean vendored
View File

@ -1,3 +1,8 @@
*.egg-info/*
.separate_namespace
lib/Cryptodome/
src/test/CMakeFiles/
src/test/CMakeCache.txt
src/test/CTestTestfile.cmake
src/test/Makefile
src/test/cmake_install.cmake

1
debian/files vendored Normal file
View File

@ -0,0 +1 @@
pycryptodome_3.20.0+dfsg-ok3_source.buildinfo python optional

15
debian/rules vendored
View File

@ -3,8 +3,13 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk
export PYBUILD_NAME=pycryptodome
export VERBOSE=1
CMAKE_CFLAGS = ${CFLAGS} ${CPPFLAGS}
CMAKE_CXXFLAGS = ${CXXFLAGS} ${CPPFLAGS}
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
@ -14,7 +19,7 @@ override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="python$$PY3VER -m Cryptodome.SelfTest {build_dir}/" dh_auto_test; \
done
cd src/test && export PYTHON=python3 && cmake -DPYTHON=${PYTHON} && $(MAKE)
cd src/test && PYTHON=python3 CFLAGS="${CMAKE_CFLAGS}" CXXFLAGS="${CMAKE_CXXFLAGS}" cmake -DDEB_HOST_ARCH=${DEB_HOST_ARCH} ./ && $(MAKE)
execute_before_dh_auto_build:
touch .separate_namespace
@ -27,3 +32,11 @@ execute_after_dh_auto_build:
override_dh_installdocs:
dh_installdocs -p python3-pycryptodome
dh_installdocs --doc-main-package=python-pycryptodome-doc -p python-pycryptodome-doc
execute_after_dh_auto_clean:
if [ -f src/test/Makefile ] ; then \
$(MAKE) -C src/test clean ; \
fi
override_dh_clean:
dh_clean --exclude=Doc/LEGAL/copy/LICENSE.orig