~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to build/generator/gen_base.py

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2014-02-20 20:38:10 UTC
  • mfrom: (0.2.11)
  • Revision ID: package-import@ubuntu.com-20140220203810-w61omsda8fs70pta
Tags: 1.8.8-1
* New upstream release.  Refresh patches.
  - Remove backported patches sqlite_3.8.x_workaround & swig-pl_build_fix
  - Fix integer overflows with 32-bit svnserv, which could cause an infinite
    loop (Closes: #738840) or inaccurate statistics (Closes: #738841)
  - Work around SQLite not honoring umask when creating rep-cache.db.
    (Closes: #735446)
  - Includes security fix:
    + CVE-2014-0032: mod_dav_svn crash when handling certain requests with
      SVNListParentPath on  (Closes: #737815)
* Add a subversion-dbg package.  (Closes: #508147)
* Bump libdb5.1-dev → libdb5.3-dev  (Closes: #738650)

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
    self.source_generated = 0
315
315
 
316
316
class SWIGObject(ObjectFile):
317
 
  def __init__(self, filename, lang):
 
317
  def __init__(self, filename, lang, release_mode):
318
318
    ObjectFile.__init__(self, filename)
319
319
    self.lang = lang
320
320
    self.lang_abbrev = lang_abbrev[lang]
321
 
    self.source_generated = 1
 
321
    # in release mode the sources are not generated by the build
 
322
    # but rather by the packager
 
323
    if release_mode:
 
324
      self.source_generated = 0
 
325
    else:
 
326
      self.source_generated = 1
322
327
    ### hmm. this is Makefile-specific
323
328
    self.compile_cmd = '$(COMPILE_%s_WRAPPER)' % self.lang_abbrev.upper()
324
329
 
614
619
    self.filename = build_path_join(self.path, lib_filename)
615
620
 
616
621
    ifile = SWIGSource(ipath)
617
 
    cfile = SWIGObject(build_path_join(self.path, cname), self.lang)
618
 
    ofile = SWIGObject(build_path_join(self.path, oname), self.lang)
 
622
    cfile = SWIGObject(build_path_join(self.path, cname), self.lang,
 
623
                       self.gen_obj.release_mode)
 
624
    ofile = SWIGObject(build_path_join(self.path, oname), self.lang,
 
625
                       self.gen_obj.release_mode)
619
626
 
620
627
    # the .c file depends upon the .i file
621
628
    self.gen_obj.graph.add(DT_SWIG_C, cfile, ifile)