Ticket #2098 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch; with positive review] rudimentary debian package build support

Reported by: tabbott Owned by: tabbott
Priority: major Milestone: sage-2.10.2
Component: debian-package Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Add spkg-build-debian, and hook it in to sage-spkg.

Attachments

debian1.patch Download (1.2 KB) - added by tabbott 5 years ago.
debian2.patch Download (4.9 KB) - added by tabbott 5 years ago.
debian3.patch Download (1.4 KB) - added by tabbott 5 years ago.
debian4.patch Download (1.1 KB) - added by tabbott 5 years ago.
debian5.patch Download (16.6 KB) - added by tabbott 5 years ago.
Sage-2.10.2.alpha2-fix-rudimentatry-Debian-support.patch Download (1.0 KB) - added by mabshoff 5 years ago.
This patch is needed to make the non-Debianized build work again

Change History

Changed 5 years ago by tabbott

Changed 5 years ago by tabbott

Changed 5 years ago by tabbott

Changed 5 years ago by tabbott

comment:1 Changed 5 years ago by tabbott

sage-build-debian will probably eventually want to look something like this. I'm not applying it as a patch because it'll break the previous patchset:

DEBIAN_REPO would be set to point to a temporary Debian repository that is in the approx sources.list for SAGE, so that each package has its dependencies uploaded to the test repo when it comes time to build it for Debian.

#!/bin/sh -x echo "Starting Debian build"

[ -d dist/debian ]
exit 0 # exit cleanly for packages we're using the Debian versions of

mv dist/debian src/ sage-dasource src/

sage-sbuildhack "$DEBIAN_RELEASE" *.dsc
exit 1

mkdir -p $SAGE_ROOT/deb DEBIAN_ARCH=$(echo lenny-amd64 | cut -f 2 -d-) reprepro -b $DEBIAN_REPO --ignore=wrongdistribution include *_${DEBIAN_ARCH}.changes mv *.dsc *.changes *.build *.deb *.tar.gz *.diff.gz /deb echo "Debian Build complete"

comment:2 Changed 5 years ago by tabbott

The 5th patch is to the sage spkg, not sage_scripts.

Changed 5 years ago by tabbott

comment:3 Changed 5 years ago by mabshoff

  • Summary changed from [with patch; needs review] rudimentary debian package build support to [with patch; with positive review] rudimentary debian package build support

Patches look good to me. I sat next to Tim as he wrote most of the code, so maybe somebody else wants to take another look. In the end we might need to generalize the code a little more for other packaging systems.

Cheers,

Michael

comment:4 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged debian1.patch-debian5.patch in Sage 2.10.2.alpha0

Changed 5 years ago by mabshoff

This patch is needed to make the non-Debianized build work again

Note: See TracTickets for help on using tickets.