"make package" is convenient for making a .deb. Currently the .deb
depends on the "python" package but in 20.04 it makes things
complicated. Does anyone else install LyX with locally built debs?

The attached patch seems to work well. Kornel, OK to commit?

Scott
From abc48258f41fea0d1b72281bcd0d448121035e5e Mon Sep 17 00:00:00 2001
From: Scott Kostyshak <skost...@lyx.org>
Date: Mon, 19 Oct 2020 14:59:17 -0400
Subject: [PATCH 3/6] CMake deb: support "python2 | python3" dependency

The latest debian-based distributions have moved away from
the "python" package dependency to "python2" and "python3".
---
 development/cmake/LyxPackaging.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/development/cmake/LyxPackaging.cmake b/development/cmake/LyxPackaging.cmake
index 8dd7fa4231..5d7acd12ed 100644
--- a/development/cmake/LyxPackaging.cmake
+++ b/development/cmake/LyxPackaging.cmake
@@ -151,7 +151,9 @@ set(CPACK_PACKAGE_CONTACT "${PACKAGE_BUGREPORT}")
 set(CPACK_SOURCE_PACKAGE_FILE_NAME "${LYX_PROJECT}-${LYX_INSTALL_SUFFIX}")
 
 # We depend on python scripting
-set(CPACK_DEBIAN_PACKAGE_DEPENDS "python (>= 2.7)")
+# Currently no need to specify versions for pythonx since they are only
+# available in newest distributions.
+set(CPACK_DEBIAN_PACKAGE_DEPENDS "python (>= 2.7) | python3 | python2")
 
 # use dpkg-shlibdeps to generate additional info for package dependency list.
 set(CPACK_DEBIAN_PACKAGE_RELEASE ${LYX_PACKAGE_RELEASE})
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to