#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: | cd644a301bd2a9c57b5c719bb47a4733c75e347b
u/SimonKing/upgrade_of_group_cohomology_spkg| Stopgaps:
Dependencies: #12103 |
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Replying to [comment:123 SimonKing]:
> Perhaps I should have a single tar file containing all the data, and
then add an install-data-hook that untars the data file?
It works *almost*: I can do make install and make clean and make uninstall
and so on, but nonetheless make distcheck fails. And I don't understand
why.
I have this in the top-level Makefile.am:
{{{
#!Makefile
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
dbdir = $(datadir)/pGroupCohomology
dist_db_DATA = group_cohomology_database.tar
install-data-hook:
cd $(dbdir) && tar xf $(dist_db_DATA)
uninstall-hook:
rm -r $(dbdir)
clean-local:
rm $(dbdir)/$(dist_db_DATA)
}}}
When I run make distcheck, then the command `cd $(dbdir)` in install-data-
hook fails. The odd reason: `datadir` is
`/home/king/Projekte/coho/bin/modular_resolution-1.0/_inst/share` (I
checked that), but during "make distcheck" the data are installed NOT in
`datadir` but in `/tmp/am-
dc-11743//home/king/Projekte/coho/bin/modular_resolution-1.0/_inst/share/pGroupCohomology`.
Consequently, when I want to cd into dbdir, the folder can't be found.
Do you have an idea why distcheck installs data not into datadir but into
a temporary folder, whereas make install correctly installs into datadir?
--
Ticket URL: <http://trac.sagemath.org/ticket/18514#comment:124>
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.