DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] docs: add +x to generator scripts
@ 2022-11-14 14:22 luca.boccassi
  2022-11-14 14:22 ` [PATCH 2/2] docs: sort files lists in " luca.boccassi
  2022-11-14 14:30 ` [PATCH 1/2] docs: add +x to " Bruce Richardson
  0 siblings, 2 replies; 5+ messages in thread
From: luca.boccassi @ 2022-11-14 14:22 UTC (permalink / raw)
  To: dev

From: Luca Boccassi <bluca@debian.org>

These scripts have a shebang so they are meant to be runnable, so set +x bits

Fixes: 53bb9a073f4f ("doc: rewrite shell scripts in Python")

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 doc/api/generate_doxygen.py  | 0
 doc/api/generate_examples.py | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 doc/api/generate_doxygen.py
 mode change 100644 => 100755 doc/api/generate_examples.py

diff --git a/doc/api/generate_doxygen.py b/doc/api/generate_doxygen.py
old mode 100644
new mode 100755
diff --git a/doc/api/generate_examples.py b/doc/api/generate_examples.py
old mode 100644
new mode 100755
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] docs: sort files lists in generator scripts
  2022-11-14 14:22 [PATCH 1/2] docs: add +x to generator scripts luca.boccassi
@ 2022-11-14 14:22 ` luca.boccassi
  2022-11-14 14:29   ` Bruce Richardson
  2022-11-14 14:30 ` [PATCH 1/2] docs: add +x to " Bruce Richardson
  1 sibling, 1 reply; 5+ messages in thread
From: luca.boccassi @ 2022-11-14 14:22 UTC (permalink / raw)
  To: dev

From: Luca Boccassi <bluca@debian.org>

In order to build the documentation in a reproducible manner, sort the lists of
files used as input, since walking the filesystem is not guaranteed to be done
in a stable order.
When converting the scripts from shell to python, sorting the input was lost.

Fixes: 53bb9a073f4f ("doc: rewrite shell scripts in Python")

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 doc/api/generate_doxygen.py  | 2 +-
 doc/api/generate_examples.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/api/generate_doxygen.py b/doc/api/generate_doxygen.py
index 2ccedf844e..d3a22869f6 100755
--- a/doc/api/generate_doxygen.py
+++ b/doc/api/generate_doxygen.py
@@ -13,7 +13,7 @@
     subprocess.run(doxygen_command, check=True, stdout=out)
 with open(out_file) as out, open(dep_file, 'w') as dep:
     print(f'{out_dir}:', end=' ', file=dep)
-    for line in out:
+    for line in sorted(out):
         match = re.match(pattern, line)
         if match:
             print(match.group(1), end=' ', file=dep)
diff --git a/doc/api/generate_examples.py b/doc/api/generate_examples.py
index c35e72f280..7315b3c356 100755
--- a/doc/api/generate_examples.py
+++ b/doc/api/generate_examples.py
@@ -11,7 +11,7 @@
 with open(f'{api_examples}.d', 'w') as dep:
     print(f'{api_examples}:', end=' ', file=dep)
     for root, _, files in os.walk(examples_dir):
-        for name in files:
+        for name in sorted(files):
             is_source = name.endswith('.c')
             if is_source or name == 'meson.build':
                 path = os.path.join(root, name)
@@ -23,7 +23,7 @@
     print('''/**
 @page examples DPDK Example Programs
 ''', file=out)
-    for path in sources:
+    for path in sorted(sources):
         # Produce consistent output with forward slashes on all systems.
         # Every \ in paths within examples directory is a separator, not escape.
         relpath = os.path.relpath(path, examples_dir).replace('\\', '/')
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] docs: sort files lists in generator scripts
  2022-11-14 14:22 ` [PATCH 2/2] docs: sort files lists in " luca.boccassi
@ 2022-11-14 14:29   ` Bruce Richardson
  2022-11-22 14:27     ` Thomas Monjalon
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Richardson @ 2022-11-14 14:29 UTC (permalink / raw)
  To: luca.boccassi; +Cc: dev

On Mon, Nov 14, 2022 at 02:22:25PM +0000, luca.boccassi@gmail.com wrote:
> From: Luca Boccassi <bluca@debian.org>
> 
> In order to build the documentation in a reproducible manner, sort the lists of
> files used as input, since walking the filesystem is not guaranteed to be done
> in a stable order.
> When converting the scripts from shell to python, sorting the input was lost.
> 
> Fixes: 53bb9a073f4f ("doc: rewrite shell scripts in Python")
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---

Seems reasonable.

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] docs: add +x to generator scripts
  2022-11-14 14:22 [PATCH 1/2] docs: add +x to generator scripts luca.boccassi
  2022-11-14 14:22 ` [PATCH 2/2] docs: sort files lists in " luca.boccassi
@ 2022-11-14 14:30 ` Bruce Richardson
  1 sibling, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2022-11-14 14:30 UTC (permalink / raw)
  To: luca.boccassi; +Cc: dev

On Mon, Nov 14, 2022 at 02:22:24PM +0000, luca.boccassi@gmail.com wrote:
> From: Luca Boccassi <bluca@debian.org>
> 
> These scripts have a shebang so they are meant to be runnable, so set +x bits
> 
> Fixes: 53bb9a073f4f ("doc: rewrite shell scripts in Python")
> 
> Signed-off-by: Luca Boccassi <bluca@debian.org>
> ---
>  doc/api/generate_doxygen.py  | 0
>  doc/api/generate_examples.py | 0
>  2 files changed, 0 insertions(+), 0 deletions(-)
>  mode change 100644 => 100755 doc/api/generate_doxygen.py
>  mode change 100644 => 100755 doc/api/generate_examples.py
> 
> diff --git a/doc/api/generate_doxygen.py b/doc/api/generate_doxygen.py
> old mode 100644
> new mode 100755
> diff --git a/doc/api/generate_examples.py b/doc/api/generate_examples.py
> old mode 100644
> new mode 100755
> -- 

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] docs: sort files lists in generator scripts
  2022-11-14 14:29   ` Bruce Richardson
@ 2022-11-22 14:27     ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2022-11-22 14:27 UTC (permalink / raw)
  To: luca.boccassi; +Cc: dev, Bruce Richardson

14/11/2022 15:29, Bruce Richardson:
> On Mon, Nov 14, 2022 at 02:22:25PM +0000, luca.boccassi@gmail.com wrote:
> > From: Luca Boccassi <bluca@debian.org>
> > 
> > In order to build the documentation in a reproducible manner, sort the lists of
> > files used as input, since walking the filesystem is not guaranteed to be done
> > in a stable order.
> > When converting the scripts from shell to python, sorting the input was lost.
> > 
> > Fixes: 53bb9a073f4f ("doc: rewrite shell scripts in Python")
> > 
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
> > ---
> 
> Seems reasonable.
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Series applied, thanks.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-22 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 14:22 [PATCH 1/2] docs: add +x to generator scripts luca.boccassi
2022-11-14 14:22 ` [PATCH 2/2] docs: sort files lists in " luca.boccassi
2022-11-14 14:29   ` Bruce Richardson
2022-11-22 14:27     ` Thomas Monjalon
2022-11-14 14:30 ` [PATCH 1/2] docs: add +x to " Bruce Richardson

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 NNTP newsgroup(s).