#18514: Upgrade of group cohomology spkg
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.8
      Component:  packages:          |   Resolution:
  optional                           |    Merged in:
       Keywords:  group cohomology   |    Reviewers:
        Authors:  Simon King         |  Work issues:  Create a new-style
Report Upstream:  None of the above  |  package with least effort
  - read trac for reasoning.         |       Commit:
         Branch:                     |     Stopgaps:
   Dependencies:  #18494             |
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 Can you help me to solve the following problem, please?

 I would like to add a little test script that relies on a file test.reg
 that can be found in the same directory as modular_resolution.h.

 In configure.ac, I have `AC_CONFIG_SRCDIR([src/modular_resolution.h])`

 When I go to a new directory and do
 {{{
 /path/to/sources/of/modular_resolution/configure --prefix=`pwd`
 }}}
 then `make check` works. The file test.reg is sought in
 /path/to/source/of/modular_resolution/src, where it can indeed be found.

 However, when I do `make distcheck` (which is a target provided by
 autotools), then first the distdir is created, and in distdir/_build the
 package is built and tested. Building it works fine. However, the test
 fails, because this time test.reg is sought in `../../src`. Apparently the
 test is executed in distdir/_build, not in distdir/_build/src. Thus, it
 should be sought in `../src`.

 In other words, when doing "make check", an absolute path is used, whereas
 in "make distcheck" a wrong relative path is used.

 How can that be fixed?

--
Ticket URL: <http://trac.sagemath.org/ticket/18514#comment:78>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to