Page MenuHomePhabricator

Initial Debian packaging

Authored by dduvall on Nov 13 2015, 12:46 AM.


Maniphest Tasks
Restricted Task
T118015: Debian Packaging for scap
Group Reviewers
rMSCA73154370d176: Initial Debian packaging
Patch without arc
git checkout -b D46 && curl -L | git apply

Initialized debian files using stdeb, with some cleanup according to

Test Plan

Create a tag named upstream/3.0 and build package with git-buildpackage --git-ignore-branch --git-export-dir=/tmp/build/scap -us -uc

Diff Detail

rMSCA Scap
Lint Not Applicable
Tests Not Applicable

Event Timeline

dduvall retitled this revision from to Initial Debian packaging.
dduvall updated this object.
dduvall edited the test plan for this revision. (Show Details)
dduvall added a reviewer: bd808.

I'm sure I screwed something up here.


I based these dependency versions off what's available in Precise, assuming we'd need to backport it.

dduvall edited edge metadata.
dduvall added a reviewer: faidon.

Should be rebased since D45: Include a to help with packaging landed, don't need the setup.(py|cfg) change here anymore.

revi added inline comments.

For consistency I assume it should be changed to wikimedia or change the other one? (See another inline)
16 ↗(On Diff #152)

For consistency it should be changed to mediawiki or change the other one? (See inline comment above)

Trying to rebase this correctly :/

LGTM overall, will need to try to build it too


I think you can go for 9 here (latest debhelper)


ditto debhelper >= 9


are the specific versions hard requirements? IOW we're using specific features, if not I'd just omit it from packages that don't need it

builds fine locally, lintian warnings below. debian/copyright one we should fix, ditto for description and standards-version, all fairly easy

Now running lintian...
W: scap source: changelog-should-mention-nmu
W: scap source: source-nmu-has-incorrect-version-number 3.0-1
W: scap source: no-debian-copyright
W: scap source: ancient-standards-version 3.9.3 (current is 3.9.6)
W: python-scap: new-package-should-close-itp-bug
E: python-scap: no-copyright-file
E: python-scap: extended-description-is-empty
W: python-scap: binary-without-manpage usr/bin/compile-wikiversions
W: python-scap: binary-without-manpage usr/bin/deploy
W: python-scap: binary-without-manpage usr/bin/deploy-local
W: python-scap: binary-without-manpage usr/bin/deploy-log
W: python-scap: binary-without-manpage usr/bin/hhvm-graceful-all
W: python-scap: binary-without-manpage usr/bin/mw-update-l10n
W: python-scap: binary-without-manpage usr/bin/mwversionsinuse
W: python-scap: binary-without-manpage usr/bin/scap
W: python-scap: binary-without-manpage usr/bin/scap-hhvm-restart
W: python-scap: binary-without-manpage usr/bin/scap-purge-l10n-cache
W: python-scap: binary-without-manpage usr/bin/scap-rebuild-cdbs
W: python-scap: binary-without-manpage usr/bin/sync-common
W: python-scap: binary-without-manpage usr/bin/sync-dir
W: python-scap: binary-without-manpage usr/bin/sync-docroot
W: python-scap: binary-without-manpage usr/bin/sync-file
W: python-scap: binary-without-manpage usr/bin/sync-master
W: python-scap: binary-without-manpage usr/bin/sync-wikiversions
Finished running lintian.

Maintainer field in debian/control doesn't have "Team" so it should be consistent here


just "scap" I think would be easier to find/remember as a binary package

Create a tag named upstream/3.0

I guess we need to pick an official tag point if we're going to declare 3.0 and push said tag :)

dduvall marked an inline comment as done.
dduvall edited edge metadata.

Addressed all comments by @fgiunchedi and additionally added a patch to set a more suitable bin_dir config default for the packaged version.

In D46#1277, @demon wrote:

Create a tag named upstream/3.0

I guess we need to pick an official tag point if we're going to declare 3.0 and push said tag :)

Indeed! Maybe we should pick a point after the scap3 docs are "finished" (i.e. drafted).

I tested the deb build, installed it, and ran deploy and deploy-log from their new homes in /usr/bin. It all went well.


Damn it feels good to be a gansta. Go team!

fgiunchedi edited edge metadata.

LGTM, good job @dduvall !

This revision is now accepted and ready to land.Nov 19 2015, 9:34 AM
This revision was automatically updated to reflect the committed changes.