Commit Graph

191 Commits

Author SHA1 Message Date
Ben Hutchings d0824f1862 Add security update versions to regex and distribution/version sanity checks
Currently we don't allow versions like 3.16.7-ckt9-3~deb8u1~bpo7+1 in
*-backports, but we should!  Add the security suffix as an option
before the backports suffix.

We also don't check that an upload to *-security or *-lts includes the
expected suffix and nothing else.  Add a check for that.

svn path=/dists/trunk/linux/; revision=22539
2015-04-27 19:44:59 +00:00
Ben Hutchings e16e503620 Fix regex for the bpo version suffix
The Debian release is now identified by only the major version so
there need not be 2 digits directly after ~bpo.  Eventually the
major version will grow to 2 digits itself, so allow 1 or more
digits after the ~bpo.

svn path=/dists/trunk/linux/; revision=22538
2015-04-27 19:33:39 +00:00
Ben Hutchings ae85b67cf6 Add integer type to config schema
svn path=/dists/trunk/linux/; revision=22182
2014-12-10 16:37:07 +00:00
Ben Hutchings 86a13b0457 Add support for -ckt stable updates
svn path=/dists/sid/linux/; revision=22057
2014-11-08 15:41:20 +00:00
Ben Hutchings 6ceeb0fb7b Revert "Make version in package name independant of internal abi"
Unfortunately it is not sufficient to provide virtual packages
that exactly match the ABI name.  For example, 'reportbug kernel'
doesn't find the virtual package, and neither do dpkg commands
such as 'dpkg -l linux-image-$(uname -r)'.

svn path=/dists/sid/linux/; revision=22034
2014-11-04 04:47:19 +00:00
Bastian Blank cb080a3167 Make version in package name independant of internal abi
* debian/bin/gencontrol.py: Export internal ABI.
* debian/lib/python/debian_linux/debian.py: Export three-part version.
* debian/rules.real
  - Provide more variables.
  - Make udeb generation easier.
  - Use internal ABI for files.
* debian/templates/control.*: Provide name with internal ABI.
* debian/templates/image.plain.*: Use internal ABI.

svn path=/dists/sid/linux/; revision=22017
2014-11-01 19:20:16 +00:00
Bastian Blank f23e810882 debian/lib/python/debian_linux/gencontrol.py:
Allow numbers in templates.

svn path=/dists/sid/linux/; revision=22007
2014-10-31 15:05:54 +00:00
Bastian Blank b142d22431 debian/lib/python/debian_linux: More Python 3 support.
svn path=/dists/trunk/linux/; revision=20954
2014-01-02 22:18:35 +00:00
Bastian Blank fb642c8e06 debian/lib/python/debian_linux/patches.py: Remove unneeded imports.
svn path=/dists/trunk/linux/; revision=20953
2014-01-02 21:49:16 +00:00
Bastian Blank 1d8ffb3ae4 debian/lib/python/debian_linux/patches.py: Use subprocess.
svn path=/dists/trunk/linux/; revision=20952
2014-01-02 21:47:26 +00:00
Bastian Blank 69f20e1d9e debian/lib/python/debian_linux/patches.py: Use with to guard open files.
svn path=/dists/trunk/linux/; revision=20951
2014-01-02 21:38:26 +00:00
Bastian Blank 1d7360d6a8 debian/lib/python/debian_linux/patches.py:
Remove support for compressed patches.

svn path=/dists/trunk/linux/; revision=20950
2014-01-02 21:35:54 +00:00
Bastian Blank 929894f687 * debian/bin/genorig.py, debian/lib/python/debian_linux/abi.py,
debian/lib/python/debian_linux/debian.py,
  debian/lib/python/debian_linux/patches.py,
  - Support Python 3.
  - Use six if necessary.
* debian/templates/control.main.in, debian/templates/control.source.in:
  Depend on python-six.

svn path=/dists/trunk/linux/; revision=20946
2014-01-01 22:14:11 +00:00
Ben Hutchings 08a7d92f2b [arm,x86,s390,s390x] Introduce linux-compiler meta-packages to allow use of foreign linux-headers packages with a native multilib compiler
svn path=/dists/trunk/linux/; revision=20799
2013-11-21 01:15:15 +00:00
Bastian Blank f1f381b411 debian/lib/python/debian_linux/kconfig.py:
Replace entry classes with version from kconfigeditor2.

svn path=/dists/trunk/linux/; revision=20669
2013-09-23 21:33:24 +00:00
Bastian Blank 3c66fca7f0 debian/lib/python/debian_linux/config.py: Also support execution with python3.
svn path=/dists/trunk/linux/; revision=20668
2013-09-23 21:23:01 +00:00
Bastian Blank 5c43b9711a debian/lib/python/debian_linux/config.py: Minimal python3 support.
svn path=/dists/trunk/linux/; revision=20667
2013-09-23 21:18:33 +00:00
Ben Hutchings 03fab0311a Don't require '.in' suffix on templates
The PO files processed by debconf-updatepo, which in our case are
templates, must have names ending in .po rather than .in.  So look for
un-suffixed template files after looking for files with the .in
suffix.

svn path=/dists/trunk/linux/; revision=20504
2013-08-17 11:18:34 +00:00
Ben Hutchings 005ac51bc5 Merge changes from wheezy-backports to reduce the need for source changes
- Add a suite/version sanity-check for backports
- Disable building of udebs whenever package version indicates backports

svn path=/dists/trunk/linux/; revision=20483
2013-08-11 21:30:14 +00:00
Ben Hutchings 4207b3a025 Change experimental Debian revision format to 1~exp<n>
This is a more commonly used format, and frees up some space in
utsname::version.

svn path=/dists/trunk/linux/; revision=20181
2013-06-02 20:54:29 +00:00
Ben Hutchings 66aee7e881 Add __str__ method to debian_linux.debian.Version
Python 2.x does not use the __unicode__ method to implement str() or
string formatting with %s.  Add a __str__ method as a wrapper.

svn path=/dists/trunk/linux/; revision=20180
2013-06-02 20:51:26 +00:00
Ben Hutchings a0f3681215 Fix linux_upstream_full compute for version with modifier
From: Julien Danjou <julien@danjou.info>

If you try to use genorig on a version with a modifier (like ~rc1), it will
fail because self.linux_upstream_full will be equal to the short version
rather than version-modifier.

svn path=/dists/trunk/linux/; revision=19308
2012-08-04 13:44:08 +00:00
Bastian Blank 5a0ab9759f Support build-arch and build-indep make targets
* debian/rules, debian/rules.real:
  Support build-indep, rename build to build-arch.
* debian/bin/gencontrol.py, debian/lib/python/debian_linux/gencontrol.py:
  Add build-arch and build-indep.
* debian/changelog: Update.

svn path=/dists/sid/linux/; revision=19148
2012-06-14 14:39:30 +00:00
Bastian Blank 7a338d9536 debian/bin/gencontrol.py:
Move some package specific stuff from lib/python/debian_linux/gencontrol.py.

svn path=/dists/sid/linux/; revision=19145
2012-06-13 21:54:55 +00:00
Ben Hutchings d5fa98077e linux-source: Add single patch for each featureset
svn path=/dists/sid/linux/; revision=19114
2012-06-10 02:14:51 +00:00
Ben Hutchings f4932e3768 Replace patch series lists with one main series and one per featureset
Change patch.apply.in to apply a single patch series without
filtering.  Move series/base to series-all and series/base-extra to
series-rt and series-none (the latter empty).

Remove the redundant status file support from patch.apply.in, and
convert it into a static file rather than a template.

Remove the redundant patch series list support from patches.py.

svn path=/dists/sid/linux/; revision=19071
2012-06-03 22:03:33 +00:00
Ben Hutchings aac2076873 Remove support for per-architecture patches
We have not used per-architecture patches for many years.  This is a
step toward using a more standard patch system.

svn path=/dists/sid/linux/; revision=19070
2012-06-03 20:54:42 +00:00
Ben Hutchings 7b1b408f6d Fix version parsing in debian/bin/genorig.py when using a DFSG number
svn path=/dists/sid/linux-2.6/; revision=19055
2012-06-02 20:17:17 +00:00
Ben Hutchings da95316282 Fix parsing of WHENCE file listing multiple binary files in a group
svn path=/dists/sid/linux-2.6/; revision=18934
2012-04-16 05:00:41 +00:00
Bastian Blank 3ea10b8113 debiann/lib/python/debian_linux/config.py:
Correctly handle base featureset sections.

svn path=/dists/sid/linux-2.6/; revision=18822
2012-03-12 21:30:31 +00:00
Bastian Blank 13b1935dd1 debian/lib/python/debian_linux/config.py:
Use format 0 pickles. They look more like text for patch.

svn path=/dists/trunk/linux-2.6/; revision=18567
2012-01-18 15:42:00 +00:00
Bastian Blank 6a75386bae debian/lib/python/debian_linux/config.py: Fix debugging output.
svn path=/dists/trunk/linux-2.6/; revision=18501
2012-01-11 20:55:10 +00:00
Bastian Blank 5a308b1d71 debian/lib/python/debian_linux/config.py:
Make config file name generation easier.

svn path=/dists/trunk/linux-2.6/; revision=18500
2012-01-11 20:50:14 +00:00
Bastian Blank a46a14199c debian/bin/gencontrol.py, debian/lib/python/debian_linux/config.py:
Move config schema into gencontrol.

svn path=/dists/trunk/linux-2.6/; revision=18499
2012-01-11 20:42:40 +00:00
Bastian Blank afadb6258a debian/lib/python/debian_linux/config.py: Read pickled config.
svn path=/dists/trunk/linux-2.6/; revision=18498
2012-01-11 20:34:37 +00:00
Bastian Blank 35c4917945 debian/lib/python/debian_linux/config.py
- Remove unneeded classes.
- Use pickle for config dump.

svn path=/dists/trunk/linux-2.6/; revision=18497
2012-01-11 20:32:03 +00:00
Bastian Blank 49dc7fc4fc debian/lib/python/debian_linux/config.py: Return base object for config.
svn path=/dists/trunk/linux-2.6/; revision=18496
2012-01-11 20:19:22 +00:00
Bastian Blank 00b9cab893 * debian/lib/python/debian_linux/debian.py: Use unicode.
* debian/lib/python/debian_linux/gencontrol.py: Remove debugging code.

svn path=/dists/trunk/linux-2.6/; revision=18495
2012-01-11 20:01:55 +00:00
Bastian Blank caefc1f622 debian/lib/python/debian_linux/config.py: Fix schema.
svn path=/dists/trunk/linux-2.6/; revision=18494
2012-01-11 18:41:47 +00:00
Bastian Blank 141957a25b debian/lib/python: Use unicode always.
svn path=/dists/trunk/linux-2.6/; revision=18493
2012-01-11 18:03:27 +00:00
Bastian Blank dad674e6e7 * debian/lib/python/debian_linux/debian.py:
Replace PackageFieldList with PackageArchitecture.
* debian/bin/gencontrol.py,
  debian/lib/python/debian_linux/gencontrol.py: Adopt changes.

svn path=/dists/trunk/linux-2.6/; revision=18492
2012-01-11 17:46:47 +00:00
Bastian Blank e962c1ae2b debian/lib/python: Remove SortedDict, use collections.OrderedDict instead.
svn path=/dists/trunk/linux-2.6/; revision=18491
2012-01-11 17:16:00 +00:00
Bastian Blank 9863acaddd debian/lib/python: PEP8 and other style fixes.
svn path=/dists/trunk/linux-2.6/; revision=18488
2012-01-11 16:52:29 +00:00
Ben Hutchings f838ecc2de Update firmware WHENCE file parsing
All File fields now describe just one file, which may be followed by
other related fields.  Never flush the file details immediately.

For some File fields, there are now multiple following Source fields.
Collect them in a list.

svn path=/dists/trunk/linux-2.6/; revision=18432
2011-12-29 18:28:04 +00:00
Bastian Blank 8537a6b1a0 debian/lib/python/debian_linux/debian.py: Accept shorter versions.
svn path=/dists/trunk/linux-2.6/; revision=18191
2011-10-28 18:47:00 +00:00
Ben Hutchings cb043ef739 Fix debian_linux.utils.read_control to tolerate extra blank lines
svn path=/dists/trunk/linux-2.6/; revision=18042
2011-09-03 20:55:12 +00:00
Ben Hutchings 07aafecfb1 Move debian_linux.utils.Templates._read_control out to module scope
svn path=/dists/trunk/linux-2.6/; revision=18041
2011-09-03 20:53:59 +00:00
Bastian Blank c0e8d4a8be debian/lib/python/debian_linux/gencontrol.py:
Don't remove entries starting with "X-".

svn path=/dists/trunk/linux-2.6/; revision=17835
2011-07-18 16:22:41 +00:00
Ben Hutchings c5c0944e33 Restore the third version component
UTS_RELEASE and all the file names still use "3.0.0", which means the
installation commands using a version truncated to two components
fail.  And if we truncate UTS_RELEASE this will break many userland
tools, starting with depmod (!).

svn path=/dists/trunk/linux-2.6/; revision=17556
2011-06-01 05:41:03 +00:00
Ben Hutchings 1b919cfb84 Prepare gencontrol and templates for Linux 3.0
- Remove all relations based on the 'major' template variable
- Define 'source_package' template variable and use it in place
  of 'linux-@major@' in linux-patch-debian-<version> description
- Expect only 2 upstream version components if first component is
  not '2'
- Remove the 'major' template variable and 'MAJOR' make variable

svn path=/dists/trunk/linux-2.6/; revision=17482
2011-05-30 18:54:31 +00:00