* gnulib-tool.py: Don't ignore the argument to --doc-base.
@ 2024-04-03 1:21 Collin Funk
2024-04-03 23:00 ` Bruno Haible
0 siblings, 1 reply; 5+ messages in thread
From: Collin Funk @ 2024-04-03 1:21 UTC (permalink / raw
To: bug-gnulib
[-- Attachment #1: Type: text/plain, Size: 978 bytes --]
When building GNU PSPP I see this:
--- /home/collin/.local/src/pspp/gl/m4/gnulib-cache.m4 2024-04-02 18:10:06.209522277 -0700
+++ /home/collin/.local/src/glpyXBzSID/gl/m4/gnulib-cache.m4 2024-04-02 18:09:37.828467148 -0700
@@ -31,7 +31,7 @@
# --lib=libgl \
# --source-base=gl \
# --m4-base=gl/m4 \
-# --doc-base=gl/doc \
+# --doc-base=doc \
# --tests-base=tests \
# --aux-dir=build-aux \
# --makefile-name=automake.mk \
@@ -302,7 +302,7 @@
gl_SOURCE_BASE([gl])
gl_M4_BASE([gl/m4])
gl_PO_BASE([])
-gl_DOC_BASE([gl/doc])
+gl_DOC_BASE([doc])
gl_TESTS_BASE([tests])
gl_LIB([libgl])
gl_MAKEFILE_NAME([automake.mk])
This patch fixes it. It seems that gnulib-tool.py never respected the
directory passed with --doc-base.
PSPP doesn't use the bootstrap script, and running make without a
target will fail with GNULIB_TOOL_IMPL=sh+py because of some *.png
files.
This seems to work:
env GNUMAKEFLAGS="" GNULIB_TOOL_IMPL=sh+py make -f Smake prep_ph
Collin
[-- Attachment #2: 0001-gnulib-tool.py-Don-t-ignore-the-argument-to-doc-base.patch --]
[-- Type: text/x-patch, Size: 1609 bytes --]
From 89fbe03cde20a249899e8878c525f47b41286d45 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.funk1@gmail.com>
Date: Tue, 2 Apr 2024 18:04:09 -0700
Subject: [PATCH] gnulib-tool.py: Don't ignore the argument to --doc-base.
* pygnulib/main.py (main): Check for the argument to --doc-base before
creating the GLConfig object.
---
ChangeLog | 6 ++++++
pygnulib/main.py | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d6b9f731bc..068fe06662 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-02 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Don't ignore the argument to --doc-base.
+ * pygnulib/main.py (main): Check for the argument to --doc-base before
+ creating the GLConfig object.
+
2024-04-02 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Use [] instead of list() to initialize empty lists.
diff --git a/pygnulib/main.py b/pygnulib/main.py
index c6a6bd3241..233c79182e 100644
--- a/pygnulib/main.py
+++ b/pygnulib/main.py
@@ -738,6 +738,9 @@ def main() -> None:
pobase = cmdargs.pobase
if pobase != None:
pobase = cmdargs.pobase[0]
+ docbase = cmdargs.docbase
+ if docbase != None:
+ docbase = cmdargs.docbase[0]
testsbase = cmdargs.testsbase
if testsbase != None:
testsbase = cmdargs.testsbase[0]
@@ -808,7 +811,6 @@ def main() -> None:
copymode = cmdargs.copymode
lcopymode = cmdargs.lcopymode
single_configure = cmdargs.single_configure
- docbase = None
# Create pygnulib configuration.
config = GLConfig(
--
2.44.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: gnulib-tool.py: Don't ignore the argument to --doc-base.
2024-04-03 1:21 gnulib-tool.py: Don't ignore the argument to --doc-base Collin Funk
@ 2024-04-03 23:00 ` Bruno Haible
2024-04-06 13:13 ` Bruno Haible
0 siblings, 1 reply; 5+ messages in thread
From: Bruno Haible @ 2024-04-03 23:00 UTC (permalink / raw
To: bug-gnulib; +Cc: Collin Funk
Hi Collin,
> When building GNU PSPP I see this:
>
> --- /home/collin/.local/src/pspp/gl/m4/gnulib-cache.m4 2024-04-02 18:10:06.209522277 -0700
> +++ /home/collin/.local/src/glpyXBzSID/gl/m4/gnulib-cache.m4 2024-04-02 18:09:37.828467148 -0700
> @@ -31,7 +31,7 @@
> # --lib=libgl \
> # --source-base=gl \
> # --m4-base=gl/m4 \
> -# --doc-base=gl/doc \
> +# --doc-base=doc \
> # --tests-base=tests \
> # --aux-dir=build-aux \
> # --makefile-name=automake.mk \
> @@ -302,7 +302,7 @@
> gl_SOURCE_BASE([gl])
> gl_M4_BASE([gl/m4])
> gl_PO_BASE([])
> -gl_DOC_BASE([gl/doc])
> +gl_DOC_BASE([doc])
> gl_TESTS_BASE([tests])
> gl_LIB([libgl])
> gl_MAKEFILE_NAME([automake.mk])
>
> This patch fixes it. It seems that gnulib-tool.py never respected the
> directory passed with --doc-base.
Thanks! Applied. I think I will add a unit test for this one.
> PSPP doesn't use the bootstrap script, and running make without a
> target will fail with GNULIB_TOOL_IMPL=sh+py because of some *.png
> files.
>
> This seems to work:
>
> env GNUMAKEFLAGS="" GNULIB_TOOL_IMPL=sh+py make -f Smake prep_ph
Thanks, this info will help me setting up the unit test.
Bruno
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnulib-tool.py: Don't ignore the argument to --doc-base.
2024-04-03 23:00 ` Bruno Haible
@ 2024-04-06 13:13 ` Bruno Haible
2024-04-06 13:27 ` gnulib-tool.py speed Bruno Haible
2024-04-06 13:28 ` gnulib-tool.py: Don't ignore the argument to --doc-base Collin Funk
0 siblings, 2 replies; 5+ messages in thread
From: Bruno Haible @ 2024-04-06 13:13 UTC (permalink / raw
To: bug-gnulib; +Cc: Collin Funk
On 2024-04-04 I wrote:
> I think I will add a unit test for this one.
Done. I added a 'test-pspp-1.sh' test.
Bruno
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnulib-tool.py speed
2024-04-06 13:13 ` Bruno Haible
@ 2024-04-06 13:27 ` Bruno Haible
2024-04-06 13:28 ` gnulib-tool.py: Don't ignore the argument to --doc-base Collin Funk
1 sibling, 0 replies; 5+ messages in thread
From: Bruno Haible @ 2024-04-06 13:27 UTC (permalink / raw
To: bug-gnulib; +Cc: Collin Funk
> Done. I added a 'test-pspp-1.sh' test.
On this test, the Python implementation is ca. 80x faster than the shell
implementation:
$ GNULIB_TOOL_IMPL=py time ./test-pspp-1.sh
real 0.43s
user 0.33s
sys 0.09s
$ GNULIB_TOOL_IMPL=sh time ./test-pspp-1.sh
real 34.52s
user 36.66s
sys 6.73s
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnulib-tool.py: Don't ignore the argument to --doc-base.
2024-04-06 13:13 ` Bruno Haible
2024-04-06 13:27 ` gnulib-tool.py speed Bruno Haible
@ 2024-04-06 13:28 ` Collin Funk
1 sibling, 0 replies; 5+ messages in thread
From: Collin Funk @ 2024-04-06 13:28 UTC (permalink / raw
To: Bruno Haible, bug-gnulib
Hi Bruno,
On 4/6/24 6:13 AM, Bruno Haible wrote:
> Done. I added a 'test-pspp-1.sh' test.
Thanks! It passes for me.
Collin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-06 13:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 1:21 gnulib-tool.py: Don't ignore the argument to --doc-base Collin Funk
2024-04-03 23:00 ` Bruno Haible
2024-04-06 13:13 ` Bruno Haible
2024-04-06 13:27 ` gnulib-tool.py speed Bruno Haible
2024-04-06 13:28 ` gnulib-tool.py: Don't ignore the argument to --doc-base Collin Funk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).