From d00bed73f0ee8165f2526d8e69c377b3bed7378096fa971da9bbd6f15bb6a77c Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 23 Jan 2020 08:03:16 +0000 Subject: [PATCH] Accepting request 766399 from home:bmwiedemann:branches:devel:tools Add upstream reproducible-sort.patch to make html output reproducible in spite of ASLR (boo#1062303) OBS-URL: https://build.opensuse.org/request/show/766399 OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=146 --- doxygen.changes | 6 ++++++ doxygen.spec | 2 ++ reproducible-sort.patch | 31 +++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 reproducible-sort.patch diff --git a/doxygen.changes b/doxygen.changes index 7d27992..6a153c6 100644 --- a/doxygen.changes +++ b/doxygen.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 22 17:31:41 UTC 2020 - Bernhard Wiedemann + +- Add reproducible-sort.patch to make html output reproducible + in spite of ASLR (boo#1062303) + ------------------------------------------------------------------- Fri Jan 10 09:14:20 UTC 2020 - Martin Pluskal diff --git a/doxygen.spec b/doxygen.spec index d4c7b9b..eb09daa 100644 --- a/doxygen.spec +++ b/doxygen.spec @@ -40,6 +40,7 @@ Patch6: doxygen-llvm-libs.patch Patch7: PR_7193_fix_blank_file_patterns.patch # PATCH-FIX-UPSTREAM Including external tag files with TOC produces a broken index.qhp Patch8: 0001-issue-7248-Including-external-tag-files-with-TOC-pro.patch +Patch9: reproducible-sort.patch BuildRequires: bison BuildRequires: cmake >= 2.8.12 BuildRequires: flex @@ -72,6 +73,7 @@ as well. %endif %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build %cmake \ diff --git a/reproducible-sort.patch b/reproducible-sort.patch new file mode 100644 index 0000000..248ab97 --- /dev/null +++ b/reproducible-sort.patch @@ -0,0 +1,31 @@ +From dc67dbe5bd5a48756c591ad02b9f68fbd2a57687 Mon Sep 17 00:00:00 2001 +From: Dimitri van Heesch +Date: Sun, 19 Jan 2020 20:31:52 +0100 +Subject: [PATCH] issue #7474: [1.8.16 regression] HTML output varies from ASLR + +--- + src/memberlist.cpp | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/src/memberlist.cpp b/src/memberlist.cpp +index 278023bb6..edd164bec 100644 +--- a/src/memberlist.cpp ++++ b/src/memberlist.cpp +@@ -75,8 +75,15 @@ int MemberList::compareValues(const MemberDef *c1, const MemberDef *c2) const + return 1; + } + int cmp = qstricmp(c1->name(),c2->name()); +- if (cmp==0) cmp = qstricmp(c1->argsString(),c2->argsString()); +- return cmp!=0 ? cmp : c1->getDefLine()-c2->getDefLine(); ++ if (cmp==0 && c1->argsString() && c2->argsString()) ++ { ++ cmp = qstricmp(c1->argsString(),c2->argsString()); ++ } ++ if (cmp==0) ++ { ++ cmp = c1->getDefLine()-c2->getDefLine(); ++ } ++ return cmp; + } + + int MemberList::countInheritableMembers(const ClassDef *inheritedFrom) const