Opened 12 years ago

Closed 12 years ago

#2098 closed enhancement (fixed)

[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: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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

Attachments (6)

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

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by tabbott

Changed 12 years ago by tabbott

Changed 12 years ago by tabbott

Changed 12 years ago by tabbott

comment:1 Changed 12 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 12 years ago by tabbott

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

Changed 12 years ago by tabbott

comment:3 Changed 12 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 12 years ago by mabshoff

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

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

Changed 12 years ago by mabshoff

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

Note: See TracTickets for help on using tickets.