Import of trac_14802-dynamic_attribute_args.patch from
trac 9556: additional features for dynamic methods of symbolic expressions
14802: remove tabs
Pass "-a" to cp in bzip2 install script to copy subdirectories.

It doesn't seem that the m4 directory is really needed, but I feel
it's cleaner to copy it with the other autotools stuff.
Trac #14895: Segfault when exponentiating an integer with I.pyobject()

Try, for example, `2^I.pyobject()`.

This is a critical issue since any method of a class inheriting from
`BuiltinFunction` will receive the I pyobject if I is passed as an
argument to the function.

This in turn leads to segfaults like:
{{{
sage: K.<a> = NumberField(x^2+1)
sage: 2^a
}}}
or
{{{
sage: K.<sqrt2> = QuadraticField(2)
sage: 2^sqrt2
}}}

URL: http://trac.sagemath.org/14895
Reported by: eviatarbach
Ticket author(s): Ralf Stephan
Reviewer(s): Volker Braun
Trac #11726: Implement univariate Laurent polynomial ring & elements

At present, the implementation of univariate Laurent polynomials is
(self-admittedly) in a sorry state:

{{{
    ############################################################
    # This should later get moved to an actual single variate  #
    # implementation with valuation tracking,                  #
    # but I don't want to right now.                           #
    ############################################################
    # We need to come up with a name for the inverse that is easy to
search
    # for in a string *and* doesn't overlap with the name that we
already have.
    # For now, I'm going to use a name mangling with checking method.
}}}

This should be fixed.

Apply: [attachment:trac_11726-univariate_Laurent_polynomials-ts.patch​]

URL: http://trac.sagemath.org/11726
Reported by: boothby
Ticket author(s): Tom Boothby
Reviewer(s): Travis Scrimshaw, Ralf Stephan, Frédéric Chapoton
Trac #16100: Keep going in doc errors

{{{
$ sage -docbuild -h
Usage: sage -docbuild [OPTIONS] DOCUMENT (FORMAT | COMMAND)

[...]

  Advanced:
    Use these options with care.

    -S OPTS, --sphinx-opts=OPTS
                        pass comma-separated OPTS to sphinx-build
    -U, --update-mtimes
                        before building reference manual, update
modification
                        times for auto-generated ReST files
    -k, --keep-going    Do not abort on errors but continue as much as
                        possible after an error
}}}

URL: http://trac.sagemath.org/16100
Reported by: vbraun
Ticket author(s): Volker Braun
Reviewer(s): Nicolas M. Thiéry
Trac #13942: Correct some wrong statements on the Magma interface in Sage

The following statements in the explanation of the Magma interface in
Sage are wrong, and may misguide a user.

magma(expr) - Evaluation of arbitrary Magma expressions, with the result
returned as a string.
magma.new(expr) - Creation of a Sage object that wraps a Magma object.

URL: http://trac.sagemath.org/13942
Reported by: klee
Ticket author(s): Kwankyu Lee
Reviewer(s): Volker Braun
Trac #14695: Don't (re)run ranlib in sage-location

Doing so is useless and only wastes (potentially a lot of) time.

----

'''Apply:''' [attachment:trac_14695-dont_rerun_ranlib.scripts.patch] to
the '''scripts''' repository.

URL: http://trac.sagemath.org/14695
Reported by: leif
Ticket author(s): Leif Leonhardy
Reviewer(s): Volker Braun
Trac #15148: Improve point counting for hyperelliptic curves

Harvey's hypellfrob program is shipped with Sage but was not actually
used to count points on hyperelliptic curves.

This ticket intends to fix that (and add several other minor
improvements).

URL: http://trac.sagemath.org/15148
Reported by: goncalves
Ticket author(s): Cécile Gonçalves, Jean-Pierre Flori, Jan Tuitman
Reviewer(s): Jan Tuitman, Jennifer Balakrishnan, Volker Braun
Trac #15967: Let bzip2 install shared libraries

This is an issue on Cygwin because libtool will complain when trying to
link sahred libs to libbz2 which is only a (relocatable) archive right
now.

Use tarball at:
* http://boxen.math.washington.edu/home/jpflori/upstream/bzip2-1.0.6.201
40317.tar.gz

URL: http://trac.sagemath.org/15967
Reported by: jpflori
Ticket author(s): Jean-Pierre Flori
Reviewer(s): Sebastien Gouezel
Trac #14802: improve dynamic attributes of symbolic expressions

Symbolic functions can define dynamic attributes that will be added to
symbolic expressions representing evaluated forms of these functions
(#9556).

This patch extends the existing functionality to allow these attributes
to take arbitrary arguments. It also passes the function class and the
symbolic expression as arguments.

Apply: [attachment:trac_14802-dynamic_attribute_args.patch]

URL: http://trac.sagemath.org/14802
Reported by: burcin
Ticket author(s): Burcin Erocal
Reviewer(s): Volker Braun
update the doctest as in the other language tours
Trac #12502: Portuguese translation of "A Tour of Sage"

Portuguese translation of "A Tour of Sage".

----

'''Copy''' `doc/en/a_tour_of_sage/*.png` to `doc/pt/a_tour_of_sage/`

'''Apply'''
[attachment:trac_12502_pt_translation_of_a_tour_of_sage.patch]

URL: http://trac.sagemath.org/12502
Reported by: goliveira
Ticket author(s): Gustavo de Oliveira
Reviewer(s): Raniere Silva