Source: doxygen
Severity: normal

Originally reported by Hunter Laux: 
https://bugs.launchpad.net/ubuntu/+source/doxygen/+bug/1631169

The patch debian/patches/doxygen-jquery.patch is misapplied.

It looks like the upstream file src/htmlgen.cpp was modified by upstream 
between their tags `Release_1_8_8` and `Release_1_8_9`, removing among other 
things these snippets (the code assembling the jquery.js file from several 
pieces):

  static const char search_jquery_script1[]=
  #include "jquery_p1.js.h"
  ;

  static const char search_jquery_script2[]=
  #include "jquery_p2.js.h"
  ;

  static const char search_jquery_script3[]=
  #include "jquery_p3.js.h"
  ;

  ... 

  {
    QFile f(dname+"/jquery.js");
    if (f.open(IO_WriteOnly))
    {
      FTextStream t(&f);
      t << search_jquery_script1 << search_jquery_script2 << 
search_jquery_script3;
      if (Config_getBool("GENERATE_TREEVIEW"))
      {
        t << search_jquery_script4 << search_jquery_script5;
      }
      if (Config_getBool("SOURCE_BROWSER"))
      {
        t << search_jquery_script6;
      }
    }
  }

The automatic `quilt refresh` then moved the patch to something close, but 
unrelated (it now prevents the inclusion of dynsection.js):
https://salsa.debian.org/debian/doxygen/blame/master/debian/patches/doxygen-jquery.patch

In the current version of src/htmlgen.cpp the jquery.js file is created with:

  ResourceMgr &mgr = ResourceMgr::instance();
  ...
  mgr.copyResource("jquery.js",dname);

We should update the patch.

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to