[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#347284: Meta-packages for latest doc and sources



Hi Maximilain,

Am Dienstag, den 16.03.2010, 15:47 +0100 schrieb maximilian attems:
> On Tue, Mar 16, 2010 at 02:41:16PM +0100, Joachim Breitner wrote:
> > I???d like to amend this wishlist bug report. I???d find it very useful to
> > have a linux-doc-2.6 meta package automatically pulling in the latest
> > -doc package, corresponding to the installed kernel. Same thing with a
> > linux-source-2.6 meta packages.
> > 
> > Are there any issues with this approach? Or is it just that someone has
> > to write the code?
> 
> yep it is low priority, probably you just need to add some entry
> to linux-latest-2.6, feel free to submit patch against sid svn branch.

I gave it a shot. Patch against latest svn is attached, here is the
resulting change to the generated control file:

$ diff -u debian/control-before debian/control
--- debian/control-before	2010-03-16 16:56:36.000000000 +0100
+++ debian/control	2010-03-16 17:11:04.000000000 +0100
@@ -6,6 +6,20 @@
 Standards-Version: 3.7.3
 Build-Depends: debhelper (>> 7), linux-support-2.6.32-3
 
+Package: linux-source-2.6
+Provides: linux-source
+Depends: linux-source-2.6.32
+Description: Linux kernel source for Linux 2.6
+ This package depends on packages containing the sources of the latest
+ Linux kernel 2.6.
+
+Package: linux-doc-2.6
+Provides: linux-doc
+Depends: linux-doc-2.6.32
+Description: Linux kernel specific documentation for version 2.6
+ This package depends on the package containing the documentation for the
+ latest Linux kernel 2.6.
+
 Package: linux-image-alpha-generic
 Architecture: alpha
 Provides: linux-latest-modules-2.6.32-3-alpha-generic

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Index: debian/changelog
===================================================================
--- debian/changelog	(Revision 15398)
+++ debian/changelog	(Arbeitskopie)
@@ -1,3 +1,9 @@
+linux-latest-2.6 (26) UNRELEASED; urgency=low
+
+  * Create linux-doc-2.6 and linux-source-2.6 meta packages (Closes: 347284)
+
+ -- Joachim Breitner <nomeata@debian.org>  Tue, 16 Mar 2010 17:12:42 +0100
+
 linux-latest-2.6 (25) unstable; urgency=high
 
   * Update package description templates in line with linux-2.6.
Index: debian/bin/gencontrol.py
===================================================================
--- debian/bin/gencontrol.py	(Revision 15398)
+++ debian/bin/gencontrol.py	(Arbeitskopie)
@@ -31,6 +31,12 @@
             ['linux-support-%s%s' % (self.version.linux_upstream, self.abiname)]
         )
 
+        latest_source = self.templates["control.source.latest"][0]
+        packages.append(self.process_package(latest_source, vars))
+
+        latest_doc = self.templates["control.doc.latest"][0]
+        packages.append(self.process_package(latest_doc, vars))
+
     def do_flavour_packages(self, packages, makefile, arch, featureset, flavour, vars, makeflags, extra):
         config_base = self.config.merge('base', arch, featureset, flavour)
         config_description = self.config.merge('description', arch, featureset, flavour)
Index: debian/templates/control.source.latest.in
===================================================================
--- debian/templates/control.source.latest.in	(Revision 0)
+++ debian/templates/control.source.latest.in	(Revision 0)
@@ -0,0 +1,7 @@
+Package: linux-source-@major@
+Depends: linux-source-@upstreamversion@
+Provides: linux-source
+Description: Linux kernel source for Linux @major@
+ This package depends on packages containing the sources of the latest Linux
+ kernel @major@.
+
Index: debian/templates/control.doc.latest.in
===================================================================
--- debian/templates/control.doc.latest.in	(Revision 0)
+++ debian/templates/control.doc.latest.in	(Revision 0)
@@ -0,0 +1,7 @@
+Package: linux-doc-@major@
+Depends: linux-doc-@upstreamversion@
+Provides: linux-doc
+Description: Linux kernel specific documentation for version @major@
+ This package depends on the package containing the documentation for the
+ latest Linux kernel @major@.
+

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: