File: 0006-Do-not-use-pipenv-to-build-docs.patch

package info (click to toggle)
jq 1.7.1-6%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,720 kB
  • sloc: ansic: 27,788; yacc: 892; sh: 663; python: 321; cpp: 314; lex: 186; makefile: 180; javascript: 34
file content (75 lines) | stat: -rw-r--r-- 2,903 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
From: =?utf-8?b?IkNoYW5nWmh1byBDaGVuICjpmbPmmIzlgKwpIg==?=
 <czchen@debian.org>
Date: Wed, 13 Sep 2023 01:23:14 +0800
Subject: Do not use pipenv to build docs

---
 Makefile.am  |  8 ++++----
 configure.ac | 25 -------------------------
 2 files changed, 4 insertions(+), 29 deletions(-)

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102376
Last-Update: 2025-04-08

diff --git a/Makefile.am b/Makefile.am
index c762bf0..86c1e33 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -156,8 +156,8 @@ check_DATA = tests/man.test
 tests/man.test tests/manonig.test: $(srcdir)/docs/content/manual/manual.yml
 if ENABLE_DOCS
 	$(AM_V_GEN) ( cd ${abs_srcdir}/docs && \
-		$(PIPENV) run python validate_manual_schema.py content/manual/manual.yml && \
-		$(PIPENV) run python build_mantests.py )
+		python3 validate_manual_schema.py content/manual/manual.yml && \
+		python3 build_mantests.py )
 else
 	@echo Changes to the manual.yml require docs to be enabled to update the manual test.
 	@echo As a result, the manual test is out of date.
@@ -172,8 +172,8 @@ man_MANS = jq.1
 jq.1.prebuilt: $(srcdir)/docs/content/manual/manual.yml
 if ENABLE_DOCS
 	$(AM_V_GEN) ( cd ${abs_srcdir}/docs && \
-		$(PIPENV) run python validate_manual_schema.py content/manual/manual.yml && \
-		$(PIPENV) run python build_manpage.py ) > $@
+		python3 validate_manual_schema.py content/manual/manual.yml && \
+		python3 build_manpage.py ) > $@
 else
 	@echo Changes to the manual.yml require docs to be enabled to update the manpage.
 	@echo As a result, the manpage is out of date.
diff --git a/configure.ac b/configure.ac
index 118e084..4c9feae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,31 +81,6 @@ dnl Enable building all static
 AC_ARG_ENABLE([all-static],
    AS_HELP_STRING([--enable-all-static],[link jq with static libraries only]))
 
-dnl find pipenv
-AC_ARG_VAR([PIPENV], [pipenv command])
-AC_CHECK_PROGS([PIPENV], pipenv)
-
-AS_IF([test "x$enable_docs" != "xno"],[
-   AC_CACHE_CHECK([for Python dependencies], [jq_cv_python_deps],[
-      jq_cv_python_deps=yes
-      AS_IF([test "x$PIPENV" = "x" || \
-      ! bmsg="`cd ${srcdir}/docs; LC_ALL=$LANG "$PIPENV" --venv`"],[
-         jq_cv_python_deps=no
-      ])
-   ])
-
-   AS_IF([test "x$jq_cv_python_deps" != "xyes"], [
-      AC_MSG_WARN([Error checking python dependencies: $bmsg
-*****************************************************************
-*  Python dependencies for building jq documentation not found. *
-*  You can still build, install and hack on jq, but the manpage *
-*  will not be rebuilt and new manpage tests will not be run.   *
-*  See docs/README.md for how to install the docs dependencies. *
-*****************************************************************])
-      enable_docs=no
-   ])
-])
-
 dnl Disable decNumber support
 AC_ARG_ENABLE([decnum],
    AS_HELP_STRING([--disable-decnum],[disable decnum support]))