Your message dated Sun, 11 Apr 2010 21:57:02 +0000
with message-id <[email protected]>
and subject line Bug#576946: fixed in mozilla-devscripts 0.22
has caused the Debian Bug report #576946,
regarding mozilla-devscripts: Please add a "dh buildsystem"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
576946: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576946
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mozilla-devscripts
Version: 0.20
Severity: wishlist
Tags: patch
dh allows to create extra build systems, for use by dh_auto_configure,
dh_auto_build and friends. The attached patch just does this.
Provided a package is a single extension, and has no tmp.xpi file in the
source directory, the debian/rules can look like this:
#!/usr/bin/make -f
%:
dh --with xul-ext --buildsystem=xul_ext $@
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mozilla-devscripts depends on:
ii dpkg-dev 1.15.5.6 Debian package development tools
ii fakeroot 1.14.4-1 Gives a fake root environment
ii perl 5.10.1-11 Larry Wall's Practical Extraction
ii python 2.5.4-9 An interactive high-level object-o
ii python-rdflib 2.4.2-1+b1 RDF library containing an RDF trip
ii python-support 1.0.7 automated rebuilding support for P
ii quilt 0.48-6 Tool to work with series of patche
ii unzip 6.0-4 De-archiver for .zip files
ii wget 1.12-1.1 retrieves files from the web
ii zip 3.0-3 Archiver for .zip files
mozilla-devscripts recommends no packages.
Versions of packages mozilla-devscripts suggests:
ii cvs 1:1.12.13-12 Concurrent Versions System
ii git-core 1:1.7.0.3-1 fast, scalable, distributed revisi
ii mercurial 1.5-1 scalable distributed version contr
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/bin/dh_xul-ext (from mozilla-devscripts package)
diff -Nru mozilla-devscripts-0.20/src/dh_xul-ext mozilla-devscripts-0.20.1/src/dh_xul-ext
--- mozilla-devscripts-0.20/src/dh_xul-ext 2010-02-04 20:42:24.000000000 +0100
+++ mozilla-devscripts-0.20.1/src/dh_xul-ext 2010-04-08 14:17:49.000000000 +0200
@@ -199,7 +199,7 @@
if __name__ == "__main__":
try:
long_opts = ["help", "package", "verbose"]
- opts, args = getopt.gnu_getopt(sys.argv[1:], "hp:v", long_opts)
+ opts, args = getopt.gnu_getopt(sys.argv[1:], "hp:vO:", long_opts)
except getopt.GetoptError, e:
# print help information and exit:
print >> sys.stderr, str(e) # will print something like "option -a not recognized"
@@ -217,8 +217,6 @@
packages.append(a)
elif o in ("-v", "--verbose"):
verbose = True
- else:
- assert False, "unhandled option"
if len(packages) == 0:
packages = get_all_packages()
diff -Nru mozilla-devscripts-0.20/src/Makefile mozilla-devscripts-0.20.1/src/Makefile
--- mozilla-devscripts-0.20/src/Makefile 2010-02-04 20:42:24.000000000 +0100
+++ mozilla-devscripts-0.20.1/src/Makefile 2010-04-08 14:20:34.000000000 +0200
@@ -100,6 +100,7 @@
install -m 644 xul-app-data.csv.$(VENDOR) $(DESTDIR)$(DATADIR)/xul-app-data.csv
mkdir -p $(DESTDIR)/usr/share/perl5/Debian/Debhelper/Sequence
install -m 644 xul-ext.pm $(DESTDIR)/usr/share/perl5/Debian/Debhelper/Sequence/xul_ext.pm
+ install -m 644 xul-ext_build.pm $(DESTDIR)/usr/share/perl5/Debian/Debhelper/Buildsystem/xul_ext.pm
clean:
rm -f $(subst_files)
diff -Nru mozilla-devscripts-0.20/src/xul-ext_build.pm mozilla-devscripts-0.20.1/src/xul-ext_build.pm
--- mozilla-devscripts-0.20/src/xul-ext_build.pm 1970-01-01 01:00:00.000000000 +0100
+++ mozilla-devscripts-0.20.1/src/xul-ext_build.pm 2010-04-08 14:57:14.000000000 +0200
@@ -0,0 +1,42 @@
+# A debhelper build system class for handling XUL extensions.
+#
+# Copyright: © 2010 Mike Hommey
+# License: GPL-2+
+
+package Debian::Debhelper::Buildsystem::xul_ext;
+
+use strict;
+use base 'Debian::Debhelper::Buildsystem';
+
+sub DESCRIPTION {
+ "XUL Extensions"
+}
+
+sub check_auto_buildable {
+ my $this=shift;
+ return (-e $this->get_sourcepath("install.rdf")) ? 1 : 0;
+}
+
+sub new {
+ my $class=shift;
+ my $this=$class->SUPER::new(@_);
+ $this->enforce_in_source_building();
+ return $this;
+}
+
+sub build {
+ my $this=shift;
+ $this->doit_in_sourcedir("xpi-pack", ".", "tmp.xpi");
+}
+
+sub install {
+ my $this=shift;
+ $this->doit_in_sourcedir("install-xpi", "tmp.xpi");
+}
+
+sub clean {
+ my $this=shift;
+ $this->doit_in_sourcedir("rm", "-f", "tmp.xpi");
+}
+
+1
--- End Message ---
--- Begin Message ---
Source: mozilla-devscripts
Source-Version: 0.22
We believe that the bug you reported is fixed in the latest version of
mozilla-devscripts, which is due to be installed in the Debian FTP archive:
mozilla-devscripts_0.22.dsc
to main/m/mozilla-devscripts/mozilla-devscripts_0.22.dsc
mozilla-devscripts_0.22.tar.gz
to main/m/mozilla-devscripts/mozilla-devscripts_0.22.tar.gz
mozilla-devscripts_0.22_all.deb
to main/m/mozilla-devscripts/mozilla-devscripts_0.22_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Benjamin Drung <[email protected]> (supplier of updated mozilla-devscripts
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 11 Apr 2010 21:51:25 +0200
Source: mozilla-devscripts
Binary: mozilla-devscripts
Architecture: source all
Version: 0.22
Distribution: unstable
Urgency: low
Maintainer: Ubuntu Mozilla Team <[email protected]>
Changed-By: Benjamin Drung <[email protected]>
Description:
mozilla-devscripts - Collection of dev scripts used by Ubuntu Mozilla packages
Closes: 576946
Changes:
mozilla-devscripts (0.22) unstable; urgency=low
.
* Add a dh buildsystem; thanks to Mike Hommey for the patch (Closes:
#576946).
- add src/xul-ext_build.pm
- update src/Makefile
* Use debian/package.js as configuration file if it exists.
- update man/install-xpi.1
- update src/install-xpi
Checksums-Sha1:
e9381b9b73a75f6911fe9827aa825699bbd22ebc 1830 mozilla-devscripts_0.22.dsc
b6c8b55b9db5e73faa03f6761aa8c4496b1c1c14 57264 mozilla-devscripts_0.22.tar.gz
c118e24812e3f673c99512b57392c1dce42c5046 58132 mozilla-devscripts_0.22_all.deb
Checksums-Sha256:
12da7aaa8b8f3253f165d71235836aa10a06266871041d5ae542968a559e6c5d 1830
mozilla-devscripts_0.22.dsc
ce62095db874bf7602355668911ecdfdf5e4b183aa4fb831ad7c8369fbecb5cf 57264
mozilla-devscripts_0.22.tar.gz
7b4ad57f4274daa172a1ef5b9b075bd6b84e17dae2d1f4a52e470777b98c240c 58132
mozilla-devscripts_0.22_all.deb
Files:
5d3a273e675916164112d27ed837f51d 1830 devel optional
mozilla-devscripts_0.22.dsc
3f49bfba6595820f1025a6ac2636b68a 57264 devel optional
mozilla-devscripts_0.22.tar.gz
148d1c22caa7f725ca1a7b39516a2610 58132 devel optional
mozilla-devscripts_0.22_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCgAGBQJLwijpAAoJEBWetcTvyHdMnmMP/2b5C+Uz9olg4cgb+rjhyzjP
CCcq086+KRqSDdz123Wyh7pDkbJCmj6LAWuiZIaMC29lAoSxVpWOPiHv9wA06Pwq
CwUbBYa9UQixgmLbu2itnseGEO3ryAiGbVCfnqtN/yhVJVtXqyDe2vDoHGKRex5H
wW8trFBpiJQih3QMahTpfyKqeGtYMV88RTXXMNykRYVPt2x+8KC8TXvI5aJzlHIl
JAs06gk3DcN++uH5b7mtRbPZrYAIRy1j5otOW7Y4iXAC3GeI0Hzl0MRsqEwd9IAB
4rOWWRIDu7zwDIiQAPni7bfu7zIweCG1NNqJIE0CHaeJ/BphrKh+npQlRBhKQbKL
dJTFM8rrVRo1DF2RQCoa7vUE6E+/9Ew0EBTEor+mNU43SFn7wpb8YBsmV8vz0741
nbNB1dKbJHnu+jJbxY0/HkJsFUL5tQmvGLqBTK0kMmTSxYCqUwZaySRuZU+Y3z34
mvcr84wkPFB6WtS36//CRGlWYN2GFAj2WJDVrxKsTtlUUc8rb0PIRsffDLSg0Z+1
NBnArgPCBybTdn8Xx2bZP0WB0Gacfy8grWh363Yz+/sAXtvgiHNEAofT3xsVFwEI
MirdSujzqyrOj+JdtTdJ/smded6af5STeajG3LWtl1Rsc0zbXVfc3CxFtQOIAdyK
gJaD/JFH0WNy9oaH6+6t
=iP51
-----END PGP SIGNATURE-----
--- End Message ---