Package: src:trac-announcer
Version: 0.12.1+r14934-2
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2 --buildsystem=pybuild
dh: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
dh_auto_configure: Compatibility levels before 9 are deprecated (level 7 in use)
I: pybuild base:184: python2.7 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
dh_auto_build: Compatibility levels before 9 are deprecated (level 7 in use)
I: pybuild base:184: /usr/bin/python setup.py build 
running build

[... snipped ...]

----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/<<BUILDDIR>>/trac-announcer-0.12.1+r14934/trunk/announcer/opt/tests/subscribers.py",
 line 34, in setUp
    self.db = self.env.get_db_cnx()
AttributeError: 'EnvironmentStub' object has no attribute 'get_db_cnx'

======================================================================
ERROR: test_init (announcer.opt.tests.subscribers.UserChangeSubscriberTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/<<BUILDDIR>>/trac-announcer-0.12.1+r14934/trunk/announcer/opt/tests/subscribers.py",
 line 34, in setUp
    self.db = self.env.get_db_cnx()
AttributeError: 'EnvironmentStub' object has no attribute 'get_db_cnx'

======================================================================
ERROR: test_init (announcer.opt.tests.subscribers.WatchSubscriberTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/<<BUILDDIR>>/trac-announcer-0.12.1+r14934/trunk/announcer/opt/tests/subscribers.py",
 line 34, in setUp
    self.db = self.env.get_db_cnx()
AttributeError: 'EnvironmentStub' object has no attribute 'get_db_cnx'

======================================================================
ERROR: test_rename_wiki_page 
(announcer.opt.tests.subscribers.WikiWatchSubscriberTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/<<BUILDDIR>>/trac-announcer-0.12.1+r14934/trunk/announcer/opt/tests/subscribers.py",
 line 34, in setUp
    self.db = self.env.get_db_cnx()
AttributeError: 'EnvironmentStub' object has no attribute 'get_db_cnx'

======================================================================
FAIL: test_add_attachment_html_notification 
(announcer.tests.formatters.TicketFormatterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/<<BUILDDIR>>/trac-announcer-0.12.1+r14934/trunk/announcer/tests/formatters.py",
 line 63, in test_add_attachment_html_notification
    self.assertEqual(expected, actual)
AssertionError: '<html xmlns="http://www.w3.org/1999/xhtml";>\n  <head>\n    
<title>#1: Some ticket summary</title>\n    <style>\n      body {\n        
font: medium "Lucida Grande", Lucida, Verdana, sans-serif;\n      }\n      
.header {\n        font-size: large;\n      }\n      .ticketbox {\n        
background-color: #fefcd3;\n        width: 90%;\n        padding: .5em 1em;\n   
     border-style: outset;\n        border-width: 1px;\n        margin: 2px;\n  
    }\n      .title {\n        font-weight: bold;\n        border-bottom: 1pt 
inset #dfdfdf;\n        padding-bottom: .5em;\n      }\n      .label {\n        
font-size: x-small;\n        color: #7e7e7e;\n        border-bottom: 1pt inset 
#dfdfdf;\n        padding-bottom: .5em;\n        width:  30%;\n      }\n      
.value {\n        border-bottom: 1pt inset #dfdfdf;\n        padding-bottom: 
.5em;\n        font-size: small;\n      }\n      .header {\n        width:  
90%;\n        padding-bottom: 1em;\n      }\n      .descheader {\n   
      font-size: x-small;\n        color: #7e7e7e;\n        border-bottom: 1pt 
inset #dfdfdf;\n        padding-bottom: .5em;\n        font-weight: bold;\n     
 }\n      .descbody {\n        font-size: small;\n        padding: 1em;\n      
}\n      .changetitle {\n        font-size: small;\n        margin: 1em;\n      
}\n      .changeitem {\n        font-size: small;\n      }\n      .fieldname 
{\n        font-weight: bold;\n      }\n      .from {\n        font-style: 
italic;\n      }\n      .to {\n        font-style: italic;\n      }\n      
.longchange {\n        font-size: small;\n      }\n      .htmldiff {\n        
margin-left: 2em;\n        padding: 1em;\n        width: 90%;\n        
background-color: #f3f3f3;\n        margin: 5px;\n        border-style: 
outset;\n        border-width: 1px;\n      }\n      .commentstitle {\n        
font-size: small;\n        margin: 1em;\n      }\n      .comments {\n        
margin: 0 0 0 2em;\n      }\n      .footer {\n        font-size: small;\n    
   }\n    </style>\n  </head>\n  <body bgcolor="white" style="font: medium 
&#34;Lucida Grande&#34;, Lucida, Verdana, sans-serif">\n    <span 
class="header" style="font-size: large;">Ticket #1 (new defect)</span>\n    
<div class="ticketbox" style="background-color: #fefcd3; width: 90%; padding: 
.5em 1em; border-style: outset; border-width: 1px; margin: 2px;">\n      <div 
class="title" style="font-weight: bold; border-bottom: 1pt inset #dfdfdf; 
padding-bottom: .5em;">Some ticket summary</div>\n      <table class="header" 
width="100%">\n        <tr>\n          <td class="label" width="30%" 
style="font-size: x-small; color: #7e7e7e; border-bottom: 1pt inset #dfdfdf; 
padding-bottom: .5em; width:  30%;">Reporter:</td>\n          <td class="value" 
width="70%" style="border-bottom: 1pt inset #dfdfdf; padding-bottom: .5em; 
font-size: small;">None</td>\n        </tr><tr>\n          <td class="label" 
width="30%" style="font-size: x-small; color: #7e7e7e; border-bottom: 1pt inset 
#dfdfdf; paddin
 g-bottom: .5em; width:  30%;">Owner:</td>\n          <td class="value" 
width="70%" style="border-bottom: 1pt inset #dfdfdf; padding-bottom: .5em; 
font-size: small;">None</td>\n        </tr>\n      </table>\n    </div>\n      
<div class="changetitle" style="font-size: small; margin: 1em;">Changes (by 
<strong>user1</strong>):</div>\n      <ul>\n      </ul>\n      <ul>\n      
</ul>\n      <div class="commentstitle" style="font-size: small; margin: 
1em;">Attachment:</div>\n      <ul>\n        <li>File <span class="fieldname" 
style="font-weight: bold; font-style: italic;">somefile.txt</span> added: <span 
style="font-style: italic"><p>\n<tt>Some</tt> <strong>WikiFormatted</strong> 
<em>text</em><br />\n</p>\n</span></li>\n      </ul>\n    <br/>\n    <hr/>\n    
<br/>\n    <div class="footer" style="font-size: small;">Ticket URL: <a 
href="http://example.org/trac.cgi/ticket/1";>http://example.org/trac.cgi/ticket/1</a><br/>\n
    My Project <a href="http://example.org/trac.cgi";>http://example.or
 g/trac.cgi</a><br/>\n    My example project<br/>\n    </div>\n  
</body>\n</html>' != u'<html xmlns="http://www.w3.org/1999/xhtml";>\n  <head>\n  
  <title>#1: Some ticket summary</title>\n    <style>\n      body {\n        
font: medium "Lucida Grande", Lucida, Verdana, sans-serif;\n      }\n      
.header {\n        font-size: large;\n      }\n      .ticketbox {\n        
background-color: #fefcd3;\n        width: 90%;\n        padding: .5em 1em;\n   
     border-style: outset;\n        border-width: 1px;\n        margin: 2px;\n  
    }\n      .title {\n        font-weight: bold;\n        border-bottom: 1pt 
inset #dfdfdf;\n        padding-bottom: .5em;\n      }\n      .label {\n        
font-size: x-small;\n        color: #7e7e7e;\n        border-bottom: 1pt inset 
#dfdfdf;\n        padding-bottom: .5em;\n        width:  30%;\n      }\n      
.value {\n        border-bottom: 1pt inset #dfdfdf;\n        padding-bottom: 
.5em;\n        font-size: small;\n      }\n      .header {\n        width:
   90%;\n        padding-bottom: 1em;\n      }\n      .descheader {\n        
font-size: x-small;\n        color: #7e7e7e;\n        border-bottom: 1pt inset 
#dfdfdf;\n        padding-bottom: .5em;\n        font-weight: bold;\n      }\n  
    .descbody {\n        font-size: small;\n        padding: 1em;\n      }\n    
  .changetitle {\n        font-size: small;\n        margin: 1em;\n      }\n    
  .changeitem {\n        font-size: small;\n      }\n      .fieldname {\n       
 font-weight: bold;\n      }\n      .from {\n        font-style: italic;\n      
}\n      .to {\n        font-style: italic;\n      }\n      .longchange {\n     
   font-size: small;\n      }\n      .htmldiff {\n        margin-left: 2em;\n   
     padding: 1em;\n        width: 90%;\n        background-color: #f3f3f3;\n   
     margin: 5px;\n        border-style: outset;\n        border-width: 1px;\n  
    }\n      .commentstitle {\n        font-size: small;\n        margin: 
1em;\n      }\n      .comments {\n        margin
 : 0 0 0 2em;\n      }\n      .footer {\n        font-size: small;\n      }\n   
 </style>\n  </head>\n  <body bgcolor="white" style="font: medium &#34;Lucida 
Grande&#34;, Lucida, Verdana, sans-serif">\n    <span class="header" 
style="font-size: large;">Ticket #1 (new defect)</span>\n    <div 
class="ticketbox" style="background-color: #fefcd3; width: 90%; padding: .5em 
1em; border-style: outset; border-width: 1px; margin: 2px;">\n      <div 
class="title" style="font-weight: bold; border-bottom: 1pt inset #dfdfdf; 
padding-bottom: .5em;">Some ticket summary</div>\n      <table class="header" 
width="100%">\n        <tr>\n          <td class="label" width="30%" 
style="font-size: x-small; color: #7e7e7e; border-bottom: 1pt inset #dfdfdf; 
padding-bottom: .5em; width:  30%;">Reporter:</td>\n          <td class="value" 
width="70%" style="border-bottom: 1pt inset #dfdfdf; padding-bottom: .5em; 
font-size: small;">None</td>\n        </tr><tr>\n          <td class="label" 
width="30%" style="font-
 size: x-small; color: #7e7e7e; border-bottom: 1pt inset #dfdfdf; 
padding-bottom: .5em; width:  30%;">Owner:</td>\n          <td class="value" 
width="70%" style="border-bottom: 1pt inset #dfdfdf; padding-bottom: .5em; 
font-size: small;">&lt; default &gt;</td>\n        </tr>\n      </table>\n    
</div>\n      <div class="changetitle" style="font-size: small; margin: 
1em;">Changes (by <strong>user1</strong>):</div>\n      <ul>\n      </ul>\n     
 <ul>\n      </ul>\n      <div class="commentstitle" style="font-size: small; 
margin: 1em;">Attachment:</div>\n      <ul>\n        <li>File <span 
class="fieldname" style="font-weight: bold; font-style: 
italic;">somefile.txt</span> added: <span style="font-style: 
italic"><p>\n<code>Some</code> <strong>WikiFormatted</strong> <em>text</em><br 
/>\n</p>\n</span></li>\n      </ul>\n    <br/>\n    <hr/>\n    <br/>\n    <div 
class="footer" style="font-size: small;">Ticket URL: <a 
href="http://example.org/trac.cgi/ticket/1";>http://example.org/trac.cgi/t
 icket/1</a><br/>\n    My Project <a 
href="http://example.org/trac.cgi";>http://example.org/trac.cgi</a><br/>\n    My 
example project<br/>\n    </div>\n  </body>\n</html>'

----------------------------------------------------------------------
Ran 37 tests in 0.204s

FAILED (failures=1, errors=27)
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: 
python2.7 setup.py test 
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The relevant part of the build log is included above.

Maybe some build-dependency should be versioned?

It also fails (in testing) here:

https://tests.reproducible-builds.org/debian/rb-pkg/testing/amd64/trac-announcer.html

Thanks.

Reply via email to