Skip to content

Commit d04fd13

Browse files
committed
packages CHANGE do not builg Python package for Debian
1 parent 7ff2130 commit d04fd13

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

packages/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ configure_file(${PROJECT_SOURCE_DIR}/packages/${PACKAGE}.spec.in ${PROJECT_BINAR
1010
configure_file(${PROJECT_SOURCE_DIR}/packages/${PACKAGE}.dsc.in ${PROJECT_BINARY_DIR}/build-packages/${PACKAGE}.dsc)
1111
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.control.in ${PROJECT_BINARY_DIR}/build-packages/debian.control @ONLY)
1212
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.rules.in ${PROJECT_BINARY_DIR}/build-packages/debian.rules)
13+
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.compat
14+
${PROJECT_BINARY_DIR}/build-packages/debian.compat COPYONLY)
1315
configure_file(${PROJECT_SOURCE_DIR}/packages/${PACKAGE}.rpmlintrc
1416
${PROJECT_BINARY_DIR}/build-packages/${PACKAGE}.rpmlintrc COPYONLY)
15-
configure_file(${PROJECT_SOURCE_DIR}/packages/${PACKAGE}.compat
16-
${PROJECT_BINARY_DIR}/build-packages/${PACKAGE}.compat COPYONLY)
1717
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.${PACKAGE}.install
1818
${PROJECT_BINARY_DIR}/build-packages/debian.${PACKAGE}.install COPYONLY)
1919
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.${PACKAGE}-dev.install
@@ -22,8 +22,9 @@ configure_file(${PROJECT_SOURCE_DIR}/packages/debian.${CPP_PACKAGE}.install
2222
${PROJECT_BINARY_DIR}/build-packages/debian.${CPP_PACKAGE}.install COPYONLY)
2323
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.${CPP_PACKAGE}-dev.install
2424
${PROJECT_BINARY_DIR}/build-packages/debian.${CPP_PACKAGE}-dev.install COPYONLY)
25-
configure_file(${PROJECT_SOURCE_DIR}/packages/debian.${PYTHON_PACKAGE}.install
26-
${PROJECT_BINARY_DIR}/build-packages/debian.${PYTHON_PACKAGE}.install COPYONLY)
25+
# no python package for Debian because there is only SWIG 3.10 on Debian 9 :-/
26+
#configure_file(${PROJECT_SOURCE_DIR}/packages/debian.${PYTHON_PACKAGE}.install
27+
# ${PROJECT_BINARY_DIR}/build-packages/debian.${PYTHON_PACKAGE}.install COPYONLY)
2728

2829
if (NOT DEB_BUILDER)
2930
message(STATUS "Missing tools (devscripts, debhelper package) for building DEB package.")
File renamed without changes.

packages/debian.control.in

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,3 @@ Depends: @CPP_PACKAGE@ (=@LIBYANG_VERSION@)
4040
Section: debug
4141
Architecture: any
4242
Description: Debug symbols of C++ bidings of libyang library.
43-
44-
Package: @PYTHON_PACKAGE@
45-
Depends: @PACKAGE@ (=@LIBYANG_VERSION@), @CPP_PACKAGE@ (=@LIBYANG_VERSION@)
46-
Section: libs
47-
Architecture: any
48-
Description: Bindings of libyang library to python3 language.
49-
50-
Package: @PYTHON_PACKAGE@-dbg
51-
Depends: @PYTHON_PACKAGE@ (=@LIBYANG_VERSION@)
52-
Section: debug
53-
Architecture: any
54-
Description: Debug symbols of python3 bidings of libyang library.

packages/debian.rules.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export DH_VERBOSE=1
99
override_dh_strip:
1010
dh_strip -p@PACKAGE@ --dbg-package=@PACKAGE@-dbg
1111
dh_strip -p@CPP_PACKAGE@ --dbg-package=@CPP_PACKAGE@-dbg
12-
dh_strip -p@PYTHON_PACKAGE@ --dbg-package=@PYTHON_PACKAGE@-dbg
12+
# dh_strip -p@PYTHON_PACKAGE@ --dbg-package=@PYTHON_PACKAGE@-dbg
1313

1414
override_dh_auto_configure:
1515
cmake -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_INSRC_BUILD=ON -DCMAKE_BUILD_TYPE="Package" -DENABLE_LYD_PRIV=ON \
16-
-DGEN_LANGUAGE_BINDINGS=ON .
16+
-DGEN_LANGUAGE_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF .
1717

1818
override_dh_auto_test:
1919
ctest --output-on-failure

packages/libyang.dsc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Format: 3.0 (quilt)
22
Source: @PACKAGE@
3-
Binary: @PACKAGE@, @PACKAGE@-dbg, @PACKAGE@-dev, @CPP_PACKAGE@, @CPP_PACKAGE@-dev, @CPP_PACKAGE@-dbg, @PYTHON_PACKAGE@, @PYTHON_PACKAGE@-dbg
3+
Binary: @PACKAGE@, @PACKAGE@-dbg, @PACKAGE@-dev, @CPP_PACKAGE@, @CPP_PACKAGE@-dev, @CPP_PACKAGE@-dbg
44
Maintainer: CESNET <[email protected]>
55
Version: @LIBYANG_VERSION@
66
Architecture: any
77
Standards-Version: 3.8.2
88
Homepage: https://github.com/CESNET/libyang
99
Vcs-Git: https://github.com/CESNET/libyang
10-
Build-Depends: debhelper (>= 9), make, gcc, doxygen, cmake, pkg-config, libpcre3-dev, libcmocka-dev, python3-dev, g++, swig (>= 3.0.12)
10+
Build-Depends: debhelper (>= 9), make, gcc, doxygen, cmake, pkg-config, libpcre3-dev, libcmocka-dev, g++

0 commit comments

Comments
 (0)