#20136: Various meataxe build issues
-------------------------------------------------+-------------------------
       Reporter:  jdemeyer                       |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  major                          |    Milestone:  sage-7.1
      Component:  packages: optional             |   Resolution:
       Keywords:                                 |    Merged in:
        Authors:                                 |    Reviewers:
Report Upstream:  Reported upstream. Developers  |  Work issues:
  acknowledge bug.                               |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by SimonKing):

 I think I will use the following patch to create a tarball containing the
 tests, with a version number that isn't just `2.5.0-SNAPSHOT` but is based
 on the hash of the commit being used:
 {{{
 #!diff
 diff --git a/Makefile b/Makefile
 index 935964b..9f14045 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -43,7 +43,7 @@ SILENT0=@
  SILENT1=
  SILENT=${SILENT${V}}

 -MTXVERSION = 2.5.0-SNAPSHOT
 +MTXVERSION = 2.5.0-$(shell git log -1 --format="%h")

  CFLAGS=$(CFLAGS1) -I"${MTXROOT}/include" -Itmp \
   -DZZZ=${ZZZ} -DMTXLIB="${MTXLIB}" -DMTXBIN="${MTXBIN}"
 @@ -221,7 +221,7 @@ tmp/test-%.done: tests/common.sh tests/%/run
 $(PROGRAMS:%=${MTXBIN}/%)
         @touch "$@"


 -.PHONY: tar clean install test
 +.PHONY: tar dist clean install test
  .PRECIOUS: tmp/%.o


 @@ -264,6 +264,8 @@ EXPORTED_FILES =\
    Makefile README.md COPYING\
    src/meataxe.doc src/changelog.doc\

 +TESTS = tests
 +
  tar: all doc
         rm -f meataxe-${MTXVERSION} meataxe-${MTXVERSION}.tar
 meataxe-${MTXVERSION}.tar.gz \
         && ln -s . meataxe-${MTXVERSION} \
 @@ -271,3 +273,11 @@ tar: all doc
         && rm meataxe-${MTXVERSION} \
         && gzip meataxe-${MTXVERSION}.tar \
         && echo "Created meataxe-${MTXVERSION}.tar.gz"
 +
 +dist: all doc
 +       rm -f meataxe-${MTXVERSION} meataxe-${MTXVERSION}.tar
 meataxe-${MTXVERSION}.tar.gz \
 +       && ln -s . meataxe-${MTXVERSION} \
 +       && tar cf meataxe-${MTXVERSION}.tar
 $(EXPORTED_FILES:%=meataxe-${MTXVERSION}/%) meataxe-${MTXVERSION}/${TESTS}
 \
 +       && rm meataxe-${MTXVERSION} \
 +       && gzip meataxe-${MTXVERSION}.tar \
 +       && echo "Created meataxe-${MTXVERSION}.tar.gz including tests"
 --
 2.5.0
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/20136#comment:30>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to