Your message dated Thu, 27 Mar 2014 12:49:01 +0000 with message-id <[email protected]> and subject line Bug#701898: fixed in rubber 1.1+20100306-3 has caused the Debian Bug report #701898, regarding rubber: using a directive file raises AttributeError: 'LaTeXDep' object has no attribute 'push_vars' to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 701898: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701898 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: rubber Version: 1.1+20100306-2 Severity: normal When loading a directives file with -r, rubber crashes with: Traceback (most recent call last): File "/home/iouri/.local/bin/rubber", line 4, in <module> sys.exit(Main()(sys.argv[1:])) File "/usr/lib/pymodules/python2.7/rubber/cmdline.py", line 319, in __call__ return self.main(cmdline) File "/usr/lib/pymodules/python2.7/rubber/cmdline.py", line 244, in main env.main.command(cmd[0], cmd[1:], {'file': 'command line'}) File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 830, in command getattr(self, "do_" + cmd)(*args) File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 887, in do_read self.push_vars(file=path, line=None) AttributeError: 'LaTeXDep' object has no attribute 'push_vars' The contents of the directives file does not matter, it is not even read. I traced back the origin of this bug to revision 391 in upstream Launchpad (lp:rubber): this revision introduced the class `util.Variables` to manage stacks of environments, which obsoleted the previous `push_vars`/`pop_vars` mechanism. The problem is that methods `LaTeXDep.{push,pop}_vars` are still called in `LaTeXDep.do_read`. Attached is a patch that replaces the calls to `LaTeXDep.{push,pop}_vars` with the appropriate scheme based on locally saving `self.vars` (similar to what was done in revision 391 for, e.g., `LaTeXDep.process`). This might be considered as a duplicate of 374908, but I’m not sure. The piece of code that caused the error mentionned in 374908 was actually removed in revision 391: I guess this “fixed” 374908. I hope this helps, iouri. -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages rubber depends on: ii dpkg 1.16.9 ii install-info 4.13a.dfsg.1-10 ii python 2.7.3-4 ii python-support 1.0.15 ii texlive-latex-base 2012.20120611-5 rubber recommends no packages. Versions of packages rubber suggests: ii imagemagick 8:6.7.7.10-5 pn sam2p <none> pn transfig <none> -- no debconf informationdiff -u rubber-1.1+20100306/src/converters/latex.py rubber-1.1+fix/src/converters/latex.py --- rubber-1.1+20100306/src/converters/latex.py 2010-08-12 15:46:10.000000000 +0200 +++ rubber-1.1+fix/src/converters/latex.py 2013-02-28 16:45:49.984374543 +0100 @@ -562,7 +562,6 @@ "ext": None, "job": None, "graphics_suffixes" : [] }) - self.vars_stack = [] self.cmdline = ["\\nonstopmode", "\\input{%s}"] @@ -884,8 +883,10 @@ def do_read (self, name): path = self.abspath(name) - self.push_vars(file=path, line=None) + saved_vars = self.vars try: + self.vars = Variables(self.vars, + {'file':path, 'line':None}) file = open(path) lineno = 0 for line in file.readlines(): @@ -899,7 +900,8 @@ file.close() except IOError: msg.warn(_("cannot read option file %s") % name, **self.vars) - self.pop_vars() + finally: + self.vars = saved_vars def do_rules (self, file): name = self.env.find_file(file)
--- End Message ---
--- Begin Message ---Source: rubber Source-Version: 1.1+20100306-3 We believe that the bug you reported is fixed in the latest version of rubber, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Hilmar Preuße <[email protected]> (supplier of updated rubber package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Thu, 27 Mar 2014 10:50:03 +0200 Source: rubber Binary: rubber Architecture: source all Version: 1.1+20100306-3 Distribution: unstable Urgency: low Maintainer: Hilmar Preuße <[email protected]> Changed-By: Hilmar Preuße <[email protected]> Description: rubber - automated system for building LaTeX documents Closes: 684731 701898 Changes: rubber (1.1+20100306-3) unstable; urgency=low . * Add patch 04_borken_image_conversion.diff (Closes: #684731) * Add patch 05_rubber-push_vars-bug.diff (Closes: #701898) * Update to Standards-Version 3.9.5 (co changes needed). Checksums-Sha1: 1b43ee90f08b4002e6cbc76fc6ccf4127e9c6654 1833 rubber_1.1+20100306-3.dsc 9c8dc9227aa5e897cb43b254bf0f8b177b00def9 6616 rubber_1.1+20100306-3.debian.tar.xz 2115200872c2776086640eafb193ca654a1a1535 80784 rubber_1.1+20100306-3_all.deb Checksums-Sha256: 67558dc9ea708fe3c4ce12feda78494564f8def4d58394a3b4537293a944f020 1833 rubber_1.1+20100306-3.dsc a295d3d4134ad9d04edfcd0138e76a63a9004cf4f4019e98e94c52736cf75ad9 6616 rubber_1.1+20100306-3.debian.tar.xz 0faf93dcbfb6e601531a84b3f685e21edf1feb6b1ac4fee1bef86c3ad34e01ac 80784 rubber_1.1+20100306-3_all.deb Files: 1d9861eb450aef6949d15bf657ec0025 1833 tex optional rubber_1.1+20100306-3.dsc 0d84c174339dec2a549a1d6255b36bb1 6616 tex optional rubber_1.1+20100306-3.debian.tar.xz 6cc57a696821e0fa3d12028d2a84ecd1 80784 tex optional rubber_1.1+20100306-3_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUBUzQbvGyspEiGDNwTAQjLuw/5AYPcyZdATe+VhAhSn7VWKa98WBkPBhUw yMBvup0XQjtLPPxnMMSluDM+7HGEbTCybn42mF+akv29Vlnr1R0yn00I8YfAT0lH 35bIss9trRCZ1d2WlKdSGcxWIkD7bo1TCe1olDRhuwtBl8Va5f5rKdVJP1A8jiNI mEC5KLEWqhUrBSKnLZ2pUq632lYOeVFR9+KjF0recXve1FmkJ+SA+bVqto+AWWnK X7dpqz+7BMa46VSshy3Jvj/2pVPExkR5ttiLV/26xXriazb9aT0tA3NHgiPITAYi ZyJKc+316MLDGnpSIMCkRjt3u53OtQbXVYwxvlzTLy3bFJDW1MK3iSbEW80B782p 1dsxQ5Gr9TPKBfT1zwV4MJOKdKQI9QLLZarfPQhz217yuG1uvDwYMYKOTh3d2nLv fIl7FX98L10M2O9jwJ5wPcgJU7eBuZapkshI37P7dlL68iyflu1vNT0tmYGmPbDk I1Xps0Bsx5Q8VA01RIgJkduEKm0olw7f7ti95xnUDdsOqM96DTtm5nLdZv0LXzrc XFIlY8QOrmSjDGf/U0ZhRU2Lb8jIkDPU6FiJr76ArF7xhqypn3/SfeOX8wWrmG0q 0i3XeGYqb26z0bP8AWMf8VTIuC3QoJII5XcyhqPvP6/T6guUdcwsG0MG4aEcF8Ki 1obOYEwo60M= =8p4z -----END PGP SIGNATURE-----
--- End Message ---

