From: IOhannes m zmölnig (Debian/GNU) Date: Thu, 10 Nov 2022 12:28:02 +0000 (+0100) Subject: Add patch to make documentation reproducible X-Git-Tag: archive/raspbian/7.0.2_ds0-3+rpi1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a1c1f464988070dd76a640d80c23f5204691ca1;p=juce.git Add patch to make documentation reproducible --- diff --git a/debian/patches/reproducible_docs.patch b/debian/patches/reproducible_docs.patch new file mode 100644 index 00000000..874bae48 --- /dev/null +++ b/debian/patches/reproducible_docs.patch @@ -0,0 +1,30 @@ +Description: make Doxygen documentation reproducible + Python's os.listdir() returns the entries in an undefined order, + which in turn makes the generated documentation unreproducible. + this patch just sorts the entries returned by os.listdir() +Author: IOhannes m zmölnig +Origin: Debian +Forwarded: no +Last-Update: 2022-11-10 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- juce.orig/docs/doxygen/process_source_files.py ++++ juce/docs/doxygen/process_source_files.py +@@ -87,7 +87,7 @@ + juce_modules = args.subdirs.split(",") + else: + juce_modules = [] +- for item in os.listdir(args.source_dir): ++ for item in sorted(os.listdir(args.source_dir)): + if os.path.isdir(os.path.join(args.source_dir, item)): + juce_modules.append(item) + +@@ -136,7 +136,7 @@ + + # Create a list of the directories in the module that we can use as + # subgroups and create the Doxygen group hierarchy string. +- dir_contents = os.listdir(module_path) ++ dir_contents = sorted(os.listdir(module_path)) + # Ignore "native" folders as these are excluded by doxygen. + try: + dir_contents.remove("native") diff --git a/debian/patches/series b/debian/patches/series index cfe48f54..47db8b2b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,6 +3,7 @@ debian_no-update-check.patch debian_system_modules.patch debian_python3-doxygen.patch debian_doxygen-outdir.patch +reproducible_docs.patch debian_unittests_globalpaths.patch debian_link_systemlibs.patch debian_buildcmake.patch